You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Jeff Martin (Jira)" <ji...@apache.org> on 2020/02/26 16:33:00 UTC

[jira] [Commented] (FOP-2843) PDFDocumentGraphics2D#nextPage() creates a copy of the current page instead of an empty page

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

Jeff Martin commented on FOP-2843:
----------------------------------

I'm seeing this too. Have you found any workaround?

 

My code was working with an old version of FOP (.94), but I'm getting this weird successive page duplication with 2.3. My first thought is that my code base has some slightly non-standard gstate presentation code that could be confusing PDFDocumentGraphics. However, I'm surprised that nextPage() wouldn't be immune to that. Should be like starting with a clean slate on every page.

> PDFDocumentGraphics2D#nextPage() creates a copy of the current page instead of an empty page
> --------------------------------------------------------------------------------------------
>
>                 Key: FOP-2843
>                 URL: https://issues.apache.org/jira/browse/FOP-2843
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/pdf
>    Affects Versions: 2.1
>         Environment: Windows 8.1
>            Reporter: Martin Leitner
>            Priority: Major
>         Attachments: MultiPagePdf.java
>
>
> When creating a multi-page PDF with PDFDocumentGraphics2D, each page contains a copy of the previous page.
> In the attached sample, the expected content is: "Page 1" on page 1, "Page 2" on page 2, "Page 3" on page 3
> The actual content is: "Page 1" on page 1, "Page 1" and "Page 2" on page 2, "Page 1", "Page 2", "Page 3" on page 3



--
This message was sent by Atlassian Jira
(v8.3.4#803005)