I have an HTML page with content that takes up 600px by 348px, but I want the output to be in a PDF with dimensions 9.5cm x 5.5cm (business card size).
(1) If I use this:
then Prince outputs the full content, but the final PDF output is (naturally) 600px x 348px - and the document size needs to be manually changed to card size in Adobe Photoshop or something.
(2)If I use this:
or this:
then PrinceXML outputs the PDF with the right physical dimensions, but the content that doesn't fit in 95mmx55mm is cut off and missing. Apparently shrink-to-fit didn't make a difference.
Isn't the prince-shrink-to-fit supposed to shrink the content so that it fits in the physical output dimensions? Or am I doing something wrong? I downloaded the latest 8.1 version for Windows, but if this trial works fine, I'll be purchasing a server version. Please help!
I've attached the output of both points, (1) and (2). (1) is the full content. In (2) you can see some content chopped off.
(1) If I use this:
@page{ size: 600px 348px; margin: 0mm; }
then Prince outputs the full content, but the final PDF output is (naturally) 600px x 348px - and the document size needs to be manually changed to card size in Adobe Photoshop or something.
(2)If I use this:
@page{ size: 95mm 55mm; margin: 0mm; }
or this:
@page { prince-shrink-to-fit: auto; size: 95mm 55mm; margin: 0mm; }
then PrinceXML outputs the PDF with the right physical dimensions, but the content that doesn't fit in 95mmx55mm is cut off and missing. Apparently shrink-to-fit didn't make a difference.
Isn't the prince-shrink-to-fit supposed to shrink the content so that it fits in the physical output dimensions? Or am I doing something wrong? I downloaded the latest 8.1 version for Windows, but if this trial works fine, I'll be purchasing a server version. Please help!
I've attached the output of both points, (1) and (2). (1) is the full content. In (2) you can see some content chopped off.