Method Save
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
Save(string)
Writes the document to a file, replacing it if it exists.
public void Save(string path)
Parameters
pathstringThe file to create.
Exceptions
- InvalidOperationException
A page's content is unbalanced (an open text object or unmatched SaveState()).
- PdfAException
The document was created for PDF/A and validation found violations.
Save(Stream)
Writes the document to a stream. The stream is not closed.
public void Save(Stream output)
Parameters
outputStreamA writable stream.
Remarks
A document can be saved more than once; each save reflects its current state.
Exceptions
- InvalidOperationException
A page's content is unbalanced (an open text object or unmatched SaveState()).
- PdfAException
The document was created for PDF/A and validation found violations.