https://github.com/aspose-pdf/aspose.pdf-for-c
Aspose.PDF for C++ examples project
https://github.com/aspose-pdf/aspose.pdf-for-c
Last synced: 2 months ago
JSON representation
Aspose.PDF for C++ examples project
- Host: GitHub
- URL: https://github.com/aspose-pdf/aspose.pdf-for-c
- Owner: aspose-pdf
- License: mit
- Created: 2017-10-10T11:41:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-01T10:16:59.000Z (about 3 years ago)
- Last Synced: 2025-01-25T16:11:20.828Z (4 months ago)
- Homepage: https://products.aspose.com/pdf/cpp
- Size: 12.3 MB
- Stars: 24
- Watchers: 7
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
  
# C++ API to Process & Manipulate PDF Files[Aspose.PDF for C++](https://products.aspose.com/pdf/cpp) is a native C++ library that allows to create, process, manipulate and convert PDF documents without installing Adobe Acrobat®.
Directory | Description
--------- | -----------
[Examples](Examples) | A collection of C++ examples that help you learn and explore the API features.## `Aspose::Pdf` (DOM) Features
- [Embed the font information into PDF file](https://docs.aspose.com/pdf/cpp/formatting-pdf-document/).
- Set zoom factor of PDF file.
- Set a particular page to be displayed when the PDF document is opened.
- [Convert PDF documents](https://docs.aspose.com/pdf/cpp/convert-pdf-files/) to other [supported file formats](https://docs.aspose.com/pdf/cpp/supported-file-formats/).
- Work with all the [attachments of the PDF](https://docs.aspose.com/pdf/cpp/working-with-attachments/) file.
- [Add images to PDF](https://docs.aspose.com/pdf/cpp/working-with-images/) document.
- [Change password of a PDF](https://docs.aspose.com/pdf/cpp/change-passwords-and-decrypt-pdf-document/).
- [Search a particular phrase](https://docs.aspose.com/pdf/cpp/search-and-get-text-from-pages-of-a-pdf-document/) and change its style in PDF file.## `Aspose::Pdf::Facades` Features
- Add, update, delete, import, export and extract annotations of a PDF document.
- [Add bookmarks and child bookmarks to PDF](https://docs.aspose.com/pdf/cpp/add-and-delete-bookmarks/) files.
- [Configure various access privileges for the PDF](https://docs.aspose.com/pdf/cpp/encrypt-decrypt-and-set-privileges-on-pdf-documents/).
- Extract text from all pages of a PDF file.## 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
```c++
auto extractor = MakeObject();
extractor->BindPdf(u"template.pdf");
extractor->ExtractText();auto memStream = MakeObject();
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.
```c++
auto doc = MakeObject(u"template.pdf");
doc->Save(u"output.doc", MakeObject());
```[Home](https://www.aspose.com/) | [Product Page](https://products.aspose.com/pdf/cpp) | [Docs](https://docs.aspose.com/pdf/cpp/) | [Demos](https://products.aspose.app/pdf/family) | [API Reference](https://apireference.aspose.com/pdf/cpp) | [Examples](https://github.com/aspose-pdf/Aspose.Pdf-for-C) | [Blog](https://blog.aspose.com/category/pdf/) | [Search](https://search.aspose.com/) | [Free Support](https://forum.aspose.com/c/pdf) | [Temporary License](https://purchase.aspose.com/temporary-license)