Skip to main content
Participating Frequently
September 27, 2018
Answered

Replace some page in one file, from another file

Hi,

I have two files. One original and second modified. And I have list of pages for replace.

So I want replace few pages (from the list) from modified pdf to original pdf.

is there any API or list of functions for use with PAGE management with javascript?

Or what do you sugest?

This topic is closed to new replies. Start a new post to keep the conversation going.
Bernd Alheit
Bernd AlheitCorrect answer
Community Expert
September 27, 2018

You can use the Javascript method replacesPages.

6 replies

OndrejLAuthor
Participating Frequently
September 28, 2018

OK thanks

and do you have som softver for developing?

Where you can write and test code?

Translate
try67
Community Expert
Community Expert
September 28, 2018

The JS Console is the best place for that. See: https://acrobatusers.com/tutorials/javascript_console

Translate
Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
September 27, 2018

You can use the Javascript method replacesPages.

Translate
OndrejLAuthor
Participating Frequently
September 27, 2018

Thank you,

and where is the documentation of this method?

Translate
Bernd Alheit
Community Expert
Community Expert
September 27, 2018

In the Acrobat Javascript Reference.

Translate