Class Print
Print is a utility class that can be used to print PDF documents. It is only supported on Android 4.4 and up (API Level 19+).
Inheritance
Namespace: pdftron.PDF
Assembly: PDFNetAndroid.dll
Syntax
public class Print : PDF.Print
Methods
ExportAnnotations(PDFDoc, Boolean)
Export comments and summary of annotations
Declaration
public static PDFDoc ExportAnnotations(PDFDoc inDoc, bool isRtl)
Parameters
| Type | Name | Description |
|---|---|---|
| PDFDoc | inDoc | the document to be printed |
| System.Boolean | isRtl | if true, the summary of annotations will be right aligned; otherwise, left aligned |
Returns
| Type | Description |
|---|---|
| PDFDoc | the output document containing comments and summary of annotations |
StartPrintJob(Context, String, PDFDoc, String, Int32, Boolean)
Declaration
public static void StartPrintJob(Context context, String jobName, PDFDoc doc, String password, int printContent, bool isRtl)
Parameters
| Type | Name | Description |
|---|---|---|
| Context | context | |
| String | jobName | |
| PDFDoc | doc | |
| String | password | |
| System.Int32 | printContent | |
| System.Boolean | isRtl |
StartPrintJob(Context, String, PDFDoc, Int32, Boolean)
Print the document using the current available printers or print services installed on the device.
Declaration
public static void StartPrintJob(Context context, String jobName, PDFDoc doc, int printContent, bool isRtl)
Parameters
| Type | Name | Description |
|---|---|---|
| Context | context | the context |
| String | jobName | job name which will be displayed in the print queue |
| PDFDoc | doc | the document to be printed |
| System.Int32 | printContent | the content to be printed. Valid values are 1: document only 3: document and annotations 4: summary of annotations only 7: document, annotations and summary of annotations |
| System.Boolean | isRtl | if true, the summary of annotations will be right aligned; otherwise, left aligned |