[ 
https://issues.apache.org/jira/browse/PDFBOX-4410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16724007#comment-16724007
 ] 

Amit Maheshwari commented on PDFBOX-4410:
-----------------------------------------

[~tilman]


 rectangle.getLowerLeftY()

This doesn't solve my problem.

 

In fact I am expecting fields as horizontal rectangle and what you show above 
is vertical rectangle.

If I see them manually, It seems that on 'landscape' oriented pages, location 
of form fields are 90 degree phase shifted (rotated anti-clock wise).

 

 

> Not getting location of Form-Field correct when page has landscape orientation
> ------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4410
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4410
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 2.0.12
>            Reporter: Amit Maheshwari
>            Priority: Critical
>         Attachments: RPA_WTA_Extended (1).pdf
>
>
> In my client application, I need to know the location of form fields.
> *For getting the location, I am relaying on those widgets of field which has 
> non-negative page number.*
>  
> In attached Pdf File ( [^RPA_WTA_Extended (1).pdf] ). when it changes 
> orientation (page - 10), I could see widgets with non-negative page number 
> was giving me improper location.
>  
> For getting page I'm doing this:
> {code:java}
> int getPageOfWidget(PDAnnotationWidget widget, PDPageTree pages)
> {
>    return pages.indexOf(widget.getPage()); 
> }
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to