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

Public Types | |
| enum | { kDefaultIID = IID_IPDFPLACEPREFS } |
| enum | { kCropToContentVisibleOnly = 0, kCropToUnused, kCropToArt, kCropToPage, kCropToTrim, kCropToBleed, kCropToMedia, kCropToContentAllLayers } |
Public Member Functions | |
| virtual void | CopyData (IPDFPlacePrefs *dataToCopy)=0 |
| virtual void | SetPage (int32 nPage)=0 |
| virtual int32 | GetPage ()=0 |
| virtual void | SetCropTo (int32 newCropTo)=0 |
| virtual int32 | GetCropTo ()=0 |
| virtual void | SetPreserveScreens (bool16 bPreserve)=0 |
| virtual bool16 | GetPreserveScreens ()=0 |
| virtual void | SetTransparentBackground (bool16 bTransparent)=0 |
| virtual bool16 | GetTransparentBackground ()=0 |
| virtual void | SetStream (IPMStream *pStream)=0 |
| virtual IPMStream * | GetStream ()=0 |
| virtual void | SetUserPassword (PMString strPassword)=0 |
| virtual PMString | GetUserPassword ()=0 |
| virtual void | SetProxyResolution (int32 nDPI)=0 |
| virtual int32 | GetProxyResolution ()=0 |
| virtual void | SetPageRange (const K2Vector< uint32 > &list)=0 |
| virtual void | GetPageRange (K2Vector< uint32 > &list)=0 |
| virtual void | SetAllPages (uint32 totalPages, bool16 allPages)=0 |
| virtual bool16 | GetAllPages (uint32 *totalPages=nil)=0 |
| virtual bool16 | GetShowPreview ()=0 |
| virtual void | SetShowPreview (bool16 b)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Public interface used to remember the PDF place options.
This interface is used by the PDF place code to hold the settings the user selects in the PDF options dialog. The workspace has this interface to hold the default values.
| pure virtual |
Method to copy all the stored information from one interface to another.
| dataToCopy | is where the information is copied from. |
| pure virtual |
Method to get the total pages of the PDF and whether all pages are being placed.
| totalPages | is returned. totalPages is optional, pass nil if you don't want it. |
| pure virtual |
Method to get the CropTo information.
| pure virtual |
Method to get the stored PDF page number.
| pure virtual |
Method to get the stored page range.
| list | is filled with the page numbers to place. |
| pure virtual |
Method
| pure virtual |
Method
| pure virtual |
Determine wether we show a preview in the import options dialog.
| pure virtual |
Method
| pure virtual |
Method
| pure virtual |
Method
| pure virtual |
Method to store the total pages when all pages are placed.
| totalPages | is the total number of pages in the PDF file. A value of 0xffffffff for totalPages, means the interal total page value is not changed. You can use this when you only want to set the allPages value. |
| allPages | is true to place all the pages. When it is false the page range is used. We place the current page (GetPage value). The subsequent pages placed are sequential until the total is reached. To place all pages, set the current page to 1 using SetPage(1). |
| pure virtual |
Method to store the CropTo information.
| newCropTo |
| pure virtual |
Method to store the PDF page number of the placed page.
| nPage | is the page number (1 is the first page). |
| pure virtual |
Method to store the page range to place.
| list | contains the page numbers to place (page numbers start at 0). We place the current page (GetPage value). The subsequent pages placed come from this list. We linear search the list for the first instance of the current page then place all the remaining items in the list. If the list does not contain the current page, no items from the list are placed. |
| pure virtual |
Method to store the preserve screens information.
| bPreserve | is true to preserve screens. |
| pure virtual |
Method
| pure virtual |
Method
| pure virtual |
Method
| pure virtual |
Method