Read PDF contents to rename file

web3dprint
Newbie
Posts: 5
Joined: Fri Feb 26, 2016 5:04 pm

Read PDF contents to rename file

Postby web3dprint » Tue Aug 08, 2017 1:22 pm

I'm looking for a way to read a section of a PDF file to use it as the name for such file. The text would be in a Text element, so no need to do OCR or anything like that.

I thought that by using PitStop Pro i can read the contents of a Text element, but it does not seem possible. Do you have any other suggestion?

User avatar
gabrielp
Advanced member
Posts: 580
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Read PDF contents to rename file

Postby gabrielp » Tue Aug 08, 2017 3:25 pm

PDFSpy can do that and it has an integration for Switch. It's a paid software you can buy from Apago. Not sure how its done with Pitstop.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix

Zoranj
Member
Posts: 25
Joined: Tue Sep 20, 2016 7:37 pm

Re: Read PDF contents to rename file

Postby Zoranj » Tue Aug 08, 2017 7:58 pm

Another suggestion is to save PDF as txt file and read it that way, perhaps using Regex to match what you need.

web3dprint
Newbie
Posts: 5
Joined: Fri Feb 26, 2016 5:04 pm

Re: Read PDF contents to rename file

Postby web3dprint » Tue Aug 08, 2017 8:38 pm

Zoranj wrote:Another suggestion is to save PDF as txt file and read it that way, perhaps using Regex to match what you need.


Hmm that sounds interesting… how would you save to txt from a PDF? Never seen that before

Zoranj
Member
Posts: 25
Joined: Tue Sep 20, 2016 7:37 pm

Re: Read PDF contents to rename file

Postby Zoranj » Wed Aug 09, 2017 12:06 am

Easy:
Use Acrobat configurator out of the box, set output to be txt file.
Less easy but better (IMHO):
In my experience Acrobat works but was not the most stable, often crashing and not responding when processing many files.
Therefore wherever I used Acrobat, I replaced it with XPDF or PDFTk, depending on what I need.
Never looked back.

I hope this helps


Return to “Applications”



Who is online

Users browsing this forum: No registered users and 1 guest