Forum Bugs

Layout issues

Dethe
Hi folks,

I'm testing out Prince now to see if it will work for our needs. I'm running into two different issues based on whether I use 7.1 or the 8.0 beta.

In 7.1 when I scale an image's width or height (but not both) the other value does not scale proportionately (proportional scaling does work in the beta).

In 8.0 I get an 8.5 x 11 inch PDF regardless of what is specified in my @page rule (but 7.1 respects @page size).

Any way I can have my cake and eat it too? Of the two, I can work around the scaling issue more readily.

Thanks!
Dethe
I found the solution in a different bug report. Prince is setting max-width: 100% and max-height: 100% on images by default. Setting those both to none solved my image scaling issues in 7.1. Happiness abounds.

I also had trouble when using the HTML5 encoding declaration:

<meta charset="utf-8" />

but resolved by using the older form:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Prince is looking good.
StoneCypher
It's worth noting that Prince is actually doing that because it doesn't have a better choice. The appropriate next step is to set the resolution of images.

* { prince-image-resolution: 300dpi; prince-background-image-resolution: 300dpi; }

John Haugeland is http://fullof.bs/