[prev in list] [next in list] [prev in thread] [next in thread]
List: fop-dev
Subject: [jira] [Updated] (FOP-2928) PDFDocumentGraphics2D does not clear content on nextPage()
From: "J Frank (Jira)" <jira () apache ! org>
Date: 2021-08-16 9:41:00
Message-ID: JIRA.13295355.1585687020000.889769.1629106860138 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/FOP-2928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
J Frank updated FOP-2928:
-------------------------
Attachment: patch-FOP2928-2.diff
> PDFDocumentGraphics2D does not clear content on nextPage()
> ----------------------------------------------------------
>
> Key: FOP-2928
> URL: https://issues.apache.org/jira/browse/FOP-2928
> Project: FOP
> Issue Type: Bug
> Components: renderer/pdf
> Affects Versions: 2.2, 2.4
> Reporter: Jürgen Ebert
> Priority: Major
> Labels: easyfix
> Attachments: patch-FOP2928-2.diff
>
>
> When switching to a new page using PDFDocumentGraphics2D#nextPage() the current \
> content is added to the PDF document but it is not cleared. Therefore the same \
> content will be repeated on the next page. nextPage() calls closePage() which adds \
> this.getString() to the PDFStream. this.getString() simply returns the content of \
> currentStream, a StringWriter. The content of currentStream is never cleared and \
> the reference is never set to null. Therefore it will be appended to and it will be \
> added again when the next nextPage() or closePage() or therefore finish() is \
> called. A work-arround is to manually set the value of currentStream to null using \
> reflection.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic