Skip to main content
daves95694859
Inspiring
August 19, 2020
Question

Get page number when opening PDF in Illustrator

  • August 19, 2020
  • 2 replies
  • 260 views

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

This topic has been closed for replies.

2 replies

daitranthanhoa
Inspiring
September 3, 2020

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;

MilosR
Inspiring
August 19, 2020

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