How to delete the last page when you have just one page?

Community Beginner ,
Aug 30, 2018

Copy link to clipboard

Copied

WOW, it seems than empty PDF are not allowed, i'm true?

this.deletePages(this.numPages-1); // not a solution

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

A PDF file must have at least one page at all times.

TOPICS
Acrobat SDK and JavaScript

Views

79

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

How to delete the last page when you have just one page?

Community Beginner ,
Aug 30, 2018

Copy link to clipboard

Copied

WOW, it seems than empty PDF are not allowed, i'm true?

this.deletePages(this.numPages-1); // not a solution

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

A PDF file must have at least one page at all times.

TOPICS
Acrobat SDK and JavaScript

Views

80

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
Aug 30, 2018 0
Adobe Community Professional ,
Aug 30, 2018

Copy link to clipboard

Copied

This is not allowed.

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...
Aug 30, 2018 1
Most Valuable Participant ,
Aug 30, 2018

Copy link to clipboard

Copied

A PDF file must have at least one page at all times.

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...
Aug 30, 2018 1