Click or drag to resize

getDocumentInfo Method

Gets the document info (author, subject, title, etc) for the document loaded into the PdfWebControl instance.

Syntax
JavaScript
function getDocumentInfo();

Parameters

None

Return Value

Type: PdfDocumentInfo Class

Returns a JavaScript object representing the current document info.

Remarks

This method will return an object whose members can be changed; however any changes made will not affect the object until the setDocumentInfo Method is called.

Examples
JavaScript
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance

//get current document info
var myInfo = myApi.getDocumentInfo();

//show current document author
window.alert("The author of this document is " + myInfo.author);
See Also