You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/06/26 20:05:28 UTC

[jira] [Comment Edited] (PDFBOX-1875) Image and some text missing in rendered file

    [ https://issues.apache.org/jira/browse/PDFBOX-1875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14044956#comment-14044956 ] 

Tilman Hausherr edited comment on PDFBOX-1875 at 6/26/14 6:05 PM:
------------------------------------------------------------------

I think that the problem is a missing BBox handling.

The page has two "forms" (not to confused with Acroform, "forms" are streams of PDF operators and stuff). Both have a white rectangle fill at the beginning. I have modified that PDF so that one is filled blue and one green.

When rendered with PDFBox, almost the whole right half of the page is filled, and this explains why there's that white space in the original rendering.

The reason is that the BBox of the "form" is not taken into account. According to the pdf spec, this is a clipping rectangle.

I used [~pslabycz]'s code from createPageDrawerGroup to create a clipping rectangle and it renders nicely now. Committed in rev 1605864 for the trunk.


was (Author: tilman):
I think that the problem is a missing BBox handling.

The page has two "forms" (not to confused with Acroform, "forms" are streams of PDF operators and stuff). Both have a white rectangle fill at the beginning. I have modified that PDF so that one is filled blue and one green.

When rendered with PDFBox, almost the whole right half of the page is filled, and this explains why there's that white space in the original rendering.

The reason is that the BBox of the "form" is not taken into account. According to the pdf spec, this is a clipping rectangle.

I used [~pslabycz] code from createPageDrawerGroup to create a clipping rectangle and it renders nicely now. Committed in rev 1605864 for the trunk.

> Image and some text missing in rendered file
> --------------------------------------------
>
>                 Key: PDFBOX-1875
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1875
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>              Labels: bbox
>             Fix For: 2.0.0
>
>         Attachments: PDFBOX-1861-bbox-bad.png, PDFBOX-1861-bbox-good.png, PDFBOX-1861-bbox.pdf, pdfbox-1861-tracemonkey.pdf-6.png
>
>
> An image and some text are missing on page 6 of the tracemonkey.pdf file of PDFBOX-1861.



--
This message was sent by Atlassian JIRA
(v6.2#6252)