Click or drag to resize

PdfDocumentClose Method

Closes the PdfDocument's underlying stream, invalidates all pages, and clears the Pages collection.

Namespace:  Atalasoft.PdfDoc
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void Close()
Remarks
When a PdfDocument has been constructed from a string representing a path, it is necessary to call Close to ensure that the underlying stream created by the constructor will be closed. Calling Close() will invalidate all existing PdfPage objects that were associated with the original PdfDocument, even if they are contained within a new PdfDocument. When a PdfDocument has been constructed from a Stream object, the Stream will be closed.
See Also