Aspose.PDF.Cpp 23.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Aspose.PDF.Cpp --version 23.1.0
NuGet\Install-Package Aspose.PDF.Cpp -Version 23.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspose.PDF.Cpp" Version="23.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.PDF.Cpp --version 23.1.0
#r "nuget: Aspose.PDF.Cpp, 23.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Aspose.PDF.Cpp as a Cake Addin
#addin nuget:?package=Aspose.PDF.Cpp&version=23.1.0

// Install Aspose.PDF.Cpp as a Cake Tool
#tool nuget:?package=Aspose.PDF.Cpp&version=23.1.0

Description

Aspose.PDF for C++ is a native C++ library that enables the developers to add PDF handling capabilities to their C++ applications.

Aspose.PDF for C++ API can be used to build C++ applications which are capable of reading, writing, rendering, printing, and converting PDF documents (PDF, PDF/A). You can also work with attachments, images, security, signatures, text, and tables.

Aspose.PDF for C++ allows you to extract text from all pages of a PDF document, set privileges on a PDF file, work with bookmarks and annotations. It also gives you vast control over customizing the PDF display properties, fonts, zoom fact, and content formatting. Text search feature is also available. You can convert PDF documents to the DOC, DOCX, and SVG formats by simply calling the designated C++ methods.

Aspose.PDF for C++ performs equally well at the client-end and server-side. It can be used in the development environment that supports C++ but explicitly supports MS Visual Studio 2015 or later. Aspose.PDF for C++ can be installed manually by downloading its ZIP package or it (Aspose.PDF.CPP) can be added via NuGet Package Manager. Support for Qt framework is also available.

Usage

The types from this package can be used in the client's code. Please make sure to use proper smart pointer wrappers for class-like types. For more information, please refer to the product documentation.

#include "Aspose.PDF.Cpp/Document.h"
#include "Aspose.PDF.Cpp/Page.h"
#include "Aspose.PDF.Cpp/PageCollection.h"
#include "Aspose.PDF.Cpp/Generator/Paragraphs.h"
#include "Aspose.PDF.Cpp/Text/TextFragment.h"
#include "Aspose.PDF.Cpp/SaveFormat.h"

using namespace System;
using namespace Aspose::Pdf;

void pdf2docx(String inputFilename, String outputFilename)
{
    auto document = MakeObject<Document>(inputFilename);
    document->Save(outputFilename, SaveFormat::DocX);
}

bool create_pdf(String filename)
{
    try
    {
        auto document = MakeObject<Document>();

        auto page = document->get_Pages()->Add();
        auto paragraps = page->get_Paragraphs();
        paragraps->Add(MakeObject<Aspose::Pdf::Text::TextFragment>(u"Hello World!"));
        paragraps->Add(MakeObject<Aspose::Pdf::Text::TextFragment>(u"This example is created by Aspose.Pdf for C++."));

        page = document->get_Pages()->Add();
        paragraps = page->get_Paragraphs();
        paragraps->Add(MakeObject<Aspose::Pdf::Text::TextFragment>(u"Second page."));
        paragraps->Add(MakeObject<Aspose::Pdf::Text::TextFragment>(u"This example is created by Aspose.Pdf for C++."));
        document->Save(filename);
    }
    catch (const Exception& ex)
    {
        std::cout << ex->get_Message() << std::endl;
        return false;
    }
    return true;
}

int main()
{
    if (create_pdf(u"hello.pdf"))
        pdf2docx(u"hello.pdf", u"hello.docx");
}

Resources

Product Compatible and additional computed target framework versions.
native native is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Aspose.PDF.Cpp:

Package Downloads
Aspose.Total.Cpp

Aspose.Total for C++ is a complete package of C++ libraries specifically designed to create, manipulate and convert popular file formats from Microsoft Office and PDF without requiring Office or Adobe Automation. C++ API package also includes a specialized library to generate and recognize barcode labels from images with advanced features to customize the barcode generation and recognition process.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.4.0 757 4/22/2024
24.3.0 2,013 3/18/2024
24.2.1 1,776 2/23/2024
24.1.0 6,668 1/20/2024
23.12.0 2,319 12/20/2023
23.11.0 2,840 11/21/2023
23.10.0 2,814 10/20/2023
23.9.0 3,012 9/20/2023
23.8.0 3,821 8/17/2023
23.7.0 4,013 7/25/2023
23.6.0 3,878 6/20/2023
23.5.0 5,897 5/22/2023
23.4.0 4,648 4/17/2023
23.3.0 9,125 3/20/2023
23.2.0 6,414 2/20/2023
23.1.0 5,462 1/23/2023
22.12.1 8,685 12/28/2022
22.11.0 5,957 11/22/2022
22.10.1 7,690 10/21/2022
22.9.0 5,673 9/15/2022
22.8.0 6,881 8/17/2022
22.7.0 7,358 7/22/2022
22.6.0 7,511 6/21/2022
22.5.0 6,747 5/24/2022
22.4.0 7,850 4/25/2022
22.3.0 7,491 3/21/2022
22.2.0 7,401 2/21/2022
22.1.0 2,502 1/20/2022
21.12.0 5,336 12/20/2021
21.11.0 10,286 11/17/2021
21.10.0 7,416 10/18/2021
21.8.0 10,466 8/13/2021
21.7.0 5,139 7/16/2021
21.6.0 6,316 6/17/2021
21.5.1 1,394 5/18/2021
21.5.0 3,284 5/18/2021
21.4.0 9,039 4/15/2021
21.3.0 5,497 3/16/2021
21.2.0 6,978 2/16/2021
21.1.0 6,802 1/22/2021
20.12.0 6,726 12/19/2020
20.11.0 5,940 11/18/2020
20.10.0 4,992 10/21/2020
20.9.0 4,967 9/21/2020
20.8.0 5,104 8/24/2020
20.7.2 4,331 8/4/2020
20.7.1 1,611 8/4/2020
20.7.0 7,698 7/17/2020
20.6.0 8,387 6/18/2020
20.5.0 5,413 5/21/2020
20.4.0 7,246 4/22/2020
20.3.0 5,650 3/16/2020
20.2.0 8,270 2/17/2020
20.1.0 1,934 1/20/2020
19.12.1 2,413 12/17/2019
19.12.0 1,920 12/16/2019
19.11.0 4,837 11/19/2019
19.10.0 1,392 10/18/2019
19.9.0 1,588 9/13/2019
19.8.0 1,672 8/14/2019
19.7.0 1,614 7/14/2019
19.6.0 1,542 6/23/2019
19.5.0 1,641 5/15/2019
19.4.0 1,694 4/14/2019
19.3.0 1,582 3/15/2019
19.2.0 1,636 2/22/2019
19.1.0 1,672 1/30/2019
18.12.0 1,620 12/27/2018
18.11.0 23,520 11/30/2018
18.4.0 2,128 4/28/2018
18.3.0 1,842 3/28/2018
18.2.1 2,611 2/26/2018
18.2.0 1,879 2/26/2018