Some test text!

menu
Create from a templatekeyboard_arrow_down

Create PDF from template in Android

To create a new document from an existing PDF template.

// use an existing PDF as a template for a new document
PDFDoc doc = new PDFDoc(filename);

// optionally perform some document processing using read write operations 
// found under 'Editing Page Content' or 'Page Manipulation'

// save the document to the filesystem
doc.save(output_filename, SDFDoc.SaveOptions.LINEARIZED, null);

// optionally save the document to a memory buffer
byte[] buf = doc.save(SDFDoc.SaveMode.LINEARIZED, null);

Read & write a PDF file from/to memory buffer
Full source code which illustrates how to read/write a PDF document from/to memory buffer. This is useful for applications that work with dynamic PDF documents that don't need to be saved/read from a disk.

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.