Replace some page in one file, from another file

Community Beginner ,
Sep 27, 2018

Copy link to clipboard

Copied

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?

Adobe Community Professional
Correct answer by Bernd Alheit | Adobe Community Professional

You can use the Javascript method replacesPages.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

145

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Replace some page in one file, from another file

Community Beginner ,
Sep 27, 2018

Copy link to clipboard

Copied

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?

Adobe Community Professional
Correct answer by Bernd Alheit | Adobe Community Professional

You can use the Javascript method replacesPages.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

146

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 27, 2018 0
Adobe Community Professional ,
Sep 27, 2018

Copy link to clipboard

Copied

You can use the Javascript method replacesPages.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 27, 2018 0
Community Beginner ,
Sep 27, 2018

Copy link to clipboard

Copied

Thank you,

and where is the documentation of this method?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 27, 2018 0
Adobe Community Professional ,
Sep 27, 2018

Copy link to clipboard

Copied

In the Acrobat Javascript Reference.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 27, 2018 0
Adobe Community Professional ,
Sep 27, 2018

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 27, 2018 1
Community Beginner ,
Sep 28, 2018

Copy link to clipboard

Copied

OK thanks

and do you have som softver for developing?

Where you can write and test code?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 28, 2018 1
try67 LATEST
Most Valuable Participant ,
Sep 28, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 28, 2018 2