How to quantify indents

Community Beginner ,
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?  

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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

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

Views

79

Likes

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

How to quantify indents

Community Beginner ,
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?  

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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

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

Views

80

Likes

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
Feb 05, 2020 0
Adobe Community Professional ,
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. 

Likes

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
Reply
Loading...
Feb 05, 2020 0
Community Beginner ,
Feb 05, 2020

Copy link to clipboard

Copied

After conversion is acceptable.  

Likes

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
Reply
Loading...
Feb 05, 2020 0
Adobe Community Professional ,
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. 

 

Likes

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
Reply
Loading...
Feb 06, 2020 0
Most Valuable Participant ,
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

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 05, 2020 1
Community Beginner ,
Feb 06, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Feb 06, 2020 0
Most Valuable Participant ,
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

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 06, 2020 1