Link in Zwischenablage kopieren
Kopiert
Hi!
I'm trying to count the total Page amount of a PDF File in JavaScript but haven't found any decent solution so far.
Any ideas?
What version of Illustrator are you using?
The latest version of Illustrator will open multiple page PDFs...
Since you are most likely on an older version of Illustrator you can use the open multiple page pdfs script....
It opens all the pages of a PDF on individual artboards.
Then my script would work.
Link in Zwischenablage kopieren
Kopiert
You could just have it count the art boards...then alert you
alert("There are " + app.activeDocument.artboards.length + " pages");
Link in Zwischenablage kopieren
Kopiert
This will always return 1 as you can only open one PDF page at once
Link in Zwischenablage kopieren
Kopiert
What version of Illustrator are you using?
The latest version of Illustrator will open multiple page PDFs...
Since you are most likely on an older version of Illustrator you can use the open multiple page pdfs script....
It opens all the pages of a PDF on individual artboards.
Then my script would work.
Link in Zwischenablage kopieren
Kopiert
Thx! Yes I'm working with Illustrator CS6.
Sadly the link returns 404.
Here is an extended version of the script:
Weitere Inspirationen, Events und Ressourcen finden Sie in der neuen Adobe Community
Jetzt ansehen