DynaPDF Manual - Page 147

Previous Page 146   Index   Next Page 148

Function Reference
Page 147 of 818
The profile should be embedded at the end of processing, that means directly before calling
CloseFile() or CloseFileEx().
Return values:
If the function succeeds the return value is the handle of the Rendering Intent object, a value greater
or equal zero. If the function fails the return value is a negative error code.
AddOutputIntentEx
Syntax:
SI32 pdfAddRenderingIntentEx(
const PPDF* IPDF,
// Instance pointer
const void* Buffer, // File buffer of an ICC profile
UI32 BufSize)
// Buffer size in bytes
The function adds an ICC profile to the PDF file like AddOutputIntent() but accepts a file buffer as
input. See also AddOutputIntent().
Return values:
If the function succeeds the return value is the handle of the Rendering Intent object, a value greater
or equal zero. If the function fails the return value is a negative error code.
AddPageLabel
Syntax:
SI32 pdfAddPageLabel(
const PPDF* IPDF,
// Instance pointer
UI32 StartRange,
// Page number where labelling starts
TPageLabelFormat Format, // Label format
const char* Prefix,
// Optional prefix
SI32 FirstPageNum)
// Page number to be displayed in the label
typedef enum
{
plfDecimalArabic,
// 1,2,3,4...
plfUppercaseRoman,
// I,II,III,IV...
plfLowercaseRoman,
// i,ii,iii,iv...
plfUppercaseLetters, // A,B,C,D...
plfLowercaseLetters, // a,b,c,d...
plfNone
}TPageLabelFormat;
The function creates a page label object. The parameter StartRange must be the page number where
labelling should start. The first page is denoted by 1. The parameters Prefix and FirstPageNum are
both optional. FirstPageNum represents the numeric portion of the first page label in the range. This
value is incremented on subsequent pages in the range. The value must be greater zero, otherwise it
will be ignored. Numbering of the range starts at one in this case.
 

Previous topic: AddOutputIntent

Next topic: AddRasImage (Rendering Engine)


Start Chat