The virtual DPI (dots per inch) of printed pages.
Object.defineProperty(PrintDocumentOptions.prototype, 'dpi',
get: function(),
set: function(value)
)
dpi: number;
The desired DPI of printed pages. Cannot be less than 1.
The default value is 96
.
DPI cannot be 100% accurate for any browser, as exact formulas for converting a screen pixel to printed page length cannot be known. Instead, all provided DPI values will enlargen the printed image page by a factor relative to the default dpi of 96
.
The calculated size of the image with DPI taken into account is available from the result DocumentPrintPageData.PrintSizeDpi.
This value can be used with UsePDFClientRendering if ClientRenderSizePixels maintains its default value of 0
. This value is used to request the page image with a specific width and height from the service.
Dpi has no effect on printed annotations.
For more information, refer to DocumentViewer.Print.
History
Added. Prior to this version, DPI was a fixed 96
.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document