DynaPDF Manual - Page 643

Previous Page 642   Index   Next Page 644

Function Reference
Page 643 of 787
SetAnnotSubject
Syntax:
LBOOL pdfSetAnnotSubject(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Annotation handle
const char* Value)
// The subject to be set
The function sets or changes the optional subject string of an annotation. The subject is defined since
PDF 1.5. The function adjusts the PDF version automatically if it is lower than PDF 1.5.
The annotation types atFileLink, atPageLink, atPopUp, and atWebLink do not support a subject
string. The function returns with an error when trying to set the subject on these annotation types.
If the parameter Value is NULL or if it contains an empty string the subject string is deleted in the
annotation.
Remarks:
This function is implemented in an Ansi and Unicode compatible variant.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetBBox
Syntax:
LBOOL pdfSetBBox(
const PPDF* IPDF,
// Instance pointer
TPageBoundary Boundary, // Bounding box
double LeftX,
// lower left x
double LeftY,
// lower left y
double RightX,
// upper-right x
double RightY)
// upper-right y
typedef enum
{
pbArtBox,
// Art box
pbBleedBox, // Bleed box
pbCropBox,
// Crop box
pbTrimBox,
// Trim box
pbMediaBox
// Media box
}TPageBoundary;
The function sets a specific bounding box of the current open page. A PDF page may be prepared
either for a finished medium, such as a sheet of paper, or as part of a prepress process in which the
content of the page is placed on an intermediate medium, such as film or an imposed reproduction
plate.
In the latter case, it is important to distinguish between the intermediate page and the finished page.
The intermediate page may often include additional production-related content, such as bleeds or
printer marks that falls outside the boundaries of the finished page. To handle such cases, a PDF
 

Previous topic: SetAnnotString

Next topic: Bounding boxes:, SetBidiMode

Start Chat