How to quantify indents

Community Beginner ,
Feb 05, 2020 Feb 05, 2020

Copy link to clipboard

Copied

Looking to convert lots of documents to text.  Need meta data about the document and the text.  One data point that is needed is the indent.  Need to know if a line is indented from the left margin and some sort of quantification of that indent such as spaces, tabs or something else.  If such a tool does not exist I am willing to code it but this new to me.  What tools might help solve this problem?  

TOPICS
Acrobat SDK and JavaScript, How to, Scan documents and OCR

Views

85

Likes

translate

Translate

Translate

Report

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

correct answers 1 Correct Answer

Most Valuable Participant , Feb 06, 2020 Feb 06, 2020
This can be done using Acrobat JavaScript, but it's quite a complex task.

Likes

translate

Translate

Translate
Adobe Community Professional ,
Feb 05, 2020 Feb 05, 2020

Copy link to clipboard

Copied

Do you need this data before or after the document is converted?  We can only help with analyzing a PDF, i.e. after conversion. 

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

Likes

translate

Translate

Translate

Report

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 Beginner ,
Feb 05, 2020 Feb 05, 2020

Copy link to clipboard

Copied

After conversion is acceptable.  

Likes

translate

Translate

Translate

Report

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
Adobe Community Professional ,
Feb 06, 2020 Feb 06, 2020

Copy link to clipboard

Copied

If you want to do this by hand, there is a Ruler and Grid in Acrobat. Look on the View->Show/Hide -> Rulers &Grids.

There is also a Measure Tool, look for it in the "Tools" tab.

 

This can also be done automatically with a script, but it's quite a job. 

 

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

Likes

translate

Translate

Translate

Report

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
Most Valuable Participant ,
Feb 05, 2020 Feb 05, 2020

Copy link to clipboard

Copied

There's no way to measure the distance of a word from the margin of a page in spaces or tabs, because those don't exist in a PDF files as such. You can measure the physical distance in points and then convert it to inches, centimeters, etc.

Likes

translate

Translate

Translate

Report

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 Beginner ,
Feb 06, 2020 Feb 06, 2020

Copy link to clipboard

Copied

What tools/technology are usfull for measuring the physical distance?

Likes

translate

Translate

Translate

Report

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
Most Valuable Participant ,
Feb 06, 2020 Feb 06, 2020

Copy link to clipboard

Copied

This can be done using Acrobat JavaScript, but it's quite a complex task.

Likes

translate

Translate

Translate

Report

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