Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can change setting [Open to page]?

Enthusiast ,
Dec 18, 2018 Dec 18, 2018

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
489
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 18, 2018 Dec 18, 2018

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;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Dec 26, 2018 Dec 26, 2018

In document: viewState can Read/Write.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 26, 2018 Dec 26, 2018
LATEST

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

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