Start/End Output

Top  Previous  Next

Creating metafile with wPDF is as easy as 1 - 2 - 3 or better as

 

BeginDoc - DrawMetafile - EndDoc.

 

If you need a canvas to draw to, you need to open a 'page' first. To open a PDF page use StartPage.

 

BeginDoc - StartPage - Canvas.Draw() - EndPage - EndDoc.

 

Note: Using 'CloseCanvas' you can always flush the graphic output stored in the Canvas property to the PDF file.

 

If you have assigned 'Canvas' to a local variable you need to assign it again after 'CloseCanvas'.

 

To create a PDF stream set the property Stream to the instance of a Stream object.