I need to import a multiple page PDF into FrameMaker. I can specify each page number and it works successfully, but the missing piece is knowing how many pages are in the PDF. With FrameScript, I can use its EActiveXObject object to query the PDF and find out the number of pages. It can also be done with InDesign ExtendScript by using its app.doScript method to pass some Visual Basic to the PDF, returning its page count. I am trying to figure out how to do this with FrameMaker ExtendScript. Any ideas would be appreciated.
One thing I tried: I was hoping that once the page number I passed to the Import method exceeded the number of pages in the PDF that the command would fail. But it doesn't; it simply imports page 1.
Rick