Skip to main content
Participating Frequently
September 27, 2018
Answered

Replace some page in one file, from another file

  • September 27, 2018
  • 2 replies
  • 1283 views

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 has been closed for replies.
Correct answer Bernd Alheit

You can use the Javascript method replacesPages.

2 replies

OndrejLAuthor
Participating Frequently
September 28, 2018

OK thanks

and do you have som softver for developing?

Where you can write and test code?

try67
Community Expert
Community Expert
September 28, 2018

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

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

You can use the Javascript method replacesPages.

OndrejLAuthor
Participating Frequently
September 27, 2018

Thank you,

and where is the documentation of this method?

Bernd Alheit
Community Expert
Community Expert
September 27, 2018

In the Acrobat Javascript Reference.