[
https://issues.apache.org/jira/browse/PDFBOX-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16321792#comment-16321792
]
chitgoks edited comment on PDFBOX-3353 at 1/11/18 7:19 AM:
-----------------------------------------------------------
Hi, the horizontal pdf page is the landscape one at 270 degrees.
the drawn annotations's coordinates were based on a landscape page area but
since the pdf page's dimension returned is portrait with a rotation value of
270, this is the result.
[link title|https://imgur.com/a/imOu6]
is this some sort of container where the annotations are placed? if so, it
could be possible to just rotate this.
and getting the page's mediabox, i created a new PDRectangle with width and
height, opposite.
new PDRectangle(0, 0, pdPage.getMediaBox().getHeight(),
pdPage.getMediaBox().getWidth());
instead of the default page.getMediaBox().
was (Author: chitgoks):
Hi, the horizontal pdf page is the landscape one at 270 degrees.
the drawn annotations's coordinates were based on a landscape page area but
since the pdf page's dimension returned is portrait with a rotation value of
270, this is the result.
[link title|https://imgur.com/a/imOu6]
is this some sort of container where the annotations are placed? if so, it
could be possible to just rotate this.
and getting the page's mediabox, i created a new PDRectangle with width and
height, opposite.
new PDRectangle(0, 0, pdPage.getMediaBox().getHeight(),
pdPage.getMediaBox().getWidth());
instead of the default page.getMediaBox(). is this correct?
> 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: 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: [email protected]
For additional commands, e-mail: [email protected]