Debenu Quick PDF logo

NewPageFromCanvasDC

Vector graphics, Page manipulation

Version history

This function was introduced in Quick PDF Library version 7.23.

Description

Adds a new page to the selected document from the drawing operations applied to the DC returned by the GetCanvasDC function.

When the Options parameter is set to 3 or 4, use the NoEmbedFontListAdd function to add fonts to the no embed font list.

Availability

Windows/Delphi, Windows/ActiveX, Windows/DLL

Parameters

DPI double 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 int32 -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
4 = Same as 3 but fonts already added during previous calls to this function or the LoadFromCanvasDC function are reused

Return type and values

0 HDC A canvas has not been created
1 HDC The canvas DC was processed correctly and a new document has been created

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport