Read PDF contents to rename file

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

Read PDF contents to rename file

Post by web3dprint »

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: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Read PDF contents to rename file

Post by gabrielp »

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.
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Zoranj
Member
Posts: 107
Joined: Tue Sep 20, 2016 7:37 pm
Location: Canada

Re: Read PDF contents to rename file

Post by Zoranj »

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: 8
Joined: Fri Feb 26, 2016 5:04 pm

Re: Read PDF contents to rename file

Post by web3dprint »

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: 107
Joined: Tue Sep 20, 2016 7:37 pm
Location: Canada

Re: Read PDF contents to rename file

Post by Zoranj »

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
Post Reply