[
https://issues.apache.org/jira/browse/PDFBOX-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444261#comment-13444261
]
Andreas Lehmkühler commented on PDFBOX-1400:
--------------------------------------------
Did you use the resetContext feature when adding the new content?
/**
* Create a new PDPage content stream.
*
* @param document The document the page is part of.
* @param sourcePage The page to write the contents to.
* @param appendContent Indicates whether content will be overwritten. If
false all previous content is deleted.
* @param compress Tell if the content stream should compress the page
contents.
* @param resetContext Tell if the graphic context should be reseted.
* @throws IOException If there is an error writing to the page contents.
*/
public PDPageContentStream( PDDocument document, PDPage sourcePage, boolean
appendContent,
boolean compress, boolean resetContext )
throws IOException
> Polygon objects added to existing page are not shown in Adobe Reader
> --------------------------------------------------------------------
>
> Key: PDFBOX-1400
> URL: https://issues.apache.org/jira/browse/PDFBOX-1400
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.7.1
> Reporter: Juraj Lonc
> Attachments: input.pdf, output.pdf
>
>
> I have PDF file which I tried to draw some polygons to.
> content.setLineWidth(0.3f);
> content.setStrokingColor(Color.RED);
> content.drawPolygon(new float[] {x1, x2, x2, x1}, new float[] {y2, y2, y1,
> y1});
> I have tested several PDF files. Those polygons are properly shown in Adobe
> Reader for most of PDF files.
> But there are some PDF files which ignores this and Adobe Reader won't show
> any polygons that were drawn.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira