DynaPDF Manual - Page 766

Previous Page 765   Index   Next Page 767

Function Reference
Page 766 of 839
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!
The above steps make sure that the XMP metadata and document info contain the same values. This
is especially important for PDF standards like PDF/A or PDF/X. DynaPDF makes sure that the
creation and modification date will not be changed when closing the file.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetMinLineWidth2 (Rendering Engine)
Syntax:
void PDF_CALL rasSetMinLineWidth2(
IRAS* RasPtr, // Pointer of the rasterizer
float Value)
// Minimum line width (must be positive)
The function sets the minimum line width in which thin lines are rendered. The value should be in
the range 0.1 through 1.0.
Default value: 0.5
 

Previous topic: SetMetaConvFlags

Next topic: SetMiterLimit, SetNeedAppearance