[ https://issues.apache.org/jira/browse/PDFBOX-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16325116#comment-16325116 ]
Tilman Hausherr edited comment on PDFBOX-3353 at 1/13/18 1:19 PM: ------------------------------------------------------------------ Here's a file rotated 270°. With the code from this issue the highlight is rendered correctly in 270° too. I tried with the file you sent... it looks as I would expect. It looks different in Adobe Reader at 0 or 270 rotation (bigger vertical) -but this is because the rectangle is too small and it isn't adjusted. The rectangle adjusting code kicks in only if the bbox is empty.- About the raw pdf operators: see them in the PDF specification segment "pdf summary". Print these pages and put them on your wall. g, rg, k: colors m: move c: curve l: line f: fill was (Author: tilman): Here's a file rotated 270°. With the code from this issue the highlight is rendered correctly in 270° too. I tried with the file you sent... it looks as I would expect. It looks different in Adobe Reader at 0 or 270 rotation but this is because the rectangle is too small and it isn't adjusted. The rectangle adjusting code kicks in only if the bbox is empty. About the raw pdf operators: see them in the PDF specification segment "pdf summary". Print these pages and put them on your wall. g, rg, k: colors m: move c: curve l: line f: fill > 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 PDFBox > Reporter: Tilman Hausherr > Labels: Annotations > Attachments: CTAN-example-Annotations-rot270.pdf, > PDFBOX-3353-highlight-noAP-001796-p1.pdf, PDFBOX-3353-highlight-noAP.pdf, > ShowAnnotation-4.java, SquareAnnotations.pdf, > line_dimension_appearance_stream-noAP.pdf, > line_dimension_appearance_stream.pdf, showAnnotation.java, > 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