Some test text!

Create a blank PDFkeyboard_arrow_down

Create a new blank PDF document in Ruby

To create a new document as a blank PDF.

# use the empty constructor to create a blank PDF
doc =

# 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::E_linearized)

# optionally save the document to a memory buffer
buffer = doc.Save(SDFDoc::E_linearized)

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


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.

Join our live demo to learn about use cases & capabilities for WebViewer

Learn more