Skip to content

aspose-pdf/Aspose.PDF-for-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nuget Nuget GitHub

C++ API to Process & Manipulate PDF Files

Aspose.PDF for C++ is a native C++ library that allows to create, process, manipulate and convert PDF documents without installing Adobe Acrobat®.

Directory Description
Examples A collection of C++ examples that help you learn and explore the API features.

Aspose::Pdf (DOM) Features

Aspose::Pdf::Facades Features

Read & Write PDF

Fixed Layout: PDF, PDF/A

Save PDF Documents As

Microsoft Word: DOC, DOCX
Images: JPEG, PNG, BMP, SVG
Other: TeX.

Get Started with Aspose.PDF for C++

Are you ready to give Aspose.PDF for C++ a try? Simply execute Install-Package Aspose.PDF.Cpp from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.PDF for C++ and want to upgrade the version, please execute Update-Package Aspose.PDF.Cpp to get the latest version.

Extract Text from a PDF Document

auto extractor = MakeObject<Facades::PdfExtractor>();
extractor->BindPdf(u"template.pdf");
extractor->ExtractText();

auto memStream = MakeObject<IO::MemoryStream>();
extractor->GetText(memStream);
auto unicode = System::Text::Encoding::get_Unicode();

String allText = unicode->GetString(memStream->ToArray());
Console::WriteLine(allText);

Convert PDF to DOC Format

One of the most popular feature of Aspose.PDF for C++ is to convert PDF documents to other formats without needing to understand the underlying structure of the resultant format. Give the following snippet a try with your own sample.

auto doc = MakeObject<Document>(u"template.pdf");
doc->Save(u"output.doc", MakeObject<DocSaveOptions>());

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License