Name
pdf.CloseDocument -- close PDF document
Synopsis
pdf.CloseDocument(id)
Function
This function closes a document opened using pdf.OpenDocument() and frees all of its resources.

Note that this function must only be used for documents opened using pdf.OpenDocument(). Documents created using pdf.CreateDocument() must be freed using the doc:Free() method.

Also note that pdf.CloseDocument() must not be called before all vector brushes obtained via pdf.GetBrush() from the document have been freed.

Inputs
id
identifier of the PDF document to be closed

Show TOC