LoadFromCanvasDC
Vector graphics, Document management
Version history
This function was introduced in Quick PDF Library version 7.14.
Description
Creates a new document from the drawing operations applied to the DC returned by the GetCanvasDC function.
When the Options parameter is set to 3, use the NoEmbedFontListAdd function to add fonts to the no embed font list.
Syntax
Delphi
function TDebenuPDFLibrary1811.LoadFromCanvasDC(DPI: Double;
Options: Integer): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::LoadFromCanvasDC(DPI As Double,
Options As Long) As Long
DLL
int DPLLoadFromCanvasDC(int InstanceID, double DPI, int Options)
Parameters
DPI | The DPI to use for the new document. For example, if the canvas was created with a width and height of 96 and the DPI is specified as 192, the resulting document will be 0.5 inches in width and height. |
Options |
-1 = Convert the drawing commands to a single image using GDI+ 0 = Process the drawing commands as vector graphics, fonts are not embedded 1 = Process the drawing commands as vector graphics, fonts are embedded but not compressed 2 = Process the drawing commands as vector graphics, fonts are embedded and compressed 3 = Process the drawing commands as vector graphics, fonts not in the no embed font list are embedded and compressed |
Return values
0 | A canvas has not been created |
1 | The canvas DC was processed correctly and a new document has been created |