![]() | InDesign SDK 20.5 |
Public Member Functions | |
| SnpExportDocAsPDF () | |
| virtual | ~SnpExportDocAsPDF () |
| ErrorCode | ExportDocAsPDF (IDocument *doc, const IDFile &pdfFileName, const PMString &pdfFileFormat) |
| ErrorCode | ChooseSaveLocation (IDFile &chosenFile, PMString &pdfFileFormat) |
| K2Vector< PMString > | GetDocNames (IDocumentList *docList) |
This snippet shows how to use the PDF export service provider to export a document to interactive or print PDF.
| inline |
Constructor.
| inlinevirtual |
Destructor.
Choose a PDF filename (IDFile) to save the document, based on the document's filename.
| chosenFile | OUT The file to save. |
| pdfFileFormat | OUT The PDF file format - interactive or print. |
| ErrorCode SnpExportDocAsPDF::ExportDocAsPDF | ( | IDocument * | doc, |
| const IDFile & | pdfFileName, | ||
| const PMString & | pdfFileFormat | ||
| ) |
Exports a document as interactive or print PDF. This method wraps the the PDF export service provider.
| doc | IN The document to export. |
| pdfFileName | IN The IDFile to which you want to export. |
| pdfFileFormat | IN The PDF file format - interactive or print. |
| K2Vector< PMString > SnpExportDocAsPDF::GetDocNames | ( | IDocumentList * | docList | ) |
Gets the names of documents currently available.
| docList | IN The session's document list. |