Click or drag to resize

PdfDocumentDispose Method

Closes the PDF file associated with this PdfDocument.

Any PdfDocument that is associated with the PDF file should be closed, otherwise memory and resource leaks might occur because PDF file stream might not be closed until the application exists.

Namespace:  GemBox.Pdf
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version:
This method is used as a convenience so that PdfDocument instance can be used in a using block.
See Also