Some test text!

menu
Print a documentkeyboard_arrow_down

Print

PDFTron SDK supports printing. The library handles all the hard work, you simply have to tell it to show the system print dialog with a document. This can be done with Print.startPrintJob.

Here is how:

void handlePrintJob(Activity activity, boolean isRtl,
    boolean printDocument,
    boolean printDocumentWithAnnotations,
    boolean printDocumentWithAnnotationSummary) {
    int printContent = 0;
    if (printDocument) {
        printContent |= Print.PRINT_CONTENT_DOCUMENT_BIT;
    }
    if (printDocumentWithAnnotations) {
        printContent |= Print.PRINT_CONTENT_ANNOTATION_BIT;
    }
    if (printDocumentWithAnnotationSummary) {
        printContent |= Print.PRINT_CONTENT_SUMMARY_BIT;
    }
    Print.startPrintJob(activity, activity.getString(R.string.app_name), mPdfDoc, printContent, isRtl);
}

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.