DocumentPrintPageAction Enumeration

Summary

An enumeration to determine the preparation actions to take when printing.

Syntax
TypeScript
JavaScript
lt.Document.Viewer.DocumentPrintPageAction = { 
	auto: 0, 
	remove: 1, 
	manual: 2 
} 
lt.Document.Viewer.DocumentPrintPageAction = { 
	auto: 0, 
	remove: 1, 
	manual: 2 
} 
Members
0AutoDefault. Indicates that DocumentViewer.Print should load the page for printing through the service or through PDF Client Rendering (see PrintDocumentOptions.UsePDFClientRendering).
1RemoveIndicates that DocumentViewer.Print should not load the page and should ignore it when printing. When assembling the printing structure in DocumentPrintData.BuildPrintRoot, the page will be ignored and not added to the HTML structure.
2ManualIndicates that the user will be responsible for providing the content of the page for printing. DocumentViewer.Print does not attempt to load the page data like in Auto. This page data will still be assembled into the DocumentPrintData.Root when DocumentPrintData.BuildPrintRoot is called, though if the DocumentPrintPageData.PageElement is null, it acts like Remove.
Remarks

When printing, updates are sent on the progress of DocumentViewer.Print through DocumentViewer.Operation with DocumentViewerOperation.PrintPages. When DocumentViewerOperationEventArgs.IsPostOperation is false (indicating the page is about to be prepared), DocumentPrintPageData.Action is used to determine what DocumentViewer.Print should do to prepare the page.

For more information, see DocumentViewer.Print.

History

19.0.0.48
Added
Requirements

Target Platforms

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

Leadtools.Document.Viewer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.