Please expose a PDF's page count to scripting
To place a PDF in InDesign, you have to know the PDF's page count. The main point of the PlaceMultiPagePDF script is to show how you can place a PDF without knowing its page count, but it's slow business and get very tedious when you want to place part-ranges that include an open-ended range, such as 10-20, 30-
There is a hack, but it's ugly and unreliable.
Peter
33
votes
![](https://secure.gravatar.com/avatar/1b43c189788e73277aab77a047fe2031?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Uwe Laubender commented
Below a link to a thread that is showing a hack and other workarounds, that rely on software that is not InDesign:
"How can I get a total page count of a PDF before placing every page in the PDF?"
(Jezz) Apr 30, 2008https://forums.adobe.com/message/1112698#1112698
Regards,
Uwe Laubender
( ACP )