property CanvasReference

Top  Previous  Next

wPDF provides a Canvas property for easy creation of PDF files. The canvas property is internally managed as a TMetafileCanvas which is created for a metafile which is sent to the PDF engine when EndPage or CloseCanvas  is executed.

 

Using the property CanvasReference you select if the canvas should use the properties of the screen (wprefScreen) device or the default printer (wprefPrinter). Using the printer requires of course that a printer is installed, but has the advantage that the resolution is independent from the size of the monitor.

 

Note: If the screen device is used as reference Windows 1.) uses the dimension of the screen as maximum clipping rectangle (WindNT and Win2K)