DynaPDF Manual - Page 828
Previous Page 827 Index Next Page 829

Function Reference
Page 828 of 883
SetRenderingIntent
Syntax:
LBOOL pdfSetRenderingIntent(
const PPDF* IPDF,
// Instance pointer
SI32 ImgHandle,
// Image handle
TRenderingIntent Value) // Rendering intent
Set function sets the rendering intent of an image. The rendering intent describes how colors should
be interpreted.
The parameter ImgHandle must be a valid image handle that was returned by InsertImage() or
InsertImageEx(). Imported images returned by ParseContent(), for example, can be changed too.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetResolution
Syntax:
LBOOL pdfSetResolution(
const PPDF* IPDF, // Instance pointer
UI32 Value)
// Image resolution in DPI
The function sets the resolution in DPI (Dots per Inch), in which images are stored by DynaPDF. The
property will be ignored if the property SaveNewImageFormat was set to false. 1 bit images are
always stored in the original resolution. The image resolution must be in the range 1 to 12000 DPI.
Default value = 150 (DPI)
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetSaveNewImageFormat
Syntax:
LBOOL pdfSetSaveNewImageFormat(
const PPDF* IPDF, // Instance pointer
LBOOL Value)
// If true, images are downscaled if necessary
The property SaveNewImageFormat specifies whether images should be downscaled if the original
resolution of the image is higher than the value of the property resolution (see also SetResolution()).
If the property SaveNewImageFormat is false, JPEG compressed images will be inserted in pass-
through mode as long as the image is not a CMYK JPEG (such images must be converted because
Acrobat viewer require another byte order).
Default value = true
Previous topic: Return values of the progress callback function:, ZUGFeRD, ZUGFeRD 2.0, Factur-X / ZUGFeRD 2.1/2.2, ZUGFeRD 2.1 or higher
Next topic: SetScreenRes (Rendering Engine)