https://github.com/feliwir/charta-pdf
A modern C++ library for processing PDF documents.
https://github.com/feliwir/charta-pdf
cpp17 pdf pdf-files pdf-generation
Last synced: 8 months ago
JSON representation
A modern C++ library for processing PDF documents.
- Host: GitHub
- URL: https://github.com/feliwir/charta-pdf
- Owner: feliwir
- License: mit
- Created: 2021-06-06T08:41:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-23T05:52:54.000Z (over 4 years ago)
- Last Synced: 2024-12-29T08:20:15.602Z (10 months ago)
- Topics: cpp17, pdf, pdf-files, pdf-generation
- Language: C++
- Homepage:
- Size: 166 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# charta-pdf
A modern C++ 17 library for processing **PDF** documents.
## Build status
[](https://github.com/feliwir/charta-pdf/actions/workflows/ci.yml)
[](https://codecov.io/gh/feliwir/charta-pdf)
[](https://opensource.org/licenses/MIT)
## ExampleHow to write an PDF file with metainformation and a single page:
```c++
#include
using namespace charta::pdf;void savePdf(std::string_view filepath)
{
Document doc;
// Set the meta information
Info info;
info.Author = "Stephan Vedder";
doc.setInfo(info);
// Add a page
Page page(presets::A4Paper_Portrait);
doc.addPage(page);
// Write it out
doc.saveToFile(filepath);
}
```