Highlighted

Get page number when opening PDF in Illustrator

Community Beginner ,
Aug 19, 2020

Copy link to clipboard

Copied

I'm currently developing a plugin for illustrator that processes PDFs. When opening a multipage PDF in Illustrator you are presented with a dialog allowing you to select which pages to open. I'd like to be able to detect which page has been opened within the plugin and wondered if there was anyway of doing this within the SDK as I can't seem to find it?

Cheers

TOPICS
SDK

Views

54

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

Get page number when opening PDF in Illustrator

Community Beginner ,
Aug 19, 2020

Copy link to clipboard

Copied

I'm currently developing a plugin for illustrator that processes PDFs. When opening a multipage PDF in Illustrator you are presented with a dialog allowing you to select which pages to open. I'd like to be able to detect which page has been opened within the plugin and wondered if there was anyway of doing this within the SDK as I can't seem to find it?

Cheers

TOPICS
SDK

Views

55

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
Aug 19, 2020 0
Participant ,
Aug 19, 2020

Copy link to clipboard

Copied

Using Action Recorder (Illustrator Actions) you can record document open procedure. When you save action to file (.aia) you can see all parameters user entered in modal window, along with page number as 'page' parameter. Try to explore in that direction, see if you can trigger action record using SDK (AIActionManagerSuite) and read result or look if there are some notifiers with message containing parameters

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...
Aug 19, 2020 0
Enthusiast ,
Sep 03, 2020

Copy link to clipboard

Copied

I think ,SDK not support this function.

But If you can use Script. You can get Page Opening by this code:

var iPage=app.preferences.PDFFileOptions.pageToOpen;

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...
Sep 03, 2020 0
Resources