Multipage PDF Open All

Community Beginner ,
Feb 04, 2021 Feb 04, 2021

Copy link to clipboard

Copied

app preferences PDFFileOptions pageToOpen 

 

It only allows you to choose one page but I want to select all. There is an option in the dialog but nothing that I can see in preferences. 

 

Any thoughts? Thanks!

TOPICS
Scripting

Views

93

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
community guidelines
Adobe Community Professional ,
Feb 04, 2021 Feb 04, 2021

Copy link to clipboard

Copied

Which version, which system?

What exactly are you doing and what exactly are you trying to achieve?

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
community guidelines
Community Beginner ,
Feb 04, 2021 Feb 04, 2021

Copy link to clipboard

Copied

I'm trying to open a multipage pdf in illustrator via a script file called
via applescript.

If I open the file via normal means I can choose the page I want to open or
All.
But there does not appear to be an option to do this with extendscript. It
only has the option to specify the page number, not all.

app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
app.preferences.PDFFileOptions.pageToOpen = 1; // I Want ALL here.
app.preferences.photoshopFileOptions.preserveLayers = false;
var artwork = new File('${src}')

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
community guidelines
Enthusiast ,
Feb 05, 2021 Feb 05, 2021

Copy link to clipboard

Copied

If you know how many pages there are in the PDF, you could iterate thru them, opening each page individually and placing it onto a separate artboard.  

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
community guidelines
Enthusiast ,
Feb 05, 2021 Feb 05, 2021

Copy link to clipboard

Copied

Bonjour!

J'ai édité un script qui peut charger jusqu'à 100 pages.

exemple guide canon 100 pages en 4.5mn (CS6 100 artBoard maxi)

Avec possibilité de plages ex "1-4,8-10,15" commande prompt()

si intéressé, me contacter.

Capture pdf to ai.PNG

 

 

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
community guidelines
Community Beginner ,
Feb 07, 2021 Feb 07, 2021

Copy link to clipboard

Copied

LATEST

 

I see, I just have to iteratet the pages and add them to artboards. 
I guess I would have to preprocess the pdf to determine if it is a multipage pdf or not. 

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