Skip to main content
gtsolid
Known Participant
January 23, 2020
Question

Exctracting pages according to a word

  • January 23, 2020
  • 2 replies
  • 2223 views

Hi,

i have several PDFs and i wish to extract a single page from each of them.

I would put all the files into a folder and then open one by one. When i find a world that i decide, the batch would extract the page in which it's found, close the source file and go on with the next one.

The n pages need to be melted in a single binder.

I have no idea how to program software into Adobe, can you help me?

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
January 23, 2020

You'll find some Acrobat Action (batch) scripts here that will help you to do this.

https://www.acrobatusers.com/actions-exchange/index.html

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
gtsolid
gtsolidAuthor
Known Participant
January 23, 2020

I downloaded some and i notice they're in xml format, for example

	<Group label="Convert to PNG">
		<Command name="WorkflowPlaybackSaveFiles" pauseBefore="false" promptUser="false">
			<Items>
				<Item name="AddToBaseName" type="boolean" value="false"/>

Do you have a list of instructions about those? 

Thom Parker
Community Expert
Community Expert
January 24, 2020

What doi you mean here?

you'll to get and HTML entity decoder

Yes, there are some typos. Typing too fast.

 

I meant, you'll need to get an HTML entity decoder. If you've ever written HTML you'll know that certain symbols can't be used in the text, such as "<" and ">".  These are called entities and in HTML they are encoded with a special format. You see this in the JavaScript code in the ".sequ" file.

 

Anyway, before going down this path, just load the sequ file into Acrobat and see if you can edit the Action.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
January 23, 2020

This is not a simple task for someone without any Acrobat JavaScript experience. If you want to do it yourself you'll have quite a steep learning curve ahead of you. I would recommend starting with a simpler task and then moving on to more complex ones.

gtsolid
gtsolidAuthor
Known Participant
January 23, 2020

I have basics of C++ and MatLab, how can i write code in Acrobat?

try67
Community Expert
Community Expert
January 23, 2020

Acrobat uses JavaScript. Load the sequ files you downloaded in Acrobat and then you'll be able to see the actions in them via Tools - Action Wizard.