Click or drag to resize

getDpi Method

Gets a value representing the document DPI (dots per inch) as set by RenderDpi for the current document in the PdfWebControl instance.

Syntax
JavaScript
function getDpi();

Parameters

None

Return Value

Type: Integer

Returns the number of pixels per inch in the document.

Examples
JavaScript
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance
window.alert("Document DPI is " + myApi.getDpi());
See Also