Some test text!

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:

Xamarin.Android:

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);
}

Xamarin.iOS:

void handlePrintJob()
{
    pdftron.PDF.PTPrint print = new PTPrint();
    print.PrepareDocToPrint(mPdfDoc, new MyPrintDelegate(this.View), btnPrint as NSObject);
}

where MyPrintDelegate is:

public class MyPrintDelegate : pdftron.PDF.PTPrintDelegate
{
    private UIView _view;
    public MyPrintDelegate(UIView view) 
    {
        _view = view;
    }
    public override void PreparedToPrint(string docFilePath, NSObject userData)
    {
        var myPrint = new pdftron.PDF.PTPrint();
        myPrint.PrintDoc(docFilePath, CGRect.Empty, _view, docFilePath, true, null);
    }
}

Get the answers you need: Support