[ https://issues.apache.org/jira/browse/PDFBOX-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143014#comment-16143014 ]
Tilman Hausherr commented on PDFBOX-3353: ----------------------------------------- That is already there: {code} PDExtendedGraphicsState r0 = new PDExtendedGraphicsState(); PDExtendedGraphicsState r1 = new PDExtendedGraphicsState(); r0.setAlphaSourceFlag(false); r0.setStrokingAlphaConstant(markupAnnotation.getConstantOpacity()); r0.setNonStrokingAlphaConstant(markupAnnotation.getConstantOpacity()); r1.setAlphaSourceFlag(false); r1.getCOSObject().setItem(COSName.BM, COSName.MULTIPLY); //TODO PDExtendedGraphicsState.setBlendMode() is missing cs.setGraphicsStateParameters(r0); cs.setGraphicsStateParameters(r1); {code} I removed the /AP from the file you attached and PDFBox displays nothing, and yes the BBox is weird. That is because you have a weird rectangle, that is almost empty. Adobe fixes that, that is a general weakness in my existing code, that I take the rectangle as the truth. See my comment on 20/May/16 18:40. > 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, 3.0.0 > Reporter: Tilman Hausherr > Labels: Annotations > Attachments: line_dimension_appearance_stream-noAP.pdf, > line_dimension_appearance_stream.pdf, > PDFBOX-3353-highlight-noAP-001796-p1.pdf, PDFBOX-3353-highlight-noAP.pdf, > showAnnotation-2.java, showAnnotation.java, SquareAnnotations.pdf, > text_markup_ap_test.pdf > > > 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.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org