DynaPDF Manual - Page 544

Previous Page 543   Index   Next Page 545

Function Reference
Page 544 of 770
The flag pfTranslateStrings is no longer defined because the used callback function specifies
already whether strings should be converted to Unicode. The old constant 1 is ignored.
Two additional callback functions TShowTextA and TShowTextW were defined at the
reserved fields Reserved0001 and Reserved0002. These callback functions are no longer
defined and no longer executed. These functions could be used in combination with
TShowTextArrayA or TShowTextArrayW only. DynaPDF processes now the entire text with
the array versions. So, existing applications will still work as expected.
The function supports several flags which are useful when extracting images from a PDF file. These
flags are meaningful only, if the TInsertImage callback function is set.
Flag
Description
pfDecomprAllImages
If set, all images are decompressed. Decompressing all images can
be useful if the images should be stored in a specific file format like
TIFF, PNG, or BMP.
If the flag is absent, images which are already stored in a valid file
format are returned as is. This can be useful if no conversion to a
specific image format is required. Images which can be stored
unchanged are Gray and RGB JPEG images, as well as JPEG 2000
compressed images.
pfNoJPXDecode
Meaningful only if the flag pfDecomprAllImages is set. If set, JPEG
2000 images are not decompressed.
pfDitherImagesToBW
This flag is considered only if an image is decompressed. If set,
decompressed images are converted to 1 bit black and white with
the Floyd-Steinberg dithering algorithm. 1 bit images are returned
unchanged.
pfConvImagesToGray
This flag is considered only if an image is decompressed. If set,
decompressed images are converted to gray.
pfConvImagesToRGB
This flag is considered only if an image is decompressed. If set,
decompressed images are converted RGB.
pfConvImagesToCMYK
This flag is considered only if an image is decompressed. If set,
decompressed images are converted CMYK.
pfImageInfoOnly
If set, images are not decompressed. This flag can be useful if no
further processing is required, e.g. if images should be enumerated.
Although the TDrawShading callback function is defined there is no way to process shadings at this
time. Shadings can only be rastered to an image to get a meaningful result. However, such a feature
is not available yet.
 

Previous topic: ParseContent

Next topic: The Graphics State