Some test text!

menu
search
Print a documentkeyboard_arrow_down

Print

PDFTron SDK supports printing.

Print a document

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, bool isRtl,
    bool printDocument,
    bool printDocumentWithAnnotations,
    bool printDocumentWithAnnotationSummary)
{
    var printContent = 0;
    if (printDocument)
    {
        printContent |= Print.PrintContent.DocumentBit;
    }
    if (printDocumentWithAnnotations)
    {
        printContent |= Print.PrintContent.AnnotationBit;
    }
    if (printDocumentWithAnnotationSummary)
    {
        printContent |= Print.PrintContent.SummaryBit;
    }
    Print.StartPrintJob(activity, activity.GetString(Resource.String.app_name), mPdfDoc, (int)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.

PDFTron Receives USD$71 Million Growth Investment Led By Silversmith Capital Partners

Learn more
close