| java.lang.Object | |
| ↳ | com.pspdfkit.document.printing.DocumentPrintManager |
Manager for printing PDF documents via Android built-in print framework.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static DocumentPrintManager | get() | ||||||||||
| boolean |
hasPrintPermission(PdfDocument document)
Test if document has either
PRINT_HIGH_QUALITY or PRINTING flags set. | ||||||||||
| boolean |
isPrintingAvailable(PdfActivityConfiguration configuration)
Test if printing is available on current device and is enabled in
PdfActivityConfiguration. | ||||||||||
| boolean |
isPrintingEnabled(PdfActivityConfiguration configuration, PdfDocument document)
Test if printing is enabled.
| ||||||||||
| void |
print(Context context, PdfDocument document)
Print specified document.
| ||||||||||
| void |
print(Context context, PdfDocument document, PdfProcessorTask processorTask)
Print specified document using provided sharing options.
| ||||||||||
| void |
print(Context context, PdfDocument document, PrintOptions printOptions)
Print specified document using provided sharing options.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Test if document has either PRINT_HIGH_QUALITY or PRINTING flags set.
| document | Used to check if document has print permissions. |
|---|
Test if printing is available on current device and is enabled in PdfActivityConfiguration.
| configuration | Used to check if printing is enabled. |
|---|
Test if printing is enabled.
| configuration | Used to check if printing is enabled. |
|---|---|
| document | Used to check if document has print permissions. |
Print specified document.
| context | The context to use. |
|---|---|
| document | Document for printing. |
Print specified document using provided sharing options.
| context | The context to use. |
|---|---|
| document | Document for printing. |
| processorTask | Processing task for processing document before printing. |
Print specified document using provided sharing options.
| context | The context to use. |
|---|---|
| document | Document for printing. |
| printOptions | Options for processing document before printing. |