When I print the pdf the output doesn't consume the whole page of the legal paper. I open the pdf with Preview (a mac program to view pdfs) and the paper size and orientation are wrong. If I correct the paper and orientation it prints perfectly.
I have reduced it down to: <html> <head> <style type="text/css"> @page { size: Legal landscape; margin: 0.4in } </style> </head><body> Hello! </body> </html>
I create the pdf, and when I try to print it comes out as 8 1/2 x 11 letter.
The version is: prince --version Prince 8.1 rev 5 Copyright 2002-2013 YesLogic Pty. Ltd. Professional License
I am confused. It does say 14 x 8 1/2!!!! If I try to print from my mac it doesn't print properly. If I change the settings in the print menu to be Legal and landscape it prints perfectly.
Hmm, Page Scaling is still showing up as "Shrink to Printable Area". The print-scaling property above should disable that, but it probably won't enable "Choose paper source by PDF page size", which is what we want in this case. I'm not sure how to enable that by default; after all, not everyone has every paper size available, either.
I think we might be running out of options here. The PDF specification includes "PickTrayByPDFSize" field that we don't currently support in Prince. But then it also has this note:
Note: This setting has no effect on Mac OS systems, which do not provide the ability to pick the input tray by size.
Hey Mike. So you are saying that the user will have to modify the settings in the print menu to get the correct output? If that is the only option, I don't mind it, but at least I know this is the only option available here.
But, am I the first user of prince that is trying to print on legal paper and rotated? Wow!
It might be the only option. I made a test PDF attached below using the PickTrayByPDFSize field; can you see if this has any effect on the print dialog?
You can edit your post! In fact, I just edited for you, to demonstrate.
But back on track, you should get the same PDF output whichever operating system you run Prince on, so it is no surprise that it does not differ when you run on CentOS. The file I attached earlier (legal.pdf) has an extra flag set (PickTrayByPDFSize) which for me makes it default to the right paper size when I view the PDF in Acrobat on Linux or Windows. We don't support this flag in Prince yet, and there was the suggestion in the PDF specification that it has no affect on MacOS X.
If the extra flag doesn't make a difference on MacOS X, then I don't see any way we can change this behaviour on our side. Someone needs to talk to Apple, I think.
Hey Mike. Sorry to bother you but I downloaded the file legal.pdf on a windows computer and worked like a charm. What is the "PickTrayByPDFSize" syntax, and where would I insert it? (Ha. I edited this post all by myself)
You could subscribe to the news forum (click the eye icon next to the new topic button), then you will receive an email when we make new announcements.