getDocumentInfo Method |
Gets the document info (author, subject, title, etc) for the document loaded into the PdfWebControl instance.
function getDocumentInfo();
None
Type: PdfDocumentInfo Class
Returns a JavaScript object representing the current document info.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.
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);