Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Extract text location

New Here ,
May 17, 2017 May 17, 2017

Dear all

is it possible we can extract all text from a page of PDF with text location or coordinates by writing a script. Thanks

TOPICS
Acrobat SDK and JavaScript
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 17, 2017 May 17, 2017

Yes. Look up getPageNthWord and getPageNthWordQuads.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 19, 2017 May 19, 2017

Please check out this link: http://help.adobe.com/livedocs/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp...

getPageNthWordQuads will only give quad property of the Annotation object which can be used for constructing text markup, underline, strikeout, highlight and squiggly annotations. How will this return the coordinates of the word?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 19, 2017 May 19, 2017

getPageNthWordQuads returns the coordinates of the word.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 19, 2017 May 19, 2017
LATEST

To create annotations, markup etc the coordinates are needed. Examine what a "quad" type contains and bear in mind that text, which does not exist at a single point, does not have a single coordinate; rather it occupies space. The baseline is not provided.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines