Package com.pspdfkit.document.printing
Class DocumentPrintManager
-
- All Implemented Interfaces:
public class DocumentPrintManager
Manager for printing PDF documents via Android built-in print framework.
-
-
Method Summary
Modifier and Type Method Description static DocumentPrintManager
get()
boolean
isPrintingAvailable(@NonNull() PdfActivityConfiguration configuration)
Test if printing is available on current device and is enabled in . boolean
isPrintingEnabled(@NonNull() PdfActivityConfiguration configuration, @NonNull() PdfDocument document)
Test if printing is enabled. boolean
hasPrintPermission(@NonNull() PdfDocument document)
Test if document has either PRINT_HIGH_QUALITY or PRINTING flags set. void
print(@NonNull() Context context, @NonNull() PdfDocument document)
Print specified document. void
print(@NonNull() Context context, @NonNull() PdfDocument document, @NonNull() PrintOptions printOptions)
Print specified document using provided sharing options. void
print(@NonNull() Context context, @NonNull() PdfDocument document, @NonNull() PdfProcessorTask processorTask)
Print specified document using provided sharing options. -
-
Method Detail
-
get
static DocumentPrintManager get()
-
isPrintingAvailable
boolean isPrintingAvailable(@NonNull() PdfActivityConfiguration configuration)
Test if printing is available on current device and is enabled in .
- Parameters:
configuration
- Used to check if printing is enabled.
-
isPrintingEnabled
boolean isPrintingEnabled(@NonNull() PdfActivityConfiguration configuration, @NonNull() PdfDocument document)
Test if printing is enabled.
- Parameters:
configuration
- Used to check if printing is enabled.document
- Used to check if document has print permissions.
-
hasPrintPermission
boolean hasPrintPermission(@NonNull() PdfDocument document)
Test if document has either PRINT_HIGH_QUALITY or PRINTING flags set.
- Parameters:
document
- Used to check if document has print permissions.
-
print
void print(@NonNull() Context context, @NonNull() PdfDocument document)
Print specified document.
- Parameters:
context
- The context to use.document
- Document for printing.
-
print
void print(@NonNull() Context context, @NonNull() PdfDocument document, @NonNull() PrintOptions printOptions)
Print specified document using provided sharing options.
- Parameters:
context
- The context to use.document
- Document for printing.printOptions
- Options for processing document before printing.
-
print
void print(@NonNull() Context context, @NonNull() PdfDocument document, @NonNull() PdfProcessorTask processorTask)
Print specified document using provided sharing options.
- Parameters:
context
- The context to use.document
- Document for printing.processorTask
- Processing task for processing document before printing.
-
-
-
-