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

Public Member Functions | |
| virtual uint32 | GetPageIndex () const =0 |
| virtual void | SetPageIndex (uint32 pageIndex)=0 |
| virtual bool16 | GetTransparentBackground () const =0 |
| virtual void | SetTransparentBackground (bool16 fTransparent)=0 |
| virtual bool16 | GetPreserveScreens () const =0 |
| virtual void | SetPreserveScreens (bool16 fPreserve)=0 |
| virtual void | SetUserEnteredPassword (bool16 enteredPassword)=0 |
| virtual bool16 | GetUserEnteredPassword () const =0 |
| virtual const UIDList * | CreateUsedColorUIDList (const UIDList *pUIDList)=0 |
| virtual const UIDList * | GetUsedColorUIDList () const =0 |
| virtual uint32 | GetCropTo () const =0 |
| virtual void | SetCropTo (uint32 cropTo)=0 |
| virtual bool16 | GetContainsTransparency () const =0 |
| virtual void | SetContainsTransparency (bool16 containsXP)=0 |
| virtual bool16 | GetContainsOPIReferences () const =0 |
| virtual void | SetContainsOPIReferences (bool16 containsOPI)=0 |
| virtual bool16 | GetContainsOverprint () const =0 |
| virtual void | SetContainsOverprint (bool16 opd)=0 |
| virtual bool16 | GetContainsNIPBlendingModes () const =0 |
| virtual void | SetContainsNIPBlendingModes (bool16 nips)=0 |
| virtual bool16 | GetXPPreviouslyFlattened () const =0 |
| virtual void | SetXPPreviouslyFlattened (bool16 flat)=0 |
| virtual bool16 | HasPageBlending () const =0 |
| virtual CAGMColorSpace | GetBlendingColorSpace (bool16 *isOverride=nil)=0 |
| virtual void | SetBlendingColorSpace (CAGMColorSpace cs, bool16 isOverride)=0 |
| virtual bool16 | GetPageIsolation (bool16 *isOverride=nil) const =0 |
| virtual void | SetPageIsolation (bool16 isolate, bool16 isOverride)=0 |
| virtual bool16 | GetPageKnockout (bool16 *isOverride=nil) const =0 |
| virtual void | SetPageKnockout (bool16 knockout, bool16 isOverride)=0 |
| virtual void | SetApplyColorAliases (bool16 apply)=0 |
| virtual bool16 | GetApplyColorAliases () const =0 |
| virtual int32 | GetExportStrategy () const =0 |
| virtual void | SetExportStrategy (int32 strategy)=0 |
| virtual bool16 | IsFromClipboard () const =0 |
| virtual void | SetFromClipboard (bool16 fromClipboard)=0 |
| virtual int32 | CalculateHasTransparency (bool16 &bTransparency)=0 |
| virtual bool16 | GetHasGradient () const =0 |
| virtual void | SetHasGradient (bool16 hasGradient)=0 |
| virtual bool16 | GetHasGradientMesh () const =0 |
| virtual void | SetHasGradientMesh (bool16 hasGradientMesh)=0 |
| virtual int32 | GetExpectedPDFLibCancelCallbackCount () const =0 |
| virtual void | SetExpectedPDFLibCancelCallbackCount (int32 n)=0 |
| virtual bool16 | GetIsTrapped () const =0 |
| virtual void | SetIsTrapped (bool16 bIsTrapped)=0 |
| virtual uint32 | GetProcessColorsUsed () const =0 |
| virtual void | SetProcessColorsUsed (uint32 processColorsUsed)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
The IPDFAttributes interface stores information about a placed PDF file.
| pure virtual |
Calculate whether this PDF has transparency.
Note: This method will do a fairly expensive calculation to determine if the associated PDF has transparency or not. In general, it should not be used. Instead, IPDFAttributes.GetContainsTransparency should be used. We use it during document conversion, because in that case the value returned by GetHasTransparency flag is not set correctly, since 1.5 docs didn't support transparency. After the 1.5 document is converted, however, everything should be fine.
| bTransparency | OUT Set to kTrue if PDF has transparency, else kFalse |
| pure virtual |
Creates a UIDList of color swatches used by the PDF. The existing list, if any, is deleted and a new list is created. If a valid list is passed in, the new list contains it as its single entry; otherwise, the new list is empty.
| pUIDList | IN Swatch UID list to create, or nil if the list is to be created empty |
| pure virtual |
Returns kTrue if the user chose to allow color aliasing, else kFalse
| pure virtual |
Gets blending color space for this PDF.
Note: necessarily unusable by third-party developers due to use of internal type CAGMColorSpace
| isOverride | OUT If non-nil, set to kTrue if color space is an override, else kFalse |
| pure virtual |
Returns kTrue if this PDF contains non-ink-preserving blend modes, else kFalse
| pure virtual |
Returns kTrue if this PDF contains OPI references, else kFalse
| pure virtual |
Returns kTrue if this PDF contains overprint, else kFalse
| pure virtual |
Returns kTrue if this PDF contains transparency, else kFalse
| pure virtual |
Gets the "crop to" setting for this PDF.
| pure virtual |
Internal use only. Intentionally undocumented.
| pure virtual |
Note: This API will be obsoleted in a future version. Do not use.
| pure virtual |
Returns kTrue if PDF contains one or more gradients, else kFalse
| pure virtual |
Returns kTrue if PDF contains one or more gradient meshes, else kFalse
| pure virtual |
Gets whether the PDF has been trapped. This is determined by reading the /Trapped key in the PDF.
| pure virtual |
Returns the index number of currently referenced page
| pure virtual |
| isOverride | OUT If non-nil, set to kTrue if page isolation setting is an override, else kFalse |
| pure virtual |
| isOverride | OUT If non-nil, set to kTrue if page knockout setting is an override, else kFalse |
| pure virtual |
Returns the "preserve halftone screens" setting for this PDF item.
| pure virtual |
Gets which process colors are used in the PDF. Return value is a bitfield and will consist of a combination of one or more of the following values: kCyanUsed, kMagentaUsed, kYellowUsed, or kBlackUsed, or it may be the special value kAllProcessColorsUsed.
| pure virtual |
Returns the background transparency for this PDF item.
| pure virtual |
| pure virtual |
Internal use only. Intentionally undocumented.
| pure virtual |
Returns kTrue if this PDF was previously flattened, else kFalse
| pure virtual |
Returns kTrue if this PDF has page-level blending, else kFalse
| pure virtual |
Returns kTrue if page item was pasted from the system clipboard, else kFalse
| pure virtual |
Set the user's choice for whether to allow color aliasing.
| apply | IN The new apply color aliases setting |
| pure virtual |
Sets the blending color space for this PDF.
Note: necessarily unusable by third-party developers due to use of internal type CAGMColorSpace
| cs | IN The new blending color space |
| isOverride | IN The new is-override flag |
| pure virtual |
Sets whether this PDF contains non-ink-preserving blend modes.
| nips | IN The new value for whether this PDF contains non-ink-preserving blend modes |
| pure virtual |
Sets whether this PDF contains OPI references
| containsOPI | IN The new value for whether this PDF contains OPI references |
| pure virtual |
Sets whether this PDF contains overprint.
| opd | IN The new value for whether this PDF contains overprint |
| pure virtual |
Sets whether this PDF contains transparency.
| containsXP | IN The new value for whether this PDF contains transparency |
| pure virtual |
Sets the "crop to" setting for this PDF.
| cropTo | IN The new crop to setting to use for this PDF |
| pure virtual |
Internal use only. Intentionally undocumented.
| pure virtual |
Note: This API will be obsoleted in a future version. Do not use.
Sets the export strategy for this PDF.
| strategy | IN The new export strategy |
| pure virtual |
Sets whether this page item was pasted from system clipboard.
| fromClipboard | IN The new is from clipboard setting |
| pure virtual |
Sets whether PDF contains one or more gradients.
| hasGradient | IN The new value for has gradient setting |
| pure virtual |
Sets whether PDF contains one or more gradient meshes.
| hasGradientMesh | IN The new value for has gradient mesh setting |
| pure virtual |
Sets whether PDF was trapped. Should be based on whether /Trapped key in the PDF is set to true.
| bIsTrapped | IN The new is trapped setting |
| pure virtual |
Sets the index number of the currently referenced page.
| pageIndex | IN The page number of currently referenced page |
| pure virtual |
Sets page isolation setting for this PDF.
| isolate | IN The new uses page isolation setting |
| isOverride | IN kTrue if setting is an override, else kFalse |
| pure virtual |
Sets page knockout setting for this PDF.
| knockout | IN The new uses page knockout setting |
| isOverride | IN kTrue if setting is an override, else kFalse |
| pure virtual |
Sets the "preserve halftone screens" setting for this PDF item.
| fPreserve | IN Flag indicating whether to preserve halftone screens |
| pure virtual |
Sets which process colors are used in the PDF. Input is a bitfield and should consist of a combination of one or more of the following values: kCyanUsed, kMagentaUsed, kYellowUsed, or kBlackUsed, or it may be the special value kAllProcessColorsUsed.
| processColorsUsed | IN Bitfield indicating which process colors are used |
| pure virtual |
Sets the background transparency for this PDF item.
| fTransparent | IN Flag indicating whether background is transparent |
| pure virtual |
Internal use only. Intentionally undocumented.
| pure virtual |
Sets whether this PDF was previously flattened.
| flat | IN The new value for whether this PDF was previously flattened |