Forum Bugs

Page Cutoff

Sean McCully
Hello, I am new to prince and think it is a pretty cool tool. The problem I am having is that when generating a html page to a pdf about 20% of the right margin on the page is not making it into the pdf. Its just cutoff??

Also how do I have to declare images for them to show up correctly?

I am using the debian package.
mikeday
If the content is defined to be wider than the page using the width property, then some content may be cut off. Try enabling shrink to fit, with this CSS rule:
@page { prince-shrink-to-fit: auto }

This should scale down the content to fit the page width. Alternatively, modify any width properties you are using, such as "width: 1000px", which may be wider than the paper.

Images in HTML should use the normal syntax:
<img src="logo.gif">

Prince supports GIF, TIFF, JPEG and PNG images, and should print a warning message if it cannot load the image.
Sean McCully
Thanks, worked like a charm.

For the images, I had to point the "src" directly to path.