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

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

Explorer ,
Aug 27, 2014 Aug 27, 2014

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
758
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

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));

Translate
Adobe
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));

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

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

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

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

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

I got the answer from other posts, thanks

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