Click or drag to resize

setDocumentInfo Method

Sets the document information (author, subject, title, etc) for the current document in the PdfWebControl instance.

Syntax
JavaScript
function setDocumentInfo(info);

Parameters

info

Type: PdfDocumentInfo Class

a JavaScript object representing the desired document info.

Return Value

Type: Boolean

true if operation completed successfully; otherwise, false.

Examples
JavaScript
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance
myApi.setDocumentInfo({"author" : "Tommy"}); //set author to Tommy
See Also