Click or drag to resize

PDFDoc Constructor (IRandomAccessStream, String)

Creates a new PDF document from an IRandomAccessStream instance.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public PDFDoc(
	IRandomAccessStream randomAccessStream,
	string filePath
)

Parameters

randomAccessStream
Type: IRandomAccessStream
An random access stream where the source PDF document can be read from.
filePath
Type: SystemString
The file path of the document. This will only be used for the RecentlyUsedCache
Remarks

Make sure to call InitSecurityHandler to check whether the document is encrypted.

It is recommended to pass an IRandomAccessStream instance opened with Read FileAccessMode only. Passing an IRandomAccessStream instance opened with ReadWrite FileAccessMode may cause unwanted behaviours.

See Also