DynaPDF Manual - Page 711

Previous Page 710   Index   Next Page 712

Function Reference
Page 711 of 777
rclBounds rectangle. This flag can be useful if the EMF file contains
objects outside the rclBounds rectangle.
mfDisableRasterEMF
If set, EMF files are no longer rastered to an image if the file uses ROP
codes which combine background and foregound colors. Many EMF
files use such ROP codes but it is often not required to raster the EMF
file because many ROP codes which combine background and
foreground colors have no effect if no other object was drawn in
background.
mfNoBBoxCheck
If set, the rclBounds and rclFrame rectangles are used as is to calculate the
picture size.
DynaPDF tries to identify invalid bounding boxes by default so that EMF files
with invalid bounding boxes can be converted. The EMF converter uses the
rclBounds rectangle to calculate the picture size if the resolution of the EMF
file seems to be larger as 1800 DPI which is quite unusual.
This is mostly an indication that the rclFrame rectangle was incorrectly
calculated since EMF files are typcially created in a much lower resolution.
If you need to process such high resolution EMF files then disable the
bounding box check.
SetMetadata
Syntax:
LBOOL pdfSetMetadata(
const PPDF* IPDF,
// Instance pointer
TMetadataObj ObjType, // See below
SI32 Handle,
// Object handle or -1 for the catalog object
const void* Buffer,
// Pointer of the stream buffer
UI32 BufSize)
// Buffer size in bytes
typedef enum
{
mdoCatalog, // The global XMP stream of the document (no handle needed)
mdoFont,
// Not yet supported
mdoImage,
// Parameter Handle must be an image handle
mdoPage,
// Parameter Handle must be a page number
mdoTemplate // Parameter Handle must be a template handle
}TMetadataObj;
The function sets or replaces the XMP metadata stream of a specific object. The function deletes the
XMP stream if no buffer will be provided.
If the global XMP stream of the Catalog object should be replaced then proceed as follows:
Set the wished output PDF version with SetPDFVersion().
Get a preview of the XMP stream with GetMetadata().
Modify the returned stream as needed and save it with SetMetadata(), finished!
 

Previous topic: SetMetaConvFlags

Next topic: SetMinLineWidth2 (Rendering Engine), SetMiterLimit