C++ PDF Parser API
Create, manipulate and convert PDF files within C++ applications without requiring Adobe Acrobat.
Download Free TrialAspose.PDF for C++ API allows to perform a range of document processing tasks such as form processing, get and set metadata information, text & page manipulation, management of annotations, add or remove bookmarks and watermarks, attachments, custom font handling and much more.
At a
Glance
Supported File
Formats
Platform
Independence
Advanced C++ PDF Library Features
Read, write & manipulate documents
Add, replace or remove text and images
Set page margin, size, orientation, transition & zoom factor
Add, update, delete attachments and annotations
Add or remove bookmarks
Add & remove watermarks
Split, merge, extract or insert pages
Transform PDF pages to images
Determine & set metadata of documents
Set document’s information e.g Author, Subject, Title
Convert PDF to Word document formats
Convert PDF to SVG file format
Manipulate PDF Files On the Fly
Aspose.PDF for C++ is a good choice for modifying or manipulating existing PDF files within your applications. This library allows you to open or load PDF file, extract pages, insert pages at a particular location in the file or create N-up's (number of pages over single page) and booklets. You may also use the API 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 splitting one PDF file into two or more PDF documents. You may also use it to concatenate two or more 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 render and transform each page of a PDF file into conventional image formats such as BMP, JPG & PNG, with the highest possible fidelity. Other than images, one can easily save PDF to DOC and DOCX formats.
Save PDF pages in JPG format - C++
// instantiate PdfConverter
auto converter = MakeObject<PdfConverter>();
// load an existing PDF document
converter->BindPdf(dir + u"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 + u".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 generate 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 horizontal text alignment like place content in right-to-left, preserve white space in the text, create left hanging text paragraphs and set custom tab stops.
Along with horizontal alignment of the text, one can also adjust the vertical alignment for text segments such as baseline or topline as well as more formatting features like setting text foreground & background colors.
Tags: Aspose, Document & Office, C++, Aspose.PDF for C++