[ https://issues.apache.org/jira/browse/PDFBOX-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15390651#comment-15390651 ]
Tilman Hausherr commented on PDFBOX-3353: ----------------------------------------- {quote} I wanted to be able to replicate Adobe Acrobats behavior when creating the annotations appearance stream. There are some specifics e.g. when setting the color the color space CS operator is not printed. With the current implementation of PDPageContentStream the CS operator has always been printed. So there are some differences which I wanted to deal with without changing how PDPageContentStream currently works {quote} This could also be solved differently, i.e. by improving the one parameter {{setStrokingColor()}} / {{setNonStrokingColor()}} so that they call the multi-parameter methods, which would result in shorter content streams for all types of content streams. I.e. {{setStrokingColor(PDColor color)}} should call should call {{setStrokingColor(color.getComponents()[0],color.getComponents()[1],color.getComponents()[2]f)}} if {{color.getColorSpace() instanceof PDDeviceRGB}}. > Create appearance streams for annotations > ----------------------------------------- > > Key: PDFBOX-3353 > URL: https://issues.apache.org/jira/browse/PDFBOX-3353 > Project: PDFBox > Issue Type: Task > Components: PDModel, Rendering > Affects Versions: 1.8.12, 2.0.0, 2.0.1, 2.0.2, 2.1.0 > Reporter: Tilman Hausherr > Labels: Annotations > Attachments: SquareAnnotations.pdf, showAnnotation.java > > > Create appearance streams for annotations when missing. > I'll start by replacing current code for Ink and Link annotations. > Good example PDFs: > http://www.pdfill.com/example/pdf_commenting_new.pdf > https://github.com/mozilla/pdf.js/issues/6810 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org