Stupi / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

Switching between portrait and landscape when using :first, :left and :right page selectors can cause missing text #185

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Use Flying Saucer R8 (itext5 branch) to convert the attached xhtml file to a 
pdf using the attached java file.

What is the expected output? What do you see instead?

Expected to see all text, but the combination of landscape on the first page 
and large margins on left/right pages causes text at the end of the line to be 
lost on all pages except the first. Note that if the first page is not in 
landscape then this does not occur.

What version of the product are you using? On what operating system?

Built from source (2011-12-13): 
https://github.com/flyingsaucerproject/flyingsaucer/tree/itext5
On Windows 7 Professional (Java 1.6)

Please provide any additional information below.

Note that the xhtml file (adapted from 'Generating PDFs for Fun and Profit with 
Flying Saucer and iText') refers to images that are not on the filesystem. I 
mention this just in case it is relevant.

It's an unusual layout required to make this happen - I was just trying stuff 
out and am not expecting the issue to cause me any problems.

Original issue reported on code.google.com by mattsmit...@googlemail.com on 14 Dec 2011 at 11:45

Attachments:

GoogleCodeExporter commented 8 years ago
On further investigation this happens whenever the first page has smaller 
left/right margins (i.e. the width of the text is greater) than the following 
pages, which is a more serious issue that it seemed at first. 

Original comment by mattsmit...@googlemail.com on 15 Dec 2011 at 12:31