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+).
Implements
Inherited Members
Namespace: pdftron.PDF
Assembly: PDFNetAndroid.dll
Syntax
public class Print : Print, IJavaObject, IJavaPeerable, IDisposable
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, 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 |
---|---|---|
Android.Content.Context | context | the context |
System.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 |
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 |
---|---|---|
Android.Content.Context | context | |
System.String | jobName | |
PDFDoc | doc | |
System.String | password | |
System.Int32 | printContent | |
System.Boolean | isRtl |