Use the IOutputPages interface present in the kPDFExportCmdBoss. In this interface you can set the UIDList of the pages for which you need the pdf to be exported.
- Efficient InDesign Solutions -
In order to generate one pdf per page I used kPDFExportCmdBoss, and set pages in IOutputPages and path in ISysFileData then after process the command.
Now my second requirement is that I need to generate these pdfs on background thread.
On looking into CHM I found that
IExportProvider::AsynchronousExportToFile() export the pdf on background thread.
What I need to do so that my pdf export goes on background thread