Show / Hide Table of Contents

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
System.Object
Java.Lang.Object
Print
Print
Implements
Android.Runtime.IJavaObject
Java.Interop.IJavaPeerable
System.IDisposable
Inherited Members
Print.PrintContentAnnotationBit
Print.PrintContentDocumentBit
Print.PrintContentSummaryBit
Print.AddPrintListener(Print.IPrintCallback)
Print.ClearPrintListeners()
Print.ExportAnnotations(PDFDoc, Boolean)
Print.RemovePrintListener(Print.IPrintCallback)
Print.StartPrintJob(Context, String, PDFDoc, Integer, Boolean)
Print.StartPrintJob(Context, String, PDFDoc, String, Integer, Boolean)
Java.Lang.Object.Java.Interop.IJavaPeerable.DisposeUnlessReferenced()
Java.Lang.Object.Java.Interop.IJavaPeerable.Disposed()
Java.Lang.Object.Java.Interop.IJavaPeerable.Finalized()
Java.Lang.Object.Java.Interop.IJavaPeerable.SetJniIdentityHashCode(System.Int32)
Java.Lang.Object.Java.Interop.IJavaPeerable.SetJniManagedPeerState(Java.Interop.JniManagedPeerStates)
Java.Lang.Object.Java.Interop.IJavaPeerable.SetPeerReference(Java.Interop.JniObjectReference)
Java.Lang.Object.Dispose()
Java.Lang.Object.Dispose(System.Boolean)
Java.Lang.Object.GetObject<T>(System.IntPtr, System.IntPtr, Android.Runtime.JniHandleOwnership)
Java.Lang.Object.GetObject<T>(System.IntPtr, Android.Runtime.JniHandleOwnership)
Java.Lang.Object.FromArray<T>(T[])
Java.Lang.Object.Clone()
Java.Lang.Object.Equals(Java.Lang.Object)
Java.Lang.Object.JavaFinalize()
Java.Lang.Object.GetHashCode()
Java.Lang.Object.Notify()
Java.Lang.Object.NotifyAll()
Java.Lang.Object.ToString()
Java.Lang.Object.Wait()
Java.Lang.Object.Wait(System.Int64)
Java.Lang.Object.Wait(System.Int64, System.Int32)
Java.Lang.Object.Java.Interop.IJavaPeerable.JniManagedPeerState
Java.Lang.Object.Class
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
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

Implements

Android.Runtime.IJavaObject
Java.Interop.IJavaPeerable
System.IDisposable
In This Article
Back to top Generated by DocFX