L_LTSVG_API L_INT L_SvgFlatDocument(docHandle, flatDocHandle, options)
Flattens the specified SVG document.
The SVG document handle referencing the SVG document to be flattened.
Address of the SVG document handle that will be allocated and filled with the flattened SVG document.
This function will allocate a new SVG handle for the flattened SVG document.
When this memory is no longer needed, you must free it using L_SvgFreeNode.
Pointer to options to be used when flattening the SVG document. Pass NULL to use the default options.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
To use this function, do the following:
Support for SVG is only available in the Document and Medical Imaging toolkits.
This function creates a copy of the source SVG document into the destination flat SVG document.
When the memory allocated by this function for the flat SVG document is no longer needed, you must free it using L_SvgFreeNode.
For more information on flat SVG documents and bounds and resolution, refer to SVG Size, Bounds and Flat.
Required DLLs and Libraries
Win32, x64, Linux.