Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 627

Previous Page 626   Index   Next Page 628

Function Reference
Page 627 of 750
const PPDF* IPDF, // Instance pointer
SI32 Value)
// Currently supported values are 8 and 24 bit
The function sets the default color depth in bits per pixel, which determines whether images should
be downsampled. If the property is to 8 bits per pixel images are converted to 256 indexed color
images. At time of publication only two values are supported:
24 bit: No conversion
8 bit: Conversion to 256 indexed color image
Default value = 24
Downsampling will only be applied if Flate compression is used. The color table is always created in
the current color space.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetDocInfo
Syntax:
LBOOL pdfSetDocInfo(
const PPDF* IPDF,
// Instance pointer
TDocumentInfo DInfo, // see below
const char* Value)
// Info string
typedef enum
{
diAuthor
= 0,
diCreator
= 1,
diKeywords
= 2,
diProducer
= 3,
diSubject
= 4,
diTitle
= 5,
diCompany
= 6,
diPDFX_Ver
= 7,
// GetInDocInfo() or GetInDocInfoEx()
diCustom
= 8,
// Not supported -> Use SetDocInfoEx()
diPDFX_Conf
= 9,
// GetInDocInfo() or GetInDocInfoEx()
diCreationDate = 10, // Available after a PDF file was imported
diModDate
= 11
// GetInDocInfo() or GetInDocInfoEx()
}TDocumentInfo;
The function sets or changes a document info entry. This function is implemented in an Ansi and
Unicode compatible version. The Ansi Version supports Ansi strings of the code page 1252. To create
a documents info entry in an arbitrary 8 bit or CJK encoding convert the string to Unicode with the
function ConvToIncode() and use the Unicode version to set the entry.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetDefBitsPerPixel

Next topic: SetDocInfoEx