Click or drag to resize

PdfStorageAdapter.GetDocumentOriginalAsPdf Method (String)

Retrieve a document previously loaded into a PdfWebControl instance with no modifications, as a PDF.

Namespace:  RadPdf.Integration
Assembly:  RadPdf (in RadPdf.dll) Version: 4.2.0.0 (4.2.0.0)
Syntax
public byte[] GetDocumentOriginalAsPdf(
	string documentKey
)

Parameters

documentKey
Type: System.String
DocumentKey as a string.

Return Value

Type:Byte[]
The document before any changes in PDF format associated with the documentKey.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe current instance has already been disposed.
RadPdfDocumentExceptionThe document was not found in storage.
Remarks
If the document is not found or inaccessible, an exception will be thrown. The original document is a copy of the PDF as loaded internally by a PdfWebControl instance. For example, password protected documents which were loaded will not be encrypted when retrieved with this method. PDF documents which still require a password to be opened (DocumentPasswordPending is true) will not be retrieved.
See Also
This website uses cookies to identify your session and other necessary functions. By using this website, you are agreeing to our Terms of Use and Privacy Policy (updated April 26 2021).
Learn About Cookies
Got it!