Print Method

PDFTron SilverDox SDK

Collapse imageExpand ImageCopy imageCopyHover image
Invokes the system's print dialog box, allowing the user to print the document.

Namespace: PDFTron.SilverDox.Documents
Assembly: SilverDox (in SilverDox.dll) Version: 1.2.4413.29010

Syntax

C#
public void Print(
	bool fitToPage,
	List<Canvas> annotationCanvases
)
Visual Basic
Public Sub Print ( _
	fitToPage As Boolean, _
	annotationCanvases As List(Of Canvas) _
)
Visual C++
public:
void Print(
	bool fitToPage, 
	List<Canvas^>^ annotationCanvases
)

Parameters

fitToPage
Type: System..::..Boolean
If true pages will be scaled down to fit the page.
annotationCanvases
Type: System.Collections.Generic..::..List<(Of <(<'Canvas>)>)>
Canvases that appear on top of the document's pages.

Remarks

Calling this method will cause the the entire document to be loaded, regardless of which pages are printed. Silverlight's support for printing (added in version 4) is preliminary, and printing suspends the application's UI during the printing process.

See Also