[ https://issues.apache.org/jira/browse/TIKA-1575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14371703#comment-14371703 ]
Maruan Sahyoun edited comment on TIKA-1575 at 3/20/15 5:38 PM: --------------------------------------------------------------- to get the position the widget annotation associated with the field is relevant (i.e. the 'pure' field doesn't have a location on a particular page). The annotation can be retrieved with {{getWidget()}} if there is a single one or with {{getKids()}} if there are multiple where with 1.8 you'd also need to check if the kid is an instance of PDField or PDAnnotationWidget. Now, as you have the widget you can get the page it's on with the dictionaries {{/P}} entry and the position with the {{/Rect}} entry. was (Author: msahyoun): to get the position the widget annotation associated with the field is relevant (i.e. the 'pure' field doesn't have a location on a particular page). The annotation can be retrieved with {{getWidget()}} if there is a single one or with {{getKids()}} if there are multiple where with 1.8 you'd also nee to check if the kid is an instance of PDField or PDAnnotationWidget. Now, as you have the widget you can get the page it's on with the dictionaries {{/P}} entry and the position with the {{/Rect}} entry. > Upgrade to PDFBox 1.8.9 when available > -------------------------------------- > > Key: TIKA-1575 > URL: https://issues.apache.org/jira/browse/TIKA-1575 > Project: Tika > Issue Type: Improvement > Reporter: Tim Allison > Priority: Minor > Attachments: 005937.pdf.json, 005937_1_8_9-SNAPSHOT.pdf.json, > 10-814_Appendix B_v3.pdf, 524276_719128_diffs.zip, > PDFBox_1_8_8VPDFBox_1_8_9-SNAPSHOT.xlsx, > PDFBox_1_8_8VPDFBox_1_8_9-SNAPSHOT_reports.zip, > PDFBox_1_8_8Vs1_8_9_20150316.zip, content_diffs_20150316.xlsx, > reports_1_8_9_multithread_vs_single.zip > > > The PDFBox community is about to release 1.8.9. Let's use this issue to > track discussions before the release and to track Tika's upgrade to PDFBox > 1.8.9 -- This message was sent by Atlassian JIRA (v6.3.4#6332)