Click or drag to resize
Pdf Library for .NET

PdfDocumentSave Method

Saves the pdf document as byte array.

Namespace: SelectPdf
Assembly: Select.Pdf (in Select.Pdf.dll) Version: 26.4
Syntax
public byte[] Save()

Return Value

Byte
The byte array representation of the document.
Remarks
The byte array can be further saved to a file or sent over HTTP as a response to the browser.

Use this overload when the same document is needed in more than one place: save once and write the returned bytes to every destination.

A pdf document can only be saved once - a second call throws a PdfDocumentException. To produce more than one output, save once and reuse the result.

See Also