DynaPDF Manual - Page 128

Previous Page 127   Index   Next Page 129

Function Reference
Page 128 of 787
The function adds an image that was returned by the content parser to the current open image file.
The output image must be opened with CreateImage() beforehand.
If the output format is TIFF, multiple images can be added to the file while each image can be
compressed with a different compression filter. All other image formats support only one image. So,
the image must be closed with CloseImage() after the image was added to the file in this case.
Depending on the output format the compression filter cannot be freely chosen. For example, PNG
is the native image format for Flate compression. This format supports Flate compression only. If an
incompatible filter is set the function uses the default filter for the output format, e.g. Flate for PNG,
JPEG for JPG, and so on.
The compression level can be adjusted with the function SetCompressionLevel(). The JPEG quality
can be set with SetJPEGQuality().
The function is able to create up to 2 GB large TIFF files. As far as the images are compressed with
the original filters it is usually always possible to add all images of a PDF file to one TIFF file.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
AddInkList
Syntax:
LBOOL pdfAddInkList(
const PPDF* IPDF,
// Instance pointer
UI32 InkAnnot,
// Handle of an ink annotation.
struct TFltPoint* Points, // Array of points
UI32 NumPoints)
// Number of points in the array
The function adds an array of points or path to an Ink Annotation. The function must be called
within an open page.
An ink annotation can contain an arbitrary number of paths. The points will be connected by curves
to achieve a smooth transition between points. The coordinates are treated in current user space.
Any transformation that was applied on the coordinate system will be taken into account.
If the number of points is zero then all paths will be deleted from the annotation.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: AddImage

Next topic: AddJavaScript

Start Chat