Click or drag to resize

PdfDocument.Close 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.5.0.0.0.156 (.NET 4.6.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