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

Export characters from a specific field

Participant ,
Jan 25, 2024 Jan 25, 2024

How can I export the characters (10-12 characters) within a certain area of a PDF document (A4) to txt?

 

Does anyone have any ideas or guidance on this matter?  Thank you.Ekran Resmi 2024-01-25 11.03.10.png

TOPICS
Edit and convert PDFs , JavaScript , Modern Acrobat , PDF , Scan documents and OCR
730
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 ,
Jan 25, 2024 Jan 25, 2024

Is this a form field or a plain text?

Where exactly do you want to export it?

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
Participant ,
Jan 25, 2024 Jan 25, 2024

Pdf file as shown in attachment,

I want to transfer the marked part to a .txt file

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 ,
Jan 25, 2024 Jan 25, 2024
LATEST

The text in that image looks very much like a form field. Is it a form field?  Or is it text that is part of the page content. 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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 ,
Jan 25, 2024 Jan 25, 2024

A script can be used to identify text in a specific part of a page, but it's not a trivial task.
You would need to iterate over the entire page's contents, checking the quads array for each word, which defines its location(s) on the page, and compare it to a known rectangle that represents the area you're looking for.

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