Click or drag to resize

PDFViewCtrlOpenURLAsync Method (String, String, String, HTTPRequestOptions)

Open a PDF file at the given url. This works best with PDF's that are linearized, as pages can be downloaded and viewed in random access order, without the need to download the entire document. A viewing session can also be persisted across multiple viewing/application sessions to remove redundant downloads and improve overall performance by using the optional cache_pdf parameter.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public IAsyncAction OpenURLAsync(
	string url,
	string cache_pdf,
	string password,
	HTTPRequestOptions options
)

Parameters

url
Type: SystemString
the url to open
cache_pdf
Type: SystemString
This function will use downloaded data to construct a PDF in this location. If null or blank, the PDF will be stored in a temporary location. If the path points to the result of a previous call to this function for this particular URL, then PDFViewCtrl will resume that download. Note that if disk caching is disabled this file will not be used.
password
Type: SystemString
The PDF document password to use if the PDF itself is password protected.
options
Type: pdftron.PDFHTTPRequestOptions
Optional HTTP request options to use with every HTTP request.

Return Value

Type: IAsyncAction
No object or value is returned by this method when it completes.
Remarks
Use OnDownloadChanged to track the download event.
See Also