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

Can i open PDF with certain page? [CS6-Java]

Explorer ,
Aug 27, 2014 Aug 27, 2014

Copy link to clipboard

Copied

i have to resave tons of pic from PDF. I can make AI call opening dialog:

app.open (myName, DocumentColorSpace.CMYK);

but i have to type in dialog page numbers manually. Can i enter a numbers in dialog by script?

thanks

TOPICS
Scripting

Views

597

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
community guidelines

correct answers 1 Correct answer

Valorous Hero , Jul 30, 2018 Jul 30, 2018

This is solved with the following object's usage:

var openOpts = app.preferences.PDFFileOptions;

openOpts.pageToOpen = 1; // insert your own number here

app.open(File(targetPath));

Votes

Translate

Translate
Adobe
Valorous Hero ,
Jul 30, 2018 Jul 30, 2018

Copy link to clipboard

Copied

This is solved with the following object's usage:

var openOpts = app.preferences.PDFFileOptions;

openOpts.pageToOpen = 1; // insert your own number here

app.open(File(targetPath));

Votes

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
community guidelines
Participant ,
Apr 02, 2024 Apr 02, 2024

Copy link to clipboard

Copied

sorry , bother you. do you know how to open pdf that is contains multiple page , and without prompt of select page?

Votes

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
community guidelines
Adobe Employee ,
Apr 12, 2024 Apr 12, 2024

Copy link to clipboard

Copied

Hello @rui huang,

Thanks for reaching out. Would you mind sharing some more details, like the exact version of the OS/Illustrator, and the details of your workflow, so we can better assist you?

Looking forward to hearing from you.

 

Thanks,

Anubhav

Votes

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
community guidelines
Participant ,
Apr 12, 2024 Apr 12, 2024

Copy link to clipboard

Copied

LATEST

I got the answer from other posts, thanks

Votes

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
community guidelines