Layer | PD_Layer |
Object | PDPage |
A PDPage is a page in a document, corresponding to the PDF Page object (see Page Objects in Section 3.6.2, Page Tree, in the PDF Reference).
Among other associated objects, a page contains:
Define | ||
---|---|---|
kPDPageBlendingProfileValueStr
Takes ASext as input. If set we use this profile as blending profile. kPDPageDisplayOverPrintPreviewStr must be set for this to get honored.
|
||
kPDPageBlendingProfileValueStr
Takes ASext as input. If set we use this profile as blending profile. kPDPageDisplayOverPrintPreviewStr must be set for this to get honored.
|
||
kPDPageDirectlyImposedStr
Directly imposed page.
|
||
kPDPageDisplayOverPrintPreviewStr
Display overprint preview.
|
||
kPDPageDisplayOverPrintPreviewStr
Display overprint preview.
|
||
kPDPageDoLazyEraseStr
Const strings used as ASCab keys when passing drawing flags. These are valid only for calls to PDDrawPageOrCosObjectToBuffer.
|
||
kPDPageDoLazyEraseStr
Const strings used as ASCab keys when passing PDPageDrawFlags. These are valid only for calls to PDPageDrawContentsToMemoryEx.
|
||
kPDPageDoNotSubstituteWorkingSpacesStr
Do not substitute working spaces.
|
||
kPDPageDoNotSubstituteWorkingSpacesStr
Do not substitute working spaces.
|
||
kPDPageDrawSmoothBicubicImageStr
Draw smooth image using bicubic resampling. This option can have performance overhead.
|
||
kPDPageDrawSmoothBicubicImageStr
Draw smooth image using bicubic resampling. This option can have performance overhead.
|
||
kPDPageDrawSmoothImageStr
Draw smooth image.
|
||
kPDPageDrawSmoothImageStr
Draw smooth image.
|
||
kPDPageDrawSmoothLineArtStr
Draw smooth line art.
|
||
kPDPageDrawSmoothLineArtStr
Draw smooth line art.
|
||
kPDPageDrawSmoothTextStr
Draw smooth text.
|
||
kPDPageDrawSmoothTextStr
Draw smooth text.
|
||
kPDPageEmitPageGroupStr
Emit a page group.
|
||
kPDPageEmitPageGroupStr
Emit a page group.
|
||
kPDPageIgnoreIsolatedAndKnockoutTransparencyGroupStr
Ignore Isolated and Knockout transparency at page boundary.
|
||
kPDPageIgnoreIsolatedAndKnockoutTransparencyGroupStr
Ignore Isolated and Knockout transparency at page boundary.
|
||
kPDPageIsPrintingStr
The page is being printed.
|
||
kPDPageIsPrintingStr
The page is being printed.
|
||
kPDPageIsPSPrintingStr
PostScript printing.
|
||
kPDPageIsPSPrintingStr
PostScript printing.
|
||
kPDPagePassMetadatatoAGMPortStr
Pass metadata to AGM port.
|
||
kPDPagePassOCtoAGMPortStr
Pass optional content to AGM port.
|
||
kPDPagePassOPItoAGMPortStr
Pass open prepress interface (OPI) to AGM port.
|
||
kPDPageStmSkipComments | ||
kPDPageStmStringMax | ||
kPDPageStmTokenHexString | ||
kPDPageSuppressRasterAlphaStr
Supress raster alpha.
|
||
kPDPageSuppressRasterAlphaStr
Supress raster alpha.
|
||
kPDPageSwapComponentsStr
Render colors in BGR order rather than RGB. It is only valid for calls to PDDrawPageOrCosObjectToBuffer() and only when outputing to an RGB colorspace.
|
||
kPDPageSwapComponentsStr
Render colors in BGR order rather than RGB. It is only valid for calls to PDPageDrawContentsToMemoryEx() and only when outputing to an RGB colorspace.
|
||
kPDPageUseAnnotFacesStr
Draw annotation appearances.
|
||
kPDPageUseAnnotFacesStr
Draw annotation appearances.
|
||
kPDPageUsePrinterMarkAnnotsStr
User printer's mark annotations.
|
||
kPDPageUseStampAnnotsOnlyStr
If set, only consider Stamp annotations. This overrides kPDPageUseAnnotFaces.
|
||
kPDPageUseStampAnnotsOnlyStr
If set, only consider Stamp annotations. This overrides kPDPageUseAnnotFaces.
|
||
kPDPageUseTrapAnnotsStr
Use trap network annotations.
|
||
kPDPageWorkingSpacesOnlyForChangeStr
If this is set, only use a working space instead of a device space if the process color model of the target device is different than that of the source.
|
||
kPDPageWorkingSpacesOnlyForChangeStr
If this is set, only use a working space instead of a device space if the process color model of the target device is different than that of the source.
|
||
_PagePDEContentHFT_IS_BETA | ||
_PagePDEContentHFT_LAST_BETA_COMPATIBLE_VERSION | ||
_PagePDEContentHFT_LATEST_VERSION | ||
PagePDEContentHFT_LATEST_VERSION | ||
PagePDEContentHFTName | ||
PagePDEContentHFT_VERSION_4 | ||
PagePDEContentHFT_VERSION_5 | ||
PagePDEContentHFT_VERSION_6 |
Typedef | ||
---|---|---|
PDPage
A single page in the PDF representation of a document. Just as PDF files are partially composed of their pages, PDDoc objects are composed of PDPage objects. A page contains a series of objects representing the objects drawn on the page (PDGraphic), a list of resources used in drawing the page, annotations (PDAnnot), an optional thumbnail image of the page, and the beads used in any articles that occur on the page. The first page in a PDDoc is page 0.
|
||
PDPageInk | ||
PDPageInkRec | ||
PDPageNumber
A 0-based page number for use in AVPageView and AVDoc methods. Negative for special values.
|
||
PDPageRange | ||
PDPageStmToken | ||
PDPageStmTokenRec |
Enumeration | ||
---|---|---|
PDPageArea
Different logical areas on a page.
|
||
PDPageDrawFlags
Bit flags indicating how a page is rendered.
|
||
PDPageDrawSmoothFlags
Bit flags indicating how a page is rendered.
|
||
PDPageMarkFlags
Bit flags indicating which page marks are emitted for color separations.
|
||
PDPageMode
An enumerated data type that specifies whether thumbnail images or bookmarks are shown.
|
||
Structure | ||
---|---|---|
_t_PDPageInkRec
Represents an ink used on a page.
|
||
_t_PDPageRange
Specifies a range of pages in a document. Page numbers begin with 0.
|
||
_t_PDPageStmToken
A data structure used by PDPageStmGetToken(). It contains information about the current page contents token.
|
Callback | ||
---|---|---|
PagePDEContentDidChangeNPROTO | ||
PagePDEContentNotCachedNPROTO | ||
PDPageEnumInksCallback
Used for enumerating the inks on a page via PDPageEnumInks().
|
||
PDPageStmImageDataProc
A callback for PDPageStmGetInlineImage(). It should be called when inline image data is encountered in PDPageStmGetToken(). This method may be called multiple times for one inline image. If so, each call provides sequential data for the image.
|
||
PDPageStmStringOverflowProc
A callback used by PDPageStmGetToken(). It is called when the length of a string token exceeds kPDPageStmStringMax bytes (see PDExpT.h) in PDPageStmGetToken().
|
Method | ||
---|---|---|
void PDPageAcquirePage(PDPage pdPage)
Increments the page's reference count. After you are done using the page, release it using PDPageRelease(). If PDPageRelease() is not called, it could block the document containing the page from being closed. To avoid such problems use the CSmartPDPage class as it ensures that the page is released as it goes out of scope.
|
||
Adds an annotation at the specified location in a page's annotation array.
|
||
Completely replaces the contents of the specified page with newContents.
|
||
Adds a Cos resource to a page object. See Section 3.7.2 in the PDF Reference for a description of page resources.
|
||
PDAnnot PDPageAddNewAnnot(PDPage aPage, ASInt32 addAfter, ASAtom subType, const ASFixedRect* initialRect)
Adds an annotation to the page. To make the annotation visible after adding it, convert the coordinates of initialRect to device coordinates using AVPageViewRectToDevice(), then call AVPageViewInvalidateRect() using the converted rectangle. This method is equivalent to calling PDPageCreateAnnot() followed by PDPageAddAnnot().
|
||
void PDPageContentsDidChange(PDPage page, void* clientData)
The contents of a page have changed and the page will be redrawn.
|
||
The contents of a page changed. Unlike
PDPageContentsDidChange()
, this notification specifies whether the page is redrawn immediately.
|
||
Creates a new annotation, associated with the specified page's CosDoc, but not added to the page. Use PDPageAddAnnot() to add the annotation to the page.
|
||
void PDPageCreatePrintRecord(void* devmode, ASBool* bl, void* clientData)
|
||
An annotation was added to a page.
|
||
Clients who register for
PDPageDidPrintAnnot()
will be called after the annotation has printed. status indicates whether Acrobat tried to print any representation of this annotation.
|
||
Annotations were printed.
|
||
void PDPageDidRedraw(PDPage page, void* clientData)
Sent when the page is redrawn via PDPageRedraw().
|
||
Superseded by
PDPageDidRemoveAnnotEx()
in Acrobat 6.0.
|
||
Supersedes
PDPageDidRemoveAnnot()
in Acrobat 6.0 and later.
|
||
void PDPageDirectDrawToPlatform(void* clientData)
|
||
void PDPageDrawContentsToWindow(PDPage page, void* window, void* displayContext, ASBool isDPS, ASFixedMatrix* matrix, ASFixedRect* updateRect, CancelProc cancelProc, void* cancelProcClientData)
Draws the contents of a page into the specified window.
|
||
void PDPageDrawContentsToWindowEx(PDPage page, void* window, void* displayContext, ASBool isDPS, ASFixedMatrix* matrix, ASUns32 flags, ASFixedRect* updateRect, CancelProc cancelProc, void* cancelProcClientData)
Provides control over the rendering of annotations on the page to be drawn into window. It provides the ability to specify the flags passed in to the PDPageDrawContentsToWindows() function.
|
||
Provides control over the rendering of contents on the page, including both those parameters you would pass to PDPageDrawContentsToWindowEx(), and an optional-content context that determines which contents are visible. This API is not available on Mac 64.
|
||
Enumerates the contents of a page, calling a procedure for each drawing object in the page description.
|
||
void PDPageEnumInks(PDPage pdPage, PDPageEnumInksCallback proc, void* clientData, ASBool includeOPI)
Enumerates the inks for a page, calling the supplied procedure for each PDPageInk structure.
|
||
void PDPageEnumInksEx(PDPage pdPage, PDPageEnumInksCallback proc, void* clientData, ASBool includeOPI, ASAtom colorModel)
Enumerates the inks for a page, calling the supplied procedure for each PDPageInk structure. This differs from PDPageEnumInks() in that it allows the process color model to be passed in.
|
||
Enumerates the optional-content groups for the page, calling the supplied procedure for each one. Enumeration continues until all groups have been enumerated, or until enumProc returns false. Each group is reported once, even if it is referenced multiple times in the page.
|
||
(Obsolete, provided only for backwards compatibility) Enumerates the page's resources, calling an enumeration procedure for each resource.
|
||
Replaces the page's contents with a version that has no optional content, containing only what was visible on the page when the call was made.
|
||
Gets the annotIndex annotation on the page.
|
||
Gets the index of a given annotation object on a given page.
|
||
Returns the sequence number of the specified annotation for the given page. It is applicable only to annotations that are listed in Acrobat's Comments pane and therefore cannot be summarized using Summarize command (as would be the case for link and widget annotations, for example).
|
||
Gets the bounding box for a page. The bounding box is the rectangle that encloses all text, graphics, and images on the page.
|
||
Returns the box specified for the page object intersected with the media box. If the value for boxName is CropBox, this call is equivalent to PDPageGetCropBox(); if the value is MediaBox, this call is equivalent to PDPageGetMediaBox().
|
||
CosObj PDPageGetCosObj(PDPage page)
Gets the dictionary Cos object associated with a page. This method does not copy the object, but is instead the logical equivalent of a type cast.
|
||
CosObj PDPageGetCosResources(PDPage page)
Gets the Cos object corresponding to a page's resource dictionary. A page's resource Cos object may either be directly in the Page Cos object and apply only to the page. Or, it may be in the Pages tree, be shared by multiple pages, and applies to all Page nodes below the point in the Pages tree where it is located.
|
||
Gets the crop box for a page. The crop box is the region of the page to display and print.
|
||
Gets the matrix that transforms user space coordinates to rotated and cropped coordinates. The origin of this space is the bottom-left of the rotated, cropped page. Y is increasing.
|
||
PDDoc PDPageGetDoc(PDPage page)
Gets the document that contains the specified page.
|
||
ASFixed PDPageGetDuration(PDPage pdp)
Gets the page's automatic-advance timing value, which is the maximum amount of time the page is displayed before the viewer automatically advances to the next page.
|
||
Gets the matrix that transforms user space coordinates to rotated and cropped coordinates. The origin of this space is the top-left of the rotated, cropped page. Y is decreasing.
|
||
Gets the media box for a page. The media box is the natural size of the page (for example, the dimensions of an A4 sheet of paper).
|
||
ASInt32 PDPageGetNumAnnots(PDPage aPage)
Gets the number of annotations on a page. Annotations associated with pop-up windows (such as strikeouts) are counted as two annotations. Widget annotations (form fields) are included in the count.
|
||
ASInt32 PDPageGetNumber(PDPage page)
Gets the page number for the specified page.
|
||
PDOCG* PDPageGetOCGs(PDPage pdPage)
Gets the optional-content groups for the document.
|
||
ASBool PDPageGetPalette(PDPage page, void* displayContext, char* table)
Useful for obtaining the static, platform-specific palette; the bitmap must be already selected into the displayContext to get the palette. This API was exposed for the purpose of the ImageConversion plug-in. When that code uses PDPageDrawContentsToWindow() to get a bitmap from AGM, it needs the palette that AGM used in order to get the correct results. This API is not available on Mac 64.
|
||
Sent when the PDF Library has calculated the PostScript Print Page matrix. The PostScript Print Page matrix provides the mapping from user space to PS output space. The matrix can be used to calculate the PostScript page bounding box.
|
||
PDRotate PDPageGetRotate(PDPage page)
Gets the rotation value for a page.
|
||
PDTrans PDPageGetTransition(PDPage pdp)
Gets the transition for a given page.
|
||
float PDPageGetUserUnitSize(PDPage page)
Returns the UserUnit value for the page. If the key is not present in the page dictionary the default of 1.0 is returned.
|
||
void PDPageGetVisibleBBox(PDPage page, PDOCContext ocContext, ASBool includeAnnots, ASFixedRect* fr)
Gets the bounding box for a given page for those contents that are visible in the given optional-content context. The bounding box is the rectangle that encloses the visible text, graphics, and images on the page.
|
||
ASBool PDPageHasOverprintExt(PDPage pdPage)
Checks whether a page contains overprint (with qualifications).
|
||
ASBool PDPageHasTransition(PDPage pdp)
Tests whether a page has a transition.
|
||
Checks whether a page uses any transparency features.
|
||
Generates print color separations for a page.
|
||
void PDPageNotifyContentsDidChange(PDPage page)
Broadcasts a PDPageContentsDidChange() notification. If the Acrobat viewer is version 2.1 or later, also broadcasts a PDPageContentsDidChangeEx() notification with invalidateViews set to true.
|
||
Broadcasts a PDPageContentsDidChange() notification and a PDPageContentsDidChangeEx() notification. These notify the Acrobat viewer that a page's contents have been modified, and tells the Acrobat viewer whether to redraw the page immediately.
|
||
ASInt32 PDPageNumFromCosObj(CosObj pageObj)
Gets the page number of the page specified by a Cos object.
|
||
void PDPageRelease(PDPage page)
Decrements the specified page's reference count.
|
||
Removes an annotation from the specified page. Annotations are stored in Cos arrays, which are automatically compressed when an annotation is removed (see CosArrayRemove()). For this reason, if you use a loop in which you remove annotations, structure the code so the loop processes from the highest to the lowest index. If you loop the other direction, you will skip over annotations immediately following ones you remove.
|
||
void PDPageRemoveCosContents(PDPage page)
Removes the contents of the specified page.
|
||
void PDPageRemoveCosResource(PDPage page, const char* resType, const char* resName)
Removes a Cos resource from a page object. See Section 3.7.2 in the PDF Reference for a description of page resources.
|
||
Sets the box specified by boxName for the page.
|
||
Sets the crop box for a page. The crop box is the region of the page to display and print. This method ignores the request if either the width or height of cropBox is less than 72 points (one inch).
|
||
Sets the page's automatic-advance timing value, which is the maximum amount of time the page is displayed before the viewer automatically advances to the next page.
|
||
Sets the media box for a page. The media box is the natural size of the page, for example, the dimensions of an A4 sheet of paper.
|
||
Sets the rotation value for a page.
|
||
Sets the transition for a given page.
|
||
void PDPageSetUserUnitSize(PDPage page, float unitSize)
Set the UserUnit value for a page.
|
||
ASUns32 PDPageStmGetInlineImage(ASStm stm, ASUns32 flags, CosDoc cosDoc, CosObj resDict, PDPageStmImageDataProc proc, void* procClientData, ASUns32* imageRawDataStmOffsetP, ASUns32* imageRawDataLenP, CosObj* imageDict)
Reads a PDF page content inline image from a stream. The stream is typically obtained by getting the Cos stream for a page contents or a Form contents, and calling CosStreamOpenStm() to open the stream using the filtered mode. This method is called after a BI token has been read from the stream. BI indicates that the following tokens comprise an inline image dictionary and data.
|
||
ASUns32 PDPageStmGetToken(ASStm stm, ASUns32 flags, PDPageStmStringOverflowProc proc, void* procClientData, PDPageStmToken pageStmToken)
Reads a PDF page content token from a stream. The stream is typically obtained by getting the Cos stream for a page contents or a Form contents, and calling CosStreamOpenStm() to open the stream using the filtered mode.
|
||
An annotation will be added to a page.
|
||
Clients who register for this notification will be notified just before an annotation is expected to print. This notification allows clients that manage annotations to prepare the appearance of the annotation for printing purposes. There is no requirement that the annot referred to in this parameter list actually has a print appearance.
|
||
Clients who register for
PDPageWillPrintAnnots()
will be called before the printed representations of any annotations have been emitted. If a page has no annotations, this will not be called. If a page has annotations, this will be called. There may not be any code emitted for the annotations on that page, however, since they may not have any appearance for printing. The status parameter passed in the
PDPageDidPrintAnnot()
will indicate this.
|
||
An annotation will be removed from a page.
|
_PagePDEContentHFT_IS_BETA |
Product availability: All |
Platform availability: All |
#define _PagePDEContentHFT_IS_BETA 0
File: PagePDECntCalls.h |
Line: 98 |
_PagePDEContentHFT_LAST_BETA_COMPATIBLE_VERSION |
Product availability: All |
Platform availability: All |
#define _PagePDEContentHFT_LAST_BETA_COMPATIBLE_VERSION 0x00060000
File: PagePDECntCalls.h |
Line: 97 |
_PagePDEContentHFT_LATEST_VERSION |
Product availability: All |
Platform availability: All |
#define _PagePDEContentHFT_LATEST_VERSION 0x00060000
File: PagePDECntCalls.h |
Line: 96 |
kPDPageBlendingProfileValueStr |
Product availability: All |
Platform availability: All |
#define kPDPageBlendingProfileValueStr "BlendingProfileDesc"
Takes ASext as input. If set we use this profile as blending profile. kPDPageDisplayOverPrintPreviewStr must be set for this to get honored.
See Also
File: PDExpT.h |
Line: 6684 |
kPDPageBlendingProfileValueStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageBlendingProfileValueStr "BlendingProfileDesc"
Takes ASext as input. If set we use this profile as blending profile. kPDPageDisplayOverPrintPreviewStr must be set for this to get honored.
See Also
File: PDFLExpT.h |
Line: 1211 |
kPDPageDirectlyImposedStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageDirectlyImposedStr "DirectlyImposed"
Directly imposed page.
See Also
File: PDFLExpT.h |
Line: 1112 |
kPDPageDisplayOverPrintPreviewStr |
Product availability: All |
Platform availability: All |
#define kPDPageDisplayOverPrintPreviewStr "DisplayOverPrintPreview"
Display overprint preview.
See Also
File: PDExpT.h |
Line: 6626 |
kPDPageDisplayOverPrintPreviewStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageDisplayOverPrintPreviewStr "DisplayOverPrintPreview"
Display overprint preview.
See Also
File: PDFLExpT.h |
Line: 1096 |
kPDPageDoLazyEraseStr |
Product availability: All |
Platform availability: All |
#define kPDPageDoLazyEraseStr "DoLazyErase"
Const strings used as ASCab keys when passing drawing flags. These are valid only for calls to PDDrawPageOrCosObjectToBuffer.
See Also
File: PDExpT.h |
Line: 6598 |
kPDPageDoLazyEraseStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageDoLazyEraseStr "DoLazyErase"
Const strings used as ASCab keys when passing PDPageDrawFlags. These are valid only for calls to PDPageDrawContentsToMemoryEx.
See Also
File: PDFLExpT.h |
Line: 1064 |
kPDPageDoNotSubstituteWorkingSpacesStr |
Product availability: All |
Platform availability: All |
#define kPDPageDoNotSubstituteWorkingSpacesStr "DoNotSubstituteWorkingSpaces"
Do not substitute working spaces.
See Also
File: PDExpT.h |
Line: 6647 |
kPDPageDoNotSubstituteWorkingSpacesStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageDoNotSubstituteWorkingSpacesStr "DoNotSubstituteWorkingSpaces"
Do not substitute working spaces.
See Also
File: PDFLExpT.h |
Line: 1168 |
kPDPageDrawSmoothBicubicImageStr |
Product availability: All |
Platform availability: All |
#define kPDPageDrawSmoothBicubicImageStr "SmoothImageUsingBicubicResampling"
Draw smooth image using bicubic resampling. This option can have performance overhead.
See Also
File: PDExpT.h |
Line: 6716 |
kPDPageDrawSmoothBicubicImageStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageDrawSmoothBicubicImageStr "SmoothImageUsingBicubicResampling"
Draw smooth image using bicubic resampling. This option can have performance overhead.
See Also
File: PDFLExpT.h |
Line: 1298 |
kPDPageDrawSmoothImageStr |
Product availability: All |
Platform availability: All |
#define kPDPageDrawSmoothImageStr "SmoothImage"
Draw smooth image.
See Also
File: PDExpT.h |
Line: 6708 |
kPDPageDrawSmoothImageStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageDrawSmoothImageStr "SmoothImage"
Draw smooth image.
See Also
File: PDFLExpT.h |
Line: 1290 |
kPDPageDrawSmoothLineArtStr |
Product availability: All |
Platform availability: All |
#define kPDPageDrawSmoothLineArtStr "SmoothLineArt"
Draw smooth line art.
See Also
File: PDExpT.h |
Line: 6700 |
kPDPageDrawSmoothLineArtStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageDrawSmoothLineArtStr "SmoothLineArt"
Draw smooth line art.
See Also
File: PDFLExpT.h |
Line: 1282 |
kPDPageDrawSmoothTextStr |
Product availability: All |
Platform availability: All |
#define kPDPageDrawSmoothTextStr "SmoothText"
See Also
File: PDExpT.h |
Line: 6692 |
kPDPageDrawSmoothTextStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageDrawSmoothTextStr "SmoothText"
See Also
File: PDFLExpT.h |
Line: 1274 |
kPDPageEmitPageGroupStr |
Product availability: All |
Platform availability: All |
#define kPDPageEmitPageGroupStr "EmitPageGroup"
See Also
File: PDExpT.h |
Line: 6640 |
kPDPageEmitPageGroupStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageEmitPageGroupStr "EmitPageGroup"
See Also
File: PDFLExpT.h |
Line: 1128 |
kPDPageIgnoreIsolatedAndKnockoutTransparencyGroupStr |
Product availability: All |
Platform availability: All |
#define kPDPageIgnoreIsolatedAndKnockoutTransparencyGroupStr "IgnoreIsolatedAndKnockoutTransparencyGroup"
Ignore Isolated and Knockout transparency at page boundary.
See Also
File: PDExpT.h |
Line: 6605 |
kPDPageIgnoreIsolatedAndKnockoutTransparencyGroupStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageIgnoreIsolatedAndKnockoutTransparencyGroupStr "IgnoreIsolatedAndKnockoutTransparencyGroup"
Ignore Isolated and Knockout transparency at page boundary.
See Also
File: PDFLExpT.h |
Line: 1072 |
kPDPageIsPrintingStr |
Product availability: All |
Platform availability: All |
#define kPDPageIsPrintingStr "IsPrinting"
The page is being printed.
See Also
File: PDExpT.h |
Line: 6619 |
kPDPageIsPrintingStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageIsPrintingStr "IsPrinting"
The page is being printed.
See Also
File: PDFLExpT.h |
Line: 1088 |
kPDPageIsPSPrintingStr |
Product availability: All |
Platform availability: All |
#define kPDPageIsPSPrintingStr "IsPSPrinting"
PostScript printing.
See Also
File: PDExpT.h |
Line: 6633 |
kPDPageIsPSPrintingStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageIsPSPrintingStr "IsPSPrinting"
PostScript printing.
See Also
File: PDFLExpT.h |
Line: 1120 |
kPDPagePassMetadatatoAGMPortStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPagePassMetadatatoAGMPortStr "PassMetadatatoAGMPort"
Pass metadata to AGM port.
See Also
File: PDFLExpT.h |
Line: 1152 |
kPDPagePassOCtoAGMPortStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPagePassOCtoAGMPortStr "PassOCtoAGMPort"
Pass optional content to AGM port.
See Also
File: PDFLExpT.h |
Line: 1160 |
kPDPagePassOPItoAGMPortStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPagePassOPItoAGMPortStr "PassOPItoAGMPort"
Pass open prepress interface (OPI) to AGM port.
See Also
File: PDFLExpT.h |
Line: 1144 |
kPDPageStmSkipComments |
Product availability: All |
Platform availability: All |
#define kPDPageStmSkipComments 0x0001
File: PDExpT.h |
Line: 3855 |
kPDPageStmStringMax |
Product availability: All |
Platform availability: All |
#define kPDPageStmStringMax 256
File: PDExpT.h |
Line: 3852 |
kPDPageStmTokenHexString |
Product availability: All |
Platform availability: All |
#define kPDPageStmTokenHexString 0x0001
File: PDExpT.h |
Line: 3861 |
kPDPageSuppressRasterAlphaStr |
Product availability: All |
Platform availability: All |
#define kPDPageSuppressRasterAlphaStr "SuppressRasterAlpha"
Supress raster alpha.
See Also
File: PDExpT.h |
Line: 6662 |
kPDPageSuppressRasterAlphaStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageSuppressRasterAlphaStr "SuppressRasterAlpha"
Supress raster alpha.
See Also
File: PDFLExpT.h |
Line: 1185 |
kPDPageSwapComponentsStr |
Product availability: All |
Platform availability: All |
#define kPDPageSwapComponentsStr "SwapComponents"
Render colors in BGR order rather than RGB. It is only valid for calls to PDDrawPageOrCosObjectToBuffer() and only when outputing to an RGB colorspace.
See Also
File: PDExpT.h |
Line: 6655 |
kPDPageSwapComponentsStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageSwapComponentsStr "SwapComponents"
Render colors in BGR order rather than RGB. It is only valid for calls to PDPageDrawContentsToMemoryEx() and only when outputing to an RGB colorspace.
See Also
File: PDFLExpT.h |
Line: 1177 |
kPDPageUseAnnotFacesStr |
Product availability: All |
Platform availability: All |
#define kPDPageUseAnnotFacesStr "UseAnnotFaces"
Draw annotation appearances.
See Also
File: PDExpT.h |
Line: 6612 |
kPDPageUseAnnotFacesStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageUseAnnotFacesStr "UseAnnotFaces"
Draw annotation appearances.
See Also
File: PDFLExpT.h |
Line: 1080 |
kPDPageUsePrinterMarkAnnotsStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageUsePrinterMarkAnnotsStr "UsePrinterMarkAnnots"
User printer's mark annotations.
See Also
File: PDFLExpT.h |
Line: 1136 |
kPDPageUseStampAnnotsOnlyStr |
Product availability: All |
Platform availability: All |
#define kPDPageUseStampAnnotsOnlyStr "UseStampAnnotsOnly"
If set, only consider Stamp annotations. This overrides kPDPageUseAnnotFaces.
See Also
File: PDExpT.h |
Line: 6676 |
kPDPageUseStampAnnotsOnlyStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageUseStampAnnotsOnlyStr "UseStampAnnotsOnly"
If set, only consider Stamp annotations. This overrides kPDPageUseAnnotFaces.
See Also
File: PDFLExpT.h |
Line: 1202 |
kPDPageUseTrapAnnotsStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageUseTrapAnnotsStr "UseTrapAnnots"
Use trap network annotations.
See Also
File: PDFLExpT.h |
Line: 1104 |
kPDPageWorkingSpacesOnlyForChangeStr |
Product availability: All |
Platform availability: All |
#define kPDPageWorkingSpacesOnlyForChangeStr "WorkingSpacesOnlyForChange"
If this is set, only use a working space instead of a device space if the process color model of the target device is different than that of the source.
File: PDExpT.h |
Line: 6669 |
kPDPageWorkingSpacesOnlyForChangeStr |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
#define kPDPageWorkingSpacesOnlyForChangeStr "WorkingSpacesOnlyForChange"
If this is set, only use a working space instead of a device space if the process color model of the target device is different than that of the source.
See Also
File: PDFLExpT.h |
Line: 1194 |
PagePDEContentHFT_LATEST_VERSION |
Product availability: All |
Platform availability: All |
#define PagePDEContentHFT_LATEST_VERSION _PagePDEContentHFT_LATEST_VERSION)
File: PagePDECntCalls.h |
Line: 101 |
PagePDEContentHFT_VERSION_4 |
Product availability: All |
Platform availability: All |
#define PagePDEContentHFT_VERSION_4 0x00040000
File: PagePDECntCalls.h |
Line: 103 |
PagePDEContentHFT_VERSION_5 |
Product availability: All |
Platform availability: All |
#define PagePDEContentHFT_VERSION_5 0x00050000
File: PagePDECntCalls.h |
Line: 104 |
PagePDEContentHFT_VERSION_6 |
Product availability: All |
Platform availability: All |
#define PagePDEContentHFT_VERSION_6 0x00060000
File: PagePDECntCalls.h |
Line: 105 |
PagePDEContentHFTName |
Product availability: All |
Platform availability: All |
#define PagePDEContentHFTName "PagePDEContent"
File: PEVers.h |
Line: 32 |
PDPage |
Product availability: All |
Platform availability: All |
typedef struct _t_PDPage* PDPage;
A single page in the PDF representation of a document. Just as PDF files are partially composed of their pages, PDDoc objects are composed of PDPage objects. A page contains a series of objects representing the objects drawn on the page (PDGraphic), a list of resources used in drawing the page, annotations (PDAnnot), an optional thumbnail image of the page, and the beads used in any articles that occur on the page. The first page in a PDDoc is page 0
.
See Also
File: PDBasicExpT.h |
Line: 77 |
PDPageInk |
Product availability: All |
Platform availability: All |
typedef _t_PDPageInkRec PDPageInk;
File: PDExpT.h |
Line: 5891 |
PDPageInkRec |
Product availability: All |
Platform availability: All |
typedef _t_PDPageInkRec PDPageInkRec;
File: PDExpT.h |
Line: 5891 |
PDPageNumber |
Product availability: All |
Platform availability: All |
typedef ASInt32 PDPageNumber;
A 0
-based page number for use in AVPageView and AVDoc methods. Negative for special values.
See Also
File: PDExpT.h |
Line: 51 |
PDPageRange |
Product availability: All |
Platform availability: All |
typedef _t_PDPageRange PDPageRange;
File: PDExpT.h |
Line: 5486 |
PDPageStmToken |
Product availability: All |
Platform availability: All |
typedef _t_PDPageStmToken PDPageStmToken;
File: PDExpT.h |
Line: 3895 |
PDPageStmTokenRec |
Product availability: All |
Platform availability: All |
typedef _t_PDPageStmToken PDPageStmTokenRec;
File: PDExpT.h |
Line: 3895 |
PDPageArea |
Product availability: All |
Platform availability: All |
enum PDPageArea {
kPDPageArea,
kPDClipArea,
kPDNumAreas
}
File: PDExpT.h |
Line: 6233 |
PDPageDrawFlags |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
enum PDPageDrawFlags {
kPDPageDoLazyErase = 0x00000001,
kPDPageIgnoreIsolatedAndKnockoutTransparencyGroup = 0x00000010,
kPDPageUseAnnotFaces = 0x00000040,
kPDPageIsPrinting = 0x00000080,
kPDPageDisplayOverPrintPreview = 0x00000100,
kPDPageUseTrapAnnots = 0x00002000,
kPDPageDirectlyImposed = 0x00004000,
kPDPageIsPSPrinting = 0x00008000,
kPDPageEmitPageGroup = 0x00010000,
kPDPageUsePrinterMarkAnnots = 0x00020000,
kPDPagePassOPItoAGMPort = 0x00040000,
kPDPagePassMetadatatoAGMPort = 0x00080000,
kPDPagePassOCtoAGMPort = 0x00100000,
kPDPageDoNotSubstituteWorkingSpaces = 0x00800000,
kPDPageSwapComponents = 0x01000000,
kPDPageSuppressRasterAlpha = 0x02000000,
kPDPageWorkingSpacesOnlyForChange = 0x04000000,
kPDPageUseStampAnnotsOnly = 0x08000000
}
File: PDFLExpT.h |
Line: 988 |
kPDPageDoLazyErase | Erase the page while rendering only as needed. |
|
kPDPageIgnoreIsolatedAndKnockoutTransparencyGroup | Ignore Isolated and Knockout transparency at page boundary. |
|
kPDPageUseAnnotFaces | Draw annotation appearances. |
|
kPDPageIsPrinting | The page is being printed. |
|
kPDPageDisplayOverPrintPreview | Display overprint preview. |
|
kPDPageUseTrapAnnots | Use trap network annotations. |
|
kPDPageDirectlyImposed | Directly imposed page. |
|
kPDPageIsPSPrinting | PostScript printing. |
|
kPDPageEmitPageGroup | ||
kPDPageUsePrinterMarkAnnots | User printer's mark annotations. |
|
kPDPagePassOPItoAGMPort | Pass open prepress interface (OPI) to AGM port. |
|
kPDPagePassMetadatatoAGMPort | Pass metadata to AGM port. |
|
kPDPagePassOCtoAGMPort | Pass optional content to AGM port. |
|
kPDPageDoNotSubstituteWorkingSpaces | Do not substitute working spaces. |
|
kPDPageSwapComponents | Render colors in BGR order rather than RGB. It is only valid for calls to PDPageDrawContentsToMemory() and only when outputing to an RGB colorspace. |
|
kPDPageSuppressRasterAlpha | Supress raster alpha. |
|
kPDPageWorkingSpacesOnlyForChange | If this is set, only use a working space instead of a device space if the process color model of the target device is different than that of the source |
|
kPDPageUseStampAnnotsOnly | If set, only consider Stamp annotations. This overrides kPDPageUseAnnotFaces. |
PDPageDrawFlagsPI |
Product availability: All |
Platform availability: All |
enum PDPageDrawFlagsPI {
kPDPageDisplayOverPrintPreviewPI = 0x00000100,
kPDPageUseAnnotFacesPI = 0x00000040,
kPDPageUseStampAnnotsOnlyPI = 0x08000000
}
File: PDExpT.h |
Line: 6589 |
kPDPageDisplayOverPrintPreviewPI | ||
kPDPageUseAnnotFacesPI | Draw annotation appearances. |
|
kPDPageUseStampAnnotsOnlyPI | If this is set, only consider Stamp annotations. This overrides kPDPageUseAnnotFaces. |
PDPageDrawSmoothFlags |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
enum PDPageDrawSmoothFlags {
kPDPageDrawSmoothText = 0x00000001,
kPDPageDrawSmoothLineArt = 0x00000002,
kPDPageDrawSmoothImage = 0x00000004,
kPDPageDrawSmoothBicubicImage = 0x00000008
}
See Also
File: PDFLExpT.h |
Line: 1252 |
kPDPageDrawSmoothText | ||
kPDPageDrawSmoothLineArt | Draw smooth line art. |
|
kPDPageDrawSmoothImage | Draw smooth image. |
|
kPDPageDrawSmoothBicubicImage | Draw smooth image using bicubic resampling. This option can have performance overhead |
PDPageMarkFlags |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
enum PDPageMarkFlags {
kPDPageEmitColorBars = 0x0001,
kPDPageEmitRegMarks = 0x0002,
kPDPageEmitCropMarks = 0x0004,
kPDPageEmitBleedMarks = 0x0008,
kPDPageEmitPageInfo = 0x0010,
kPDPageEmitTrimMarks = 0x0020,
kPDPageEmitSlurMarks = 0x0040
}
See Also
File: PDFLExpT.h |
Line: 432 |
PDPageMode |
Product availability: All |
Platform availability: All |
enum PDPageMode {
PDDontCare,
PDUseNone,
PDUseThumbs,
PDUseBookmarks,
PDFullScreen,
PDContents,
PDUseOC,
PDUseAttachments
}
See Also
File: PDExpT.h |
Line: 1941 |
PDDontCare | Leaves the view mode as is. |
|
PDUseNone | Displays the document, but displays neither thumbnails nor bookmarks. |
|
PDUseThumbs | Displays the document plus thumbnails. |
|
PDUseBookmarks | Displays the document plus bookmarks. |
|
PDFullScreen | Displays the document in full-screen viewing mode. This is equivalent to AVAppBeginFullScreen(). |
|
PDUseAttachments | Displays the document plus attachments. |
PDPageTilingMode |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
enum PDPageTilingMode {
kPDNoPageTiling = 0,
kPDTileAllPages,
kPDTileLargePages
}
File: PDFLExpT.h |
Line: 305 |
kPDNoPageTiling | Print all pages normally |
|
kPDTileAllPages | Use tiling settings for all pages |
|
kPDTileLargePages | Use tiling only for pages larger than size indicated in PDTileRec of tileInfo |
_t_PDPageInkRec |
Product availability: All |
Platform availability: All |
struct _t_PDPageInkRec {
ASSize_t size;
ASAtom colorantName;
ASBool isProcessColor;
ASUns8 whatToDo;
ASUns8 r;
ASUns8 g;
ASUns8 b;
float frequency;
float angle;
ASUns8 inkType;
ASInt32 trapSequence;
float cyan;
float magenta;
float yellow;
float black;
float density;
ASAtom alias;
}
Represents an ink used on a page.
See Also
File: PDExpT.h |
Line: 5843 |
size | The size of the structure. It must be set to |
|
colorantName | The name of the colorant from the Separation or DeviceN colorspace, or the process color name. |
|
isProcessColor |
|
|
whatToDo | How to handle the colorant for a separation preview. Its value can be:
|
|
r | RGB values for on-screen display of a colorswatch. |
|
frequency | The frequency for this ink. |
|
angle | The angle for this ink. |
|
inkType | The ink type for this ink. |
|
trapSequence | The trap sequence for this ink. |
|
cyan | The neutral density for this ink. |
|
alias | Alias this spot to another. |
_t_PDPageRange |
Product availability: All |
Platform availability: All |
Specifies a range of pages in a document. Page numbers begin with 0
.
File: PDExpT.h |
Line: 5479 |
startPage | The starting page number. |
|
endPage | The ending page number. |
|
pageSpec | The pages in the range to print. It must be one of: PDAllPages, PDEvenPagesOnly, or PDOddPagesOnly. |
_t_PDPageStmToken |
Product availability: All |
Platform availability: All |
struct _t_PDPageStmToken {
ASSize_t size;
CosType type;
ASUns32 flags;
ASInt32 iVal;
char sVal[kPDPageStmStringMax];
ASSize_t sValLen;
}
A data structure used by PDPageStmGetToken(). It contains information about the current page contents token.
See Also
File: PDExpT.h |
Line: 3882 |
size | The size of this record. It is to be filled in by the caller. |
|
type | The type of token. |
|
flags | Additional information about the token (for example, indicating a hex string). |
|
iVal | The value of the token if it is a CosInteger, ASFixed, or Name. |
|
sVal | ||
sValLen | The number of bytes in |
PagePDEContentDidChangeNPROTO |
Product availability: All |
Platform availability: All |
void (*PagePDEContentDidChangeNPROTO)(PDPage pdPage, PDEContent pagesPDEContent)
File: PagePDECntCalls.h |
Line: 115 |
PagePDEContentNotCachedNPROTO |
Product availability: All |
Platform availability: All |
void (*PagePDEContentNotCachedNPROTO)(PDPage pdPage, PDEContent pagesPDEContent)
File: PagePDECntCalls.h |
Line: 117 |
PDPageEnumInksCallback |
Product availability: All |
Platform availability: All |
Used for enumerating the inks on a page via PDPageEnumInks().
File: PDExpT.h |
Line: 5894 |
PDPageStmImageDataProc |
Product availability: All |
Platform availability: All |
A callback for PDPageStmGetInlineImage(). It should be called when inline image data is encountered in PDPageStmGetToken(). This method may be called multiple times for one inline image. If so, each call provides sequential data for the image.
See Also
File: PDExpT.h |
Line: 3934 |
PDPageStmStringOverflowProc |
Product availability: All |
Platform availability: All |
A callback used by PDPageStmGetToken(). It is called when the length of a string token exceeds kPDPageStmStringMax
bytes (see PDExpT.h) in PDPageStmGetToken().
See Also
File: PDExpT.h |
Line: 3911 |
PDPageAcquirePage | () |
Product availability: All |
Platform availability: All |
void PDPageAcquirePage(PDPage pdPage)
Increments the page's reference count. After you are done using the page, release it using PDPageRelease(). If PDPageRelease() is not called, it could block the document containing the page from being closed. To avoid such problems use the CSmartPDPage class as it ensures that the page is released as it goes out of scope.
Parameters
pdPage — |
See Also
Since
0
. File: PDProcs.h |
Line: 11001 |
PDPageAddAnnot | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Adds an annotation at the specified location in a page's annotation array.
Parameters
aPage — | The page to which the annotation is added. |
|
addAfter — | The index into the page's annotation array where the annotation is added. See Section 8.4 in the PDF Reference for a description of the annotation array. The first annotation in the array has an index of zero. Passing a value of |
|
annot — | The annotation to add. |
See Also
Exceptions
Notifications
Since
File: PDProcs.h |
Line: 3345 |
PDPageAddCosContents | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Completely replaces the contents of the specified page with newContents
.
Parameters
page — | IN/OUT The page whose Cos contents are replaced. |
|
newContents — | IN/OUT A stream Cos object or an array Cos object containing the new contents (stream Cos objects) for |
See Also
Notifications
Since
File: PDProcs.h |
Line: 3472 |
PDPageAddCosResource | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Adds a Cos resource to a page object. See Section 3.7.2 in the PDF Reference for a description of page resources.
The necessary dictionaries are created automatically if the page does not already have any resources of the type specified by resType
, or does not have a Resources dictionary. For example, if you specify a font resource, but the page does not already have a font resource dictionary, this method automatically creates one and puts the font you specify into it.
ProcSet resources cannot be added using this method; they must be added using Cos-level methods to:
Get the page's Resources dictionary.
Get the ProcSet array from the Resources dictionary.
Add an element to the ProcSet array.
Parameters
page — | The page to which a resource is added. |
|
resType — | The resource type. The named resource types in PDF are: ExtGState, ColorSpace, Pattern, Shading, XObject, Font, and Properties. Although ProcSet is also a valid resource type, it cannot be added by this method. |
|
resName — | The resource name (for example, the name of a font might be |
|
resObj — | The Cos object being added as a resource to page. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 3458 |
PDPageAddNewAnnot | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
PDAnnot PDPageAddNewAnnot(PDPage aPage, ASInt32 addAfter, ASAtom subType, const ASFixedRect* initialRect)
Adds an annotation to the page. To make the annotation visible after adding it, convert the coordinates of initialRect
to device coordinates using AVPageViewRectToDevice(), then call AVPageViewInvalidateRect() using the converted rectangle. This method is equivalent to calling PDPageCreateAnnot() followed by PDPageAddAnnot().
The PDPageWillAddAnnot() and PDPageDidAddAnnot() notifications are broadcast before the PDPageAddNewAnnot() method returns. If you want to finish formatting the annotation before these notifications are called, for example, by adding additional key-value pairs to the annotation dictionary, you should call PDPageCreateAnnot() followed by PDPageAddAnnot() instead of PDPageAddNewAnnot().
Parameters
aPage — | The page to which the annotation is added. |
|
addAfter — | Where to add the annotation in the page's annotation array. See Section 8.4 in the PDF Reference for a description of the annotation array. Passing a value of |
|
subType — | The subtype of the annotation to add. |
|
initialRect — | A pointer to a rectangle specifying the annotation's bounds, specified in user space coordinates. |
The newly created annotation. |
See Also
Exceptions
Notifications
Since
File: PDProcs.h |
Line: 3318 |
PDPageContentsDidChange | () |
Product availability: All |
Platform availability: All |
void PDPageContentsDidChange(PDPage page, void* clientData)
The contents of a page have changed and the page will be redrawn.
Parameters
page — | The page whose contents changed. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 853 |
PDPageContentsDidChangeEx | () |
Product availability: All |
Platform availability: All |
The contents of a page changed. Unlike
PDPageContentsDidChange()
, this notification specifies whether the page is redrawn immediately.
Parameters
page — | The page whose contents changed. |
|
invalidateViews — | If |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 1151 |
PDPageCreateAnnot | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
PDAnnot PDPageCreateAnnot(PDPage aPage, ASAtom subType, const ASFixedRect* initialLocation)
Creates a new annotation, associated with the specified page's CosDoc, but not added to the page. Use PDPageAddAnnot() to add the annotation to the page.
If you want to create an annotation that prints even if the annotation handler is not present, you must provide an appearance for it. To do this, add an appearance key (AP) to the annotation dictionary, in which you place the Forms XObject for the Normal (N), Rollover (R), and Down (D) appearances; only the Normal appearance is required. Also, add a flags field (F) to the annotation dictionary and set the appropriate value for the bit field. A value of 4
, which displays the annotation if the handler is not present, shows the annotation, and allows printing it, is recommended.
Parameters
aPage — | ||
subType — | The subtype of annotation to create. |
|
initialLocation — | A pointer to a rectangle specifying the annotation's bounds, specified in user space coordinates. |
The newly created annotation. |
See Also
Exceptions
Notifications
Since
File: PDProcs.h |
Line: 299 |
PDPageCreatePrintRecord | () |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDPageCreatePrintRecord(void* devmode, ASBool* bl, void* clientData)
Parameters
devmode |
|
bl |
|
clientData |
File: PIPokes.h |
Line: 2732 |
PDPageDidAddAnnot | () |
Product availability: All |
Platform availability: All |
An annotation was added to a page.
Parameters
page — | The page to which the annotation was added. |
|
annot — | The annotation that was added. |
|
error — | The error code. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 886 |
PDPageDidPrintAnnot | () |
Product availability: All |
Platform availability: All |
Clients who register for
PDPageDidPrintAnnot()
will be called after the annotation has printed. status
indicates whether Acrobat tried to print any representation of this annotation.
Parameters
annot — | The annotation that Acrobat tried to print. |
|
page — | The page on which the annotation occurs. |
|
status — | A status of |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 2124 |
PDPageDidPrintAnnots | () |
Product availability: All |
Platform availability: All |
Annotations were printed.
Parameters
doc — | The document containing the annotations. |
|
page — | The page containing the annotations. |
|
stm — | The PostScript print stream used when printing to a PostScript printer, and |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 1963 |
PDPageDidRedraw | () |
Product availability: All |
Platform availability: All |
void PDPageDidRedraw(PDPage page, void* clientData)
Sent when the page is redrawn via PDPageRedraw()
.
Parameters
page — | The page being redrawn. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
File: PIPokes.h |
Line: 2694 |
PDPageDidRemoveAnnot | () |
Product availability: All |
Platform availability: All |
Superseded by
PDPageDidRemoveAnnotEx()
in Acrobat 6.0.
An annotation has been removed from a page.
Parameters
page — | The page from which an annotation was removed. |
|
annotIndex — | The index (in the page's annotation array) of the annotation that was removed. Because the annotation has already been removed from the array, it is not possible to access the annotation using |
|
error — | The error code. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 924 |
PDPageDidRemoveAnnotEx | () |
Product availability: All |
Platform availability: All |
Supersedes
PDPageDidRemoveAnnot()
in Acrobat 6.0 and later.
An annotation has been removed from a page.
Parameters
page — | The page from which an annotation was removed. |
|
removedAnnot — | The annotation object that was removed. |
|
error — | The error code. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 2423 |
PDPageDirectDrawToPlatform | () |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDPageDirectDrawToPlatform(void* clientData)
Parameters
clientData |
File: PIPokes.h |
Line: 2743 |
PDPageDrawContentsToWindow | () |
Product availability: All |
Platform availability: All |
void PDPageDrawContentsToWindow(PDPage page, void* window, void* displayContext, ASBool isDPS, ASFixedMatrix* matrix, ASFixedRect* updateRect, CancelProc cancelProc, void* cancelProcClientData)
Draws the contents of a page into the specified window.
This method just draws a bitmap to the window. If you want a live document, you need to open an AVDoc for the PDF file.
The page can also be derived from a PDDoc.
On UNIX, this method cannot be used to draw into a window. UNIX developers should instead use AVDocOpenFromASFileWithParamString() to draw PDF files into their own window from a client.
Parameters
page — | ||
window — | A pointer to a platform-dependent window object ( |
|
displayContext — | A platform-dependent display context structure ( |
|
isDPS — | Currently unused. Always set it to |
|
matrix — | A pointer to the matrix to concatenate onto the default page matrix. It is useful for converting from page to window coordinates and for scaling. |
|
updateRect — | A pointer to the rectangle to draw, defined in user space coordinates. Any objects outside of |
|
cancelProc — | The procedure called periodically to check for the user's cancelling of the drawing operation. The default cancel proc can be obtained using AVAppGetCancelProc(). It may be |
|
cancelProcClientData — | A pointer to user-supplied data to pass to |
See Also
Since
File: PDProcs.h |
Line: 3258 |
PDPageDrawContentsToWindowEx | () |
Product availability: All |
Platform availability: All |
void PDPageDrawContentsToWindowEx(PDPage page, void* window, void* displayContext, ASBool isDPS, ASFixedMatrix* matrix, ASUns32 flags, ASFixedRect* updateRect, CancelProc cancelProc, void* cancelProcClientData)
Provides control over the rendering of annotations on the page to be drawn into window
. It provides the ability to specify the flags passed in to the PDPageDrawContentsToWindows() function.
Parameters
page — | ||
window — | A pointer to a platform-dependent window object ( |
|
displayContext — | A platform-dependent display context structure ( |
|
isDPS — | Currently unused. Always set it to |
|
matrix — | A pointer to the matrix to concatenate onto the default page matrix. It is useful for converting from page to window coordinates and for scaling. |
|
flags — | See PDPageDrawFlagsPI for possible values. |
|
updateRect — | A rectangle represented by the coordinates of its four sides. |
|
cancelProc — | A procedure called periodically to check for the user's cancelling of the drawing operation. The default cancel procedure can be obtained using AVAppGetCancelProc(). It may be |
|
cancelProcClientData — | A pointer to user-supplied data to pass to |
See Also
Exceptions
Since
File: PDProcs.h |
Line: 7923 |
PDPageDrawContentsWithParams | () |
Product availability: All |
Platform availability: All |
void PDPageDrawContentsWithParams(PDPage page, PDDrawParams params)
Provides control over the rendering of contents on the page, including both those parameters you would pass to PDPageDrawContentsToWindowEx(), and an optional-content context that determines which contents are visible. This API is not available on Mac 64.
Parameters
page — | The page to draw. |
|
params — | The parameters with which to draw the page, including the optional-content context to use for content visibility. |
See Also
Exceptions
Since
File: PDProcs.h |
Line: 10376 |
PDPageEnumContents | () |
Product availability: All |
Platform availability: All |
void PDPageEnumContents(PDPage page, PDGraphicEnumMonitor mon, void* clientData)
Enumerates the contents of a page, calling a procedure for each drawing object in the page description.
Parameters
page — | IN/OUT The page whose contents are enumerated. |
|
mon — | IN/OUT A pointer to a structure containing user-supplied callbacks that are called for each drawing operator on a page. Enumeration ends if any procedure returns |
|
clientData — | IN/OUT A pointer to user-supplied data to pass to |
Since
File: PDProcs.h |
Line: 3547 |
PDPageEnumInks | () |
Product availability: All |
Platform availability: All |
void PDPageEnumInks(PDPage pdPage, PDPageEnumInksCallback proc, void* clientData, ASBool includeOPI)
Enumerates the inks for a page, calling the supplied procedure for each PDPageInk structure.
For the DeviceCMYK_K process color model, it always finds the four inks Cyan, Magenta, Yellow, and Black, which are marked as process inks. The RGB values in the PDPageInk structure are the RGB equivalents (in system monitor space) of 100% of the ink, which can be used to show color swatches for a given ink.
If the inks are part of a DeviceN colorspace which has not been defined in a Colorants dictionary or elsewhere in a Separation colorspace, the color of the swatch is undefined.
This call finds all color spaces that are in a color space dictionary within the page, even if they are not used by the page contents.
Parameters
pdPage — | The page whose contents are enumerated. |
|
proc — | The user-supplied callback procedure to be applied to each ink. Enumeration ends if any procedure returns |
|
clientData — | A pointer to user-supplied data to pass to |
|
includeOPI — | If |
See Also
Since
File: PDProcs.h |
Line: 8201 |
PDPageEnumInksEx | () |
Product availability: All |
Platform availability: All |
void PDPageEnumInksEx(PDPage pdPage, PDPageEnumInksCallback proc, void* clientData, ASBool includeOPI, ASAtom colorModel)
Enumerates the inks for a page, calling the supplied procedure for each PDPageInk structure. This differs from PDPageEnumInks() in that it allows the process color model to be passed in.
For the DeviceCMYK_K process color model, it always finds the four inks Cyan, Magenta, Yellow, and Black, which are marked as process inks. The RGB values in the PDPageInk structure are the RGB equivalents (in system monitor space) of 100% of the ink, which can be used to show color swatches for a given ink.
If the inks are part of a DeviceN color space which has not been defined in a Colorants dictionary or elsewhere in a Separation color space, the color of the swatch is undefined.
This call finds all color spaces that are in a color space dictionary within the page, even if they are not used by the page contents.
Parameters
pdPage — | The page whose contents are enumerated. |
|
proc — | The user-supplied callback procedure to be applied to each ink. Enumeration ends if any procedure returns |
|
clientData — | A pointer to user-supplied data to pass to |
|
includeOPI — | If |
|
colorModel — |
|
See Also
Since
File: PDProcs.h |
Line: 11171 |
PDPageEnumOCGs | () |
Product availability: All |
Platform availability: All |
void PDPageEnumOCGs(PDPage pdPage, PDOCGEnumProc enumProc, void* clientData)
Enumerates the optional-content groups for the page, calling the supplied procedure for each one. Enumeration continues until all groups have been enumerated, or until enumProc
returns false
. Each group is reported once, even if it is referenced multiple times in the page.
Parameters
pdPage — | The page whose groups are enumerated. |
|
enumProc — | A user-supplied callback to call for each group. Enumeration terminates if |
|
clientData — | A pointer to user-supplied data to pass to |
See Also
Since
File: PDProcs.h |
Line: 9045 |
PDPageEnumResources | () |
Product availability: All |
Platform availability: All |
void PDPageEnumResources(PDPage page, PDResourceEnumMonitor mon, void* clientData)
(Obsolete, provided only for backwards compatibility) Enumerates the page's resources, calling an enumeration procedure for each resource.
Instead of this method, use PDDocEnumOCGs().
Parameters
page — | The page whose Cos resources are enumerated. |
|
mon — | A pointer to a structure containing user-supplied callbacks that are called for each of the page's resources. Enumeration ends if any procedure returns |
|
clientData — | A pointer to user-supplied data to pass to each procedure in |
See Also
Since
File: PDProcs.h |
Line: 3527 |
PDPageFlattenOC | () |
Product availability: All |
Platform availability: All |
ASBool PDPageFlattenOC(PDPage pdPage, PDOCContext context)
Replaces the page's contents with a version that has no optional content, containing only what was visible on the page when the call was made.
Parameters
pdPage — | The page to be modified. |
|
context — | The optional-content context in which content is checked for visibility. |
|
See Also
Since
File: PDProcs.h |
Line: 10341 |
PDPageGetAnnot | () |
Product availability: All |
Platform availability: All |
Gets the annotIndex
annotation on the page.
Parameters
aPage — | IN/OUT The page on which the annotation is located. |
|
annotIndex — | IN/OUT The index of the annotation to get on a page. The first annotation on a page has an index of zero. |
The indexed annotation object. |
See Also
Since
File: PDProcs.h |
Line: 3273 |
PDPageGetAnnotIndex | () |
Product availability: All |
Platform availability: All |
Gets the index of a given annotation object on a given page.
Parameters
aPage — | IN/OUT The page to which the annotation is attached. |
|
anAnnot — | IN/OUT The annotation whose index is obtained. |
The annotation's index. It returns |
See Also
Since
File: PDProcs.h |
Line: 3390 |
PDPageGetAnnotSequence | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Returns the sequence number of the specified annotation for the given page. It is applicable only to annotations that are listed in Acrobat's Comments pane and therefore cannot be summarized using Summarize command (as would be the case for link and widget annotations, for example).
This method is similar to PDPageGetAnnotIndex() but it checks the information flags from the annotation handler's PDAnnotHandlerGetAnnotInfoFlagsProc() to determine whether the PDAnnotOperationSummarize flag is set, meaning that the annotation has a sequence number.
Parameters
page — | The page on which the annotation exists. |
|
annot — | The annotation for which the sequence number is desired. |
The sequence number of the specified annotation; or |
See Also
Since
File: PDProcs.h |
Line: 6719 |
PDPageGetBBox | () |
Product availability: All |
Platform availability: All |
void PDPageGetBBox(PDPage page, ASFixedRect* bboxP)
Gets the bounding box for a page. The bounding box is the rectangle that encloses all text, graphics, and images on the page.
Parameters
page — | The page whose bounding box is obtained. |
|
bboxP — | (Filled by the method) A pointer to a rectangle specifying the page's bounding box, specified in user space coordinates. |
See Also
Since
File: PDProcs.h |
Line: 3179 |
PDPageGetBox | () |
Product availability: All |
Platform availability: All |
ASBool PDPageGetBox(PDPage page, ASAtom boxName, ASFixedRect* box)
Returns the box specified for the page object intersected with the media box. If the value for boxName
is CropBox
, this call is equivalent to PDPageGetCropBox(); if the value is MediaBox
, this call is equivalent to PDPageGetMediaBox().
Parameters
page — | The page whose box is obtained. |
|
boxName — | An ASAtom representing the type of box. It can have values such as |
|
box — | (Filled by the method) An ASFixedRect specifying the page's box. |
|
See Also
Since
File: PDProcs.h |
Line: 7750 |
PDPageGetCosObj | () |
Product availability: All |
Platform availability: All |
Gets the dictionary Cos object associated with a page. This method does not copy the object, but is instead the logical equivalent of a type cast.
Parameters
page — | IN/OUT The page whose Cos object is obtained. |
The dictionary Cos object associated with page. |
Since
File: PDProcs.h |
Line: 3063 |
PDPageGetCosResources | () |
Product availability: All |
Platform availability: All |
Gets the Cos object corresponding to a page's resource dictionary. A page's resource Cos object may either be directly in the Page Cos object and apply only to the page. Or, it may be in the Pages tree, be shared by multiple pages, and applies to all Page nodes below the point in the Pages tree where it is located.
Parameters
page — | IN/OUT The page whose Cos resources are obtained. |
The dictionary Cos object associated with the page's resource. |
See Also
Since
File: PDProcs.h |
Line: 3421 |
PDPageGetCropBox | () |
Product availability: All |
Platform availability: All |
void PDPageGetCropBox(PDPage page, ASFixedRect* cropBoxP)
Gets the crop box for a page. The crop box is the region of the page to display and print.
Parameters
page — | The page whose crop box is obtained. |
|
cropBoxP — | (Filled by the method) A pointer to a rectangle specifying the page's crop box, specified in user space coordinates. |
See Also
Since
File: PDProcs.h |
Line: 3148 |
PDPageGetDefaultMatrix | () |
Product availability: All |
Platform availability: All |
void PDPageGetDefaultMatrix(PDPage pdPage, ASFixedMatrix* defaultMatrix)
Gets the matrix that transforms user space coordinates to rotated and cropped coordinates. The origin of this space is the bottom-left of the rotated, cropped page. Y
is increasing.
Parameters
pdPage — | ||
defaultMatrix — | (Filled by the method) A pointer to the default transformation matrix. |
See Also
Since
File: PDProcs.h |
Line: 3194 |
PDPageGetDoc | () |
Product availability: All |
Platform availability: All |
Gets the document that contains the specified page.
Parameters
page — | IN/OUT The page whose document is obtained. |
The document that contains the page. |
See Also
Since
File: PDProcs.h |
Line: 3052 |
PDPageGetDuration | () |
Product availability: All |
Platform availability: All |
Gets the page's automatic-advance timing value, which is the maximum amount of time the page is displayed before the viewer automatically advances to the next page.
Parameters
pdp — |
The automatic-advance timing for the page, in seconds. If the page does not have an advance timing value, fxDefaultPageDuration is returned (representing positive infinity, meaning that it never advances). |
See Also
Since
File: PDProcs.h |
Line: 5801 |
PDPageGetFlippedMatrix | () |
Product availability: All |
Platform availability: All |
void PDPageGetFlippedMatrix(PDPage pdPage, ASFixedMatrix* flipped)
Gets the matrix that transforms user space coordinates to rotated and cropped coordinates. The origin of this space is the top-left of the rotated, cropped page. Y
is decreasing.
Parameters
pdPage — | ||
flipped — | (Filled by the method) A pointer to the flipped transformation matrix. |
See Also
Since
File: PDProcs.h |
Line: 3209 |
PDPageGetMediaBox | () |
Product availability: All |
Platform availability: All |
void PDPageGetMediaBox(PDPage page, ASFixedRect* mediaBoxP)
Gets the media box for a page. The media box is the natural size of the page (for example, the dimensions of an A4 sheet of paper).
Parameters
page — | IN/OUT The page whose media box is obtained. |
|
mediaBoxP — | IN/OUT (Filled by the method) A pointer to a rectangle specifying the page's media box, specified in user space coordinates. |
See Also
Since
File: PDProcs.h |
Line: 3117 |
PDPageGetNumAnnots | () |
Product availability: All |
Platform availability: All |
Gets the number of annotations on a page. Annotations associated with pop-up windows (such as strikeouts) are counted as two annotations. Widget annotations (form fields) are included in the count.
Parameters
aPage — | The page for which the number of annotations is obtained. |
The number of annotations on |
See Also
Since
File: PDProcs.h |
Line: 3403 |
PDPageGetNumber | () |
Product availability: All |
Platform availability: All |
Gets the page number for the specified page.
Parameters
page — | IN/OUT The page whose page number is obtained. |
The page within the document. The first page is |
See Also
Since
File: PDProcs.h |
Line: 3031 |
PDPageGetOCGs | () |
Product availability: All |
Platform availability: All |
Gets the optional-content groups for the document.
Parameters
pdPage — | The page whose OCGs are obtained. |
A |
See Also
Since
File: PDProcs.h |
Line: 9077 |
PDPageGetPalette | () |
Product availability: All |
Platform availability: All |
Useful for obtaining the static, platform-specific palette; the bitmap must be already selected into the displayContext
to get the palette. This API was exposed for the purpose of the ImageConversion plug-in. When that code uses PDPageDrawContentsToWindow() to get a bitmap from AGM, it needs the palette that AGM used in order to get the correct results. This API is not available on Mac 64.
Parameters
page — | The page whose palette is obtained. |
|
displayContext — | The bitmap. |
|
table — | (Filled by the method) The palette. |
|
Since
File: PDProcs.h |
Line: 8160 |
PDPageGetPrintMatrix | () |
Product availability: All |
Platform availability: All |
void PDPageGetPrintMatrix(PDPage page, ASFixedMatrix* matrix, void* clientData)
Sent when the PDF Library has calculated the PostScript Print Page matrix. The PostScript Print Page matrix provides the mapping from user space to PS output space. The matrix can be used to calculate the PostScript page bounding box.
Parameters
page — | The |
|
matrix — | The Page matrix, which is passed to the client. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
File: PIPokes.h |
Line: 2704 |
PDPageGetRotate | () |
Product availability: All |
Platform availability: All |
Gets the rotation value for a page.
Parameters
page — |
Rotation value for the given page. It must be one of the PDRotate values. |
See Also
Since
File: PDProcs.h |
Line: 3088 |
PDPageGetTransition | () |
Product availability: All |
Platform availability: All |
Gets the transition for a given page.
Parameters
pdp — | The page whose transition is obtained. |
The page's transition. If the page has no transition, it returns a |
See Also
Since
File: PDProcs.h |
Line: 5776 |
PDPageGetUserUnitSize | () |
Product availability: All |
Platform availability: All |
float PDPageGetUserUnitSize(PDPage page)
Returns the UserUnit value for the page. If the key is not present in the page dictionary the default of 1.0
is returned.
Parameters
page — |
The value of UserUnit from the page dictionary, or a default value of |
File: PDProcs.h |
Line: 11104 |
PDPageGetVisibleBBox | () |
Product availability: All |
Platform availability: All |
void PDPageGetVisibleBBox(PDPage page, PDOCContext ocContext, ASBool includeAnnots, ASFixedRect* fr)
Gets the bounding box for a given page for those contents that are visible in the given optional-content context. The bounding box is the rectangle that encloses the visible text, graphics, and images on the page.
Parameters
page — | The page whose visible-content bounding box is obtained. |
|
ocContext — | The context within which the contents are visible. |
|
includeAnnots — | When |
|
fr — | (Filled by the method) A pointer to a rectangle specifying the page's visible content bounding box, specified in user space coordinates. The client must not pass |
See Also
Since
File: PDProcs.h |
Line: 10596 |
PDPageHasOverprintExt | () |
Product availability: All |
Platform availability: All |
Checks whether a page contains overprint (with qualifications).
Parameters
pdPage — | The page to check. |
|
Since
File: PDProcs.h |
Line: 11713 |
PDPageHasTransition | () |
Product availability: All |
Platform availability: All |
Tests whether a page has a transition.
Parameters
pdp — | The page to test. |
|
Since
File: PDProcs.h |
Line: 5764 |
PDPageHasTransparency | () |
Product availability: All |
Platform availability: All |
Checks whether a page uses any transparency features.
Parameters
pdPage — | The page to check. |
|
includeAnnotAppearances — | If |
|
Since
File: PDProcs.h |
Line: 8039 |
PDPageMakeSeparations | () |
Product availability: All |
Platform availability: All |
void PDPageMakeSeparations(PDPage pdPage, PDHostSepsSpec spec)
Generates print color separations for a page.
This is the entry point for creating separations for a single page. The spec structure contains an array of PDHostSepsPlate pointers, (typically based on the page inks reported by PDPageEnumInks()), with settings such as what to do on each plate and the output stream for plates that are being produced. The client owns the memory for the array and all of the records in it, and is responsible for disposing of all allocated memory.
On completion, the marked flags in the wasColorSet
field of the plates indicate whether each plate was marked, meaning that any marking operation happened, even if it was clipped away or knocked out later. The special All colorant in a Separation color space does not affect the marked flags.
For Adobe Reader and Acrobat Standard, this method does nothing.
Parameters
pdPage — | The page. |
|
spec — | The separation specification structure containing parameters for the generation. |
See Also
Since
File: PDProcs.h |
Line: 8232 |
PDPageNotifyContentsDidChange | () |
Product availability: All |
Platform availability: All |
void PDPageNotifyContentsDidChange(PDPage page)
Broadcasts a PDPageContentsDidChange() notification. If the Acrobat viewer is version 2.1 or later, also broadcasts a PDPageContentsDidChangeEx() notification with invalidateViews
set to true
.
You must use this method after using Cos methods to change a page's contents. Do not use this method if you use PDPageAddCosContents() or PDPageRemoveCosContents() to change a page's contents, because those methods automatically generate the appropriate notifications.
Use PDPageNotifyContentsDidChangeEx() instead of this method if you wish to suppress the Acrobat viewer's immediate redraw of the page.
Parameters
page — | IN/OUT The page that changed. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 3020 |
PDPageNotifyContentsDidChangeEx | () |
Product availability: All |
Platform availability: All |
Broadcasts a PDPageContentsDidChange() notification and a PDPageContentsDidChangeEx() notification. These notify the Acrobat viewer that a page's contents have been modified, and tells the Acrobat viewer whether to redraw the page immediately.
You must use this method after using Cos methods to change a page's contents. Do not use this method if you use PDPageAddCosContents() or PDPageRemoveCosContents() to change a page's contents, because those methods automatically generate the appropriate notifications.
If your plug-in must be compatible with version 2.0 of the Acrobat viewer, you must use PDPageNotifyContentsDidChange() instead.
Parameters
page — | The page that changed. |
|
invalidateViews — |
|
See Also
Notifications
Since
File: PDProcs.h |
Line: 5341 |
PDPageNumFromCosObj | () |
Product availability: All |
Platform availability: All |
Gets the page number of the page specified by a Cos object.
Parameters
pageObj — | IN/OUT The dictionary Cos object for the page whose number is obtained. |
The page within the document (the first page in a document is page number zero). |
See Also
Since
File: PDProcs.h |
Line: 3076 |
PDPageRelease | () |
Product availability: All |
Platform availability: All |
void PDPageRelease(PDPage page)
Decrements the specified page's reference count.
Parameters
page — |
See Also
Since
File: PDProcs.h |
Line: 3042 |
PDPageRemoveAnnot | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Removes an annotation from the specified page. Annotations are stored in Cos arrays, which are automatically compressed when an annotation is removed (see CosArrayRemove()). For this reason, if you use a loop in which you remove annotations, structure the code so the loop processes from the highest to the lowest index. If you loop the other direction, you will skip over annotations immediately following ones you remove.
Parameters
aPage — | The page from which the annotation is removed. |
|
annotIndex — | The index (into the page's annotation array) of the annotation to remove. |
See Also
Exceptions
Notifications
Since
File: PDProcs.h |
Line: 3374 |
PDPageRemoveCosContents | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDPageRemoveCosContents(PDPage page)
Removes the contents of the specified page.
Parameters
page — | IN/OUT The page whose Cos contents are removed. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 3500 |
PDPageRemoveCosResource | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDPageRemoveCosResource(PDPage page, const char* resType, const char* resName)
Removes a Cos resource from a page object. See Section 3.7.2 in the PDF Reference for a description of page resources.
Parameters
page — | The page whose Cos resources are removed. |
|
resType — | The resource type. The named resource types in PDF are: ExtGState, ColorSpace, Pattern, Shading, XObject, Font, ProcSet, and Properties. |
|
resName — | The resource name (for example, the name of a font might be |
See Also
Notifications
Since
File: PDProcs.h |
Line: 3490 |
PDPageSetBox | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDPageSetBox(PDPage page, ASAtom boxName, ASFixedRect box)
Sets the box specified by boxName
for the page.
This method may throw exceptions.
Parameters
page — | IN/OUT The page for which the box is to be set. |
|
boxName — | IN/OUT An ASAtom representing the type of box. The box names are:
|
|
box — | IN/OUT An ASFixedRect specifying the coordinates to set for the box. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 7776 |
PDPageSetCropBox | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDPageSetCropBox(PDPage page, ASFixedRect cropBox)
Sets the crop box for a page. The crop box is the region of the page to display and print. This method ignores the request if either the width or height of cropBox is less than 72 points (one inch).
Parameters
page — | The page whose crop box is set. |
|
cropBox — | A rectangle specifying the page's crop box, specified in user space coordinates. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 3164 |
PDPageSetDuration | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Sets the page's automatic-advance timing value, which is the maximum amount of time the page is displayed before the viewer automatically advances to the next page.
Parameters
pdp — | The page whose timing is set. |
|
fxDuration — | The auto-advance timing, in seconds. If no advance timing is desired, |
See Also
Since
File: PDProcs.h |
Line: 5815 |
PDPageSetMediaBox | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDPageSetMediaBox(PDPage page, ASFixedRect mediaBox)
Sets the media box for a page. The media box is the natural size of the page, for example, the dimensions of an A4 sheet of paper.
Parameters
page — | IN/OUT The page whose media box is set. |
|
mediaBox — | IN/OUT Rectangle specifying the page's media box, specified in user space coordinates. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 3134 |
PDPageSetRotate | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Sets the rotation value for a page.
Parameters
page — | ||
angle — | Rotation value to be set for a given page. It must be one of the PDRotate values. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 3101 |
PDPageSetTransition | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Sets the transition for a given page.
Parameters
pdp — | The page whose transition is set. |
|
pdt — | The transition for the page. |
See Also
Since
File: PDProcs.h |
Line: 5787 |
PDPageSetUserUnitSize | () |
Product availability: All |
Platform availability: All |
void PDPageSetUserUnitSize(PDPage page, float unitSize)
Set the UserUnit value for a page.
Parameters
page — | ||
unitSize — | UserUnit value to be set for the page dictionary. The default value is |
Exceptions
unitSize <= 0.0
. File: PDProcs.h |
Line: 11112 |
PDPageStmGetInlineImage | () |
Product availability: All |
Platform availability: All |
ASUns32 PDPageStmGetInlineImage(ASStm stm, ASUns32 flags, CosDoc cosDoc, CosObj resDict, PDPageStmImageDataProc proc, void* procClientData, ASUns32* imageRawDataStmOffsetP, ASUns32* imageRawDataLenP, CosObj* imageDict)
Reads a PDF page content inline image from a stream. The stream is typically obtained by getting the Cos stream for a page contents or a Form contents, and calling CosStreamOpenStm() to open the stream using the filtered mode. This method is called after a BI token has been read from the stream. BI indicates that the following tokens comprise an inline image dictionary and data.
It begins reading at the current stream position. It returns the number of bytes read. This is the number of bytes read from the stream and indicates the amount by which the stream position has advanced.
The image attributes dictionary is returned in imageDict
. The image data is passed to the PDPageStmImageDataProc(); if proc
is not provided, the image data is discarded.
imageRawDataStmOffsetP
and imageRawDataLenP
may be NULL
, in which case they are ignored.
The caller should call CosObjDestroy() on imageDict
when it is done.
This method can raise memory, I/O, and parsing exceptions.
Parameters
stm — | ||
flags — | ||
cosDoc — | The Resources dictionary in which to look up ColorSpace resources for inline images. |
|
resDict — | Currently unused by this method (used by PDPageStmGetToken().) |
|
proc — | A callback method to handle inline image data. |
|
procClientData — | Client data passed to |
|
imageRawDataStmOffsetP — | (Filled by the method) The offset of the data stream, after BI, relative to the beginning of |
|
imageRawDataLenP — | (Filled by the method) The offset of the last byte of the data stream between the BI and EI PDF operators. |
|
imageDict — | (Filled by the method) The returned image dictionary. |
The number of bytes read from |
See Also
Since
File: PDProcs.h |
Line: 5653 |
PDPageStmGetToken | () |
Product availability: All |
Platform availability: All |
ASUns32 PDPageStmGetToken(ASStm stm, ASUns32 flags, PDPageStmStringOverflowProc proc, void* procClientData, PDPageStmToken pageStmToken)
Reads a PDF page content token from a stream. The stream is typically obtained by getting the Cos stream for a page contents or a Form contents, and calling CosStreamOpenStm() to open the stream using the filtered mode.
It begins reading at the current stream position, and reads exactly one token. It returns the number of bytes read. This is the number of bytes read from the stream and indicates the amount by which the stream position has advanced. The end-of-stream criteria (loop terminating condition) is the following:
A NULL
object is returned (an object of type CosNull).
The number of bytes read (return value) is 1
.
If the token is an integer, real (ASFixed), or ASBool, then the value is returned in pageStmToken.iVal
. If the token is a string or a name, the value is returned in pageStmToken.sVal
, and the length of the token is in pageStmToken.sValLen
. Strings are not NULL
-terminated, but names are NULL
-terminated. If a string length is greater than kPDPageStmStringMax, the PDPageStmStringOverflowProc() is called repeatedly with portions of the string. On return from PDPageStmGetToken, the value of pageStmToken.sValLen
is zero, and pageStmToken.sVal
is empty (ival
, sVal
, and sValLen
are components of the PDPageStmToken). If there is no overflow proc, then the first kPDPageStmStringMax bytes of the string will be returned in pageStmToken.sVal
, and the remaining bytes are lost. The value of pageStmToken.sValLen
is kPDPageStmStringMax in this case.
If the token is BI (begin inline image), PDPageStmGetInlineImage() should be called to parse the inline image.
This method can raise memory, I/O, and parsing exceptions.
Parameters
stm — | ||
flags — | A bit field of options such as 'skip comments' (kPDPageStmSkipComments means skip comments during token generation). |
|
proc — | A callback method to handle long strings. |
|
procClientData — | Client data passed to the callback method. |
|
pageStmToken — | The returned token. |
The number of bytes read from |
See Also
Since
File: PDProcs.h |
Line: 5593 |
PDPageWillAddAnnot | () |
Product availability: All |
Platform availability: All |
An annotation will be added to a page.
Parameters
page — | The page to which the annotation will be added. |
|
addAfter — | The index in the page's annotation array after which the annotation will be added. |
|
annot — | The annotation that will be added. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 869 |
PDPageWillPrintAnnot | () |
Product availability: All |
Platform availability: All |
Clients who register for this notification will be notified just before an annotation is expected to print. This notification allows clients that manage annotations to prepare the appearance of the annotation for printing purposes. There is no requirement that the annot
referred to in this parameter list actually has a print appearance.
Parameters
annot — | The annotation to print. |
|
page — | The page on which the annotation occurs. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
Notifications
File: PIPokes.h |
Line: 2102 |
PDPageWillPrintAnnots | () |
Product availability: All |
Platform availability: All |
Clients who register for
PDPageWillPrintAnnots()
will be called before the printed representations of any annotations have been emitted. If a page has no annotations, this will not be called. If a page has annotations, this will be called. There may not be any code emitted for the annotations on that page, however, since they may not have any appearance for printing. The status parameter passed in the
PDPageDidPrintAnnot()
will indicate this.
Parameters
doc — | The document containing the annotations. |
|
page — | The page to be printed. |
|
stm — | The PostScript print stream used when printing to a PostScript printer, and |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 1943 |
PDPageWillRemoveAnnot | () |
Product availability: All |
Platform availability: All |
An annotation will be removed from a page.
Parameters
page — | The page from which an annotation will be removed. |
|
annotIndex — | The index (in the page's annotation array) of the annotation that will be removed. Use PDPageGetAnnot() to obtain the annotation from its index. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 901 |