How can change setting [Open to page]?

Enthusiast ,
Dec 18, 2018

Copy link to clipboard

Copied

My PDF will display page 2 after open file

I want display page 1 after open file.

I want process by Script or COM.

TOPICS
Acrobat SDK and JavaScript

Views

204

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 can change setting [Open to page]?

Enthusiast ,
Dec 18, 2018

Copy link to clipboard

Copied

My PDF will display page 2 after open file

I want display page 1 after open file.

I want process by Script or COM.

TOPICS
Acrobat SDK and JavaScript

Views

205

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
Dec 18, 2018 0
Most Valuable Participant ,
Dec 18, 2018

Copy link to clipboard

Copied

Using a script you can't change the default Initial View options, but you can override them by embedding this code as a doc-level script:

this.pageNum = 0;

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...
Dec 18, 2018 0
Enthusiast ,
Dec 26, 2018

Copy link to clipboard

Copied

In document: viewState can Read/Write.

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...
Dec 26, 2018 1
Most Valuable Participant ,
Dec 26, 2018

Copy link to clipboard

Copied

Yes, viewState is read-write and does not affect open options. Please see earlier reply.

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...
Dec 26, 2018 0