![]() | InDesign SDK 20.5 |
#include <IInteractivePDFExportPrefs.h>

Public Types | |
| enum | { kDefaultIID = IID_IINTERACTIVEPDFEXPORTPREFS } |
| enum | Magnification { kDefaultMagnification = 0, kActualSize, kFitPage, kFitWidth, kFitHeight, kFitVisible, k25percent, k50percent, k75percent, k100percent } |
| enum | PageLayout { kDefaultPageLayout = 0, kSinglePage, kSinglePageContinuous, kTwoUpFacing, kTwoUpFacingContinuous, kTwoUpCoverPage, kTwoUpCoverPageContinuous } |
| enum | InteractiveElements { kIncludeAll = 0, kAppearanceOnly } |
| enum | RasterCompression { kJPEGCompression = 0, kLosslessCompression, kAutomaticCompression } |
| enum | JPEGQuality { kJPEGQuality_Minimum = 0, kJPEGQuality_Low, kJPEGQuality_Medium, kJPEGQuality_High, kJPEGQuality_Maximum } |
| enum | DisplayTitle { kFileName = 0, kDocumentTitle } |
Public Member Functions | |
| virtual void | Copy (IInteractivePDFExportPrefs const *other)=0 |
| virtual void | SetReadersSpreads (bool16 spreads)=0 |
| virtual bool16 | GetReadersSpreads () const =0 |
| virtual void | SetViewAfterExport (bool16 viewAfterExport)=0 |
| virtual bool16 | GetViewAfterExport () const =0 |
| virtual void | SetEmbedPageThumbnails (bool16 embedPageThumbnails)=0 |
| virtual bool16 | GetEmbedPageThumbnails () const =0 |
| virtual void | SetAcrobatLayers (bool16 acrobatLayers)=0 |
| virtual bool16 | GetAcrobatLayers () const =0 |
| virtual void | SetTaggedPDF (bool16 taggedPDF)=0 |
| virtual bool16 | GetTaggedPDF () const =0 |
| virtual void | SetMagnification (Magnification magnification)=0 |
| virtual Magnification | GetMagnification () const =0 |
| virtual void | SetPageLayout (PageLayout pageLayout)=0 |
| virtual PageLayout | GetPageLayout () const =0 |
| virtual void | SetOpenInFullScreenMode (bool16 fullScreen)=0 |
| virtual bool16 | GetOpenInFullScreenMode () const =0 |
| virtual void | SetFlipPages (bool16 flipPages)=0 |
| virtual bool16 | GetFlipPages () const =0 |
| virtual void | SetFlipPagesSpeed (uint32 speed)=0 |
| virtual uint32 | GetFlipPagesSpeed () const =0 |
| virtual void | SetPageTransitionOverride (const ClassID &pageTransition)=0 |
| virtual ClassID | GetPageTransitionOverride () const =0 |
| virtual void | SetInteractiveElements (InteractiveElements iElements)=0 |
| virtual InteractiveElements | GetInteractiveElements () const =0 |
| virtual void | SetRasterCompression (RasterCompression compression)=0 |
| virtual RasterCompression | GetRasterCompression () const =0 |
| virtual void | SetJPEGQuality (JPEGQuality quality)=0 |
| virtual JPEGQuality | GetJPEGQuality () const =0 |
| virtual void | SetResolution (uint32 resolution)=0 |
| virtual uint32 | GetResolution () const =0 |
| virtual void | SetUsePDFStructureForTabs (bool16 useStructure)=0 |
| virtual bool16 | GetUsePDFStructureForTabs () const =0 |
| virtual void | SetDisplayTitle (DisplayTitle title)=0 |
| virtual DisplayTitle | GetDisplayTitle () const =0 |
| virtual void | SetDefaultDocumentLanguage (const PMString &language)=0 |
| virtual PMString | GetDefaultDocumentLanguage () const =0 |
| virtual void | SetExportSinglePagesPDF (bool16 exportSinglePagesPDF)=0 |
| virtual bool16 | GetExportSinglePagesPDF () const =0 |
| virtual void | SetSinglePagesPDFSuffix (PMString suffix)=0 |
| virtual PMString | GetSinglePagesPDFSuffix () const =0 |
| virtual void | SetExportHiddenSpread (bool16 exportHiddenSpread)=0 |
| virtual bool16 | GetExportHiddenSpread () const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Export preferences for interactive PDF exports.
IInteractivePDFExportPrefs is used to configure the parameters for an export to the PDF format specifically targetted to Acrobat 9 and above.
In order to export InDesign content to an interactive PDF, you will typically create an instance of the interactive PDF export command (kInteractivePDFExportCmdBoss), set its IOutputPages interface to the pages to be exported, and set up the output file (ISysFileData) and UI flags (IUIFlagData) to be used. You can then use the IInteractivePDFExportPrefs aggregated on the command boss to set up various parameters for the export, including how to treat raster images, video, etc. There is also an interface off of the command boss to set the security settings for the exported PDF (IPDFSecurityPrefs).
IInteractivePDFExportPrefs is also aggregated on the app workspace, where it is used to ensure that default export settings are preserved from export to export. You might consider using this instance as the base for your export settings. You might also consider using kSetInteractivePDFExportPrefsCmdBoss to update the default export settings for subsequent exports. There is also a facade available (IInteractivePDFExportFacade.h) to assist in retrieving the application workspace settings.
Display Title - Options for display title.
Button and Media
JPEGQuality - JPEG quality
Magnification - Options for magnification
Page Layout - Options for page layout
RasterCompression - Compression for rasters
| pure virtual |
Copies one set of prefs into another
| other | IN The preferences to copy |
| pure virtual |
Gets whether to create Acrobat layers in the PDF.
| pure virtual |
Gets the default document language for the PDF being exported.
| pure virtual |
Gets the display title for the PDF being exported.
| pure virtual |
Gets whether to embed page thumbnails in the exported PDF file.
| pure virtual |
Gets whether to export the document with hidden spreads or not.
| pure virtual |
Gets the exportSinglePagesPDF preference.
| pure virtual |
Gets whether to automatically flip pages in the PDF.
| pure virtual |
Gets the flip pages speed, in seconds.
| pure virtual |
Gets the setting for how to handle interactive elements such as buttons and media.
| pure virtual |
Gets the quality to be used for JPEG compressed images during the export.
| pure virtual |
Gets the initial magnification setting.
| pure virtual |
Gets whether to open the PDF in full screen mode.
| pure virtual |
Gets the page layout for the PDF being exported.
| pure virtual |
Gets the page transition ClassID that will be used for all pages exported, overriding any page transition on a spread. If the ClassID is kInvalidClass then no page transition will be used. If the ClassID is kPageTransitionFromDocument, the spread's page transition will be used.
| pure virtual |
Gets the preferred raster compression to be used for the export.
| pure virtual |
Gets whether to export as reader's spreads.
| pure virtual |
Gets the resolution to use for the PDF export, in pixels per inch.
| pure virtual |
Gets single pages PDF suffix to be used at the end of filename.
| pure virtual |
Gets whether to create a tagged (structured) interactive PDF.
| pure virtual |
Gets whether to use tagged PDF structure for ordering tabs.
| pure virtual |
Gets whether to view the generated PDF file after exporting.
| pure virtual |
Sets whether to create Acrobat layers in the PDF.
| acrobatLayers | Boolean. If kTrue, create Acrobat layers. |
| pure virtual |
Sets the default document language for the PDF being exported.
| pure virtual |
Sets the display title for the PDF being exported.
DisplayTitle: One of the DisplayTitle enum specifying the display title to use.
| pure virtual |
Sets whether to embed page thumbnails in the exported PDF file.
| embedPageThumbnails | Boolean. If kTrue, page thumbnails are embedded. |
| pure virtual |
Sets whether to export document with hidden spreads.
| exportHiddenSpread | Boolean. If kTrue, document is exported with hidden spreads. |
| pure virtual |
Sets whether to export single page PDF or not.
| pure virtual |
Sets whether to automatically flip pages in the PDF. If this is true, the set/get flip pages speed will determine the speed that the pages flip.
| flipPages | Boolean. If kTrue, pages will automatically flip. |
| pure virtual |
Sets the flip pages speed, in seconds. If GetFlipPages() is true, the speed that the pages flip is controlled by the flip pages speed setting.
| speed | uint32: the speed that the pages flip, in seconds. |
| pure virtual |
Sets how to handle interactive elements such as buttons and media.
| iElements,: | One of the InteractiveElements enum specifying how to handle buttons and media |
| pure virtual |
Sets the quality to be used for JPEG compressed images during the export.
| quality | One of the JPEGQuality enum |
| pure virtual |
Sets the initial magnification when the PDF is opened.
Magnification: One of the Magnification enum specifying the initial magnification to use.
| pure virtual |
Sets whether to open the PDF in full screen mode.
| fullScreen | Boolean. If kTrue, PDF is opened in full screen mode. |
| pure virtual |
Sets the page layout for the PDF being exported.
PageLayout: One of the PageLayout enum specifying the page layout to use.
| pure virtual |
Sets the page transition to use for all pages, overriding any page tranition set on a spread. If the parameter passed is kInvalidClass then no page transition will be used. If the parameter passed is kPageTransitionFromDocument then the spread's page transition will be honored.
| pageTransition | ClassID: the ClassID of the page tranition to use. |
| pure virtual |
Sets the preferred raster compression to be used for the export. Note that some compression types will be required in certain scenarios and that those will take precedence over the setting specified here. This will be used when no particular compression type is required.
| compression,: | One of the RasterCompression enum specifying the preferred raster compression |
| pure virtual |
Sets whether to export as reader's spreads.
| spreads | Boolean. If kTrue, export as reader's spread; if kFalse, export as pages |
| pure virtual |
Sets the resolution to use for the PDF export, in pixels per inch.
| resolution | uint32: The resolution to use (ppi). |
| pure virtual |
Sets single pages PDF suffix to be used at the end of filenames.
| pure virtual |
Sets whether to create a tagged (structured) interactive PDF.
| taggedPDF | Boolean. If kTrue, create structured PDF. |
| pure virtual |
Sets whether to use tagged PDF structure for ordering tabs.
| useStructure | whether to use PDF structure for tab order. |
| pure virtual |
Sets whether to view the generated PDF file after exporting.
| viewAfterExport | Boolean. If kTrue, view the generated PDF file after exporting. |