C++ PDF Parser API

Create, Manipulate and Convert PDF files within C++ applications without any Adobe Acrobat dependencies.

  Download Free Trial
Aspose.PDF for C++

Aspose.PDF for C++

 
  

Aspose.PDF for C++ is a native C++ API that enables the developers to add PDF processing capabilities to their C++ applications. API can be used to build any type of 32-bit and 64-bit C++ application. API supports to create, convert and manipulate PDF documents without using Adobe Acrobat.

Aspose.PDF for C++ API allows to perform a wide range of document processing tasks such as form processing, text & page manipulation, management of annotations, get and set metadata information, add or remove bookmarks and watermarks, attachments, custom font handling and much more.

  

Advanced C++ PDF Processing Library Features

 

 

Read, write & manipulate PDF documents

 

Create forms & manage form fields

 

Add, replace or remove text and images

 

Set page margin, size, orientation, transition & zoom factor

 

Custom font handling

 

Add, update, delete attachments and annotations

 

Add or remove bookmarks

 

Add & remove watermarks

 

Split, concatenate, extract or insert pages

 

Transform pages to image

 

Determine & set metadata of PDF documents

 

Set document’s information e.g Author, Subject, Title

Manipulate PDF Documents On the Fly

Aspose.PDF for C++ is a good choice if you need to edit or manipulate existing PDF documents in your applications. This library allows you to extract pages, insert pages at a particular location in a PDF file or create N-up's (number of pages over single page) and booklets. You may also use the C++ PDF Library to add, update & delete images, attachments, bookmarks, annotations, hyperlinks, watermarks and form fields from an existing PDF.

Split & Merge PDF Files

Aspose.PDF for C++ via its API, allows to split one PDF file into two or more PDF documents. You may also use it to concatenate two or more PDF files in a single document or append PDF pages as per application requirements.

Convert PDF to JPG & Other Image Formats

Aspose.PDF for C++ allows you to transform each page of a PDF file into conventional image formats such as BMP, JPG & PNG, with highest possible fidelity. 

Save PDF pages in JPG format - C++

// instantiate PdfConverter
SharedPtr converter = MakeObject();
// load an existing PDF document
converter->BindPdf(dir + L"template.pdf");
// convert PDF pages to images
converter->DoConvert();
int32_t imageCount = 1;
while (converter->HasNextImage()) {
 // save each page in JPG format
 converter->GetNextImage(dir + imageCount + L".jpg", System::Drawing::Imaging::ImageFormat::get_Jpeg(), 800, 1000);
 imageCount++;
}

Form Field Processing

Aspose.PDF for C++ offers the capabilities to add form fields to the PDF document, that is; you can dynamically create form fields in PDF documents. Just order the position of the form fields as per a table or by custom positioning, and the form fields will be placed in the exact position every time.

Format PDF Contents on Most Granular Level

Aspose.PDF for C++ allows to apply text alignment, place contents in right-to-left, create left hanging text paragraphs, preserve white space in text and set custom tab stops.

Along with the ability to specify horizontal alignment of the text, you can also specify vertical alignment for text segments such as baseline or topline. The library also allows to set text foreground & background colors.

  

Support and Learning Resources

 
  

Aspose.PDF offers individual PDF APIs for other popular development environments as listed below: