viewportImage Property

Summary

The total composite image data to print when PrintDocumentOptions.UseViewportLayout is true.

Syntax
TypeScript
JavaScript
Object.defineProperty(DocumentPrintData.prototype, 'viewportImage', 
	get: function(), 
	set: function(value) 
) 
viewportImage: HTMLImageElement; 

Property Value

An HTMLImageElement containing all the image data for the printed pages from the viewport.

Remarks

ViewportImage is set automatically when DocumentViewer.Print completes and BuildPrintRoot is called. BuildPrintRoot calls BuildViewportImage if PrintDocumentOptions.UseViewportLayout is true, creating a single HTMLImageElement composed from the image data of each page's image data.

If PrintDocumentOptions.ViewportClip is used, ViewportImage will contain a "screenshot" of the viewport with the outside image data from each page clipped out appropriately.

ViewportSize will be set to the ImageViewer.ControlSize to indicate the viewport being used.

For more information, refer to DocumentViewer.Print.

History

19.0.0.54
Added

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Viewer Assembly