We’re currently using Prince to generate PDFs of medical documents.
Take a look at the included documents; the difference between the two is that the “bad” document contains a “div” within a “span”. In this document, the surrounding span’s overriding of the default font to 32px isn’t being applied to the “SOME TEXT” text. If that “div” isn’t there (or any other block level element), “SOME TEXT” is in the correct, overridden font size.
I know that block level elements inside inline level elements are technically illegal, but this particular effect seems strange. Does anyone know why this might be happening with Prince?
- Tim
Take a look at the included documents; the difference between the two is that the “bad” document contains a “div” within a “span”. In this document, the surrounding span’s overriding of the default font to 32px isn’t being applied to the “SOME TEXT” text. If that “div” isn’t there (or any other block level element), “SOME TEXT” is in the correct, overridden font size.
I know that block level elements inside inline level elements are technically illegal, but this particular effect seems strange. Does anyone know why this might be happening with Prince?
- Tim