All Projects → AndreRenaud → Pdfgen

AndreRenaud / Pdfgen

Licence: unlicense
Simple C PDF Writer/Generation library

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Pdfgen

Labelmake
Declarative style JavaScript PDF generator library. Works on Node and the browser 🖨︎
Stars: ✭ 112 (-44%)
Mutual labels:  pdf, pdf-generation, pdf-document
Pdf Lib
Create and modify PDF documents in any JavaScript environment
Stars: ✭ 3,426 (+1613%)
Mutual labels:  pdf, pdf-generation, pdf-document
Printable Mockups
Create printable UI mockups & wireframes templates
Stars: ✭ 479 (+139.5%)
Mutual labels:  pdf, pdf-generation, pdf-document
Docnet
DocNET is as fast PDF editing and reading library for modern .NET applications
Stars: ✭ 128 (-36%)
Mutual labels:  pdf, pdf-document
Etherpad Lite
Etherpad: A modern really-real-time collaborative document editor.
Stars: ✭ 11,937 (+5868.5%)
Mutual labels:  pdf, pdf-generation
Phpchrometopdf
A slim PHP wrapper around google-chrome to convert url to pdf or to take screenshots , easy to use and clean OOP interface
Stars: ✭ 127 (-36.5%)
Mutual labels:  pdf, pdf-generation
C Sharp Cheatsheet
C# Cheatsheet
Stars: ✭ 111 (-44.5%)
Mutual labels:  pdf, pdf-document
Svglib
Read SVG files and convert them to other formats.
Stars: ✭ 139 (-30.5%)
Mutual labels:  pdf, pdf-generation
Pdfcreatorandroid
Simple library to generate and view PDF in Android
Stars: ✭ 128 (-36%)
Mutual labels:  pdf, pdf-generation
Markdown Pdf
📄 Markdown to PDF converter
Stars: ✭ 2,365 (+1082.5%)
Mutual labels:  pdf, pdf-generation
Openpdf
OpenPDF is a free Java library for creating and editing PDF files with a LGPL and MPL open source license. OpenPDF is based on a fork of iText. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository. ⛺
Stars: ✭ 2,174 (+987%)
Mutual labels:  pdf, pdf-generation
Report
Report management package in PHP that aims to help you export information in a variety of formats
Stars: ✭ 125 (-37.5%)
Mutual labels:  pdf, pdf-generation
Ptext Release
pText is a library for reading, creating and manipulating PDF files in python.
Stars: ✭ 124 (-38%)
Mutual labels:  pdf, pdf-generation
Nimpdf
PDF document writer, written in nim lang
Stars: ✭ 127 (-36.5%)
Mutual labels:  pdf, pdf-generation
Reportbro Designer
Javascript plugin to visually design report layouts (for pdf and Excel) which can be created with reportbro-lib (a Python package) on the server.
Stars: ✭ 160 (-20%)
Mutual labels:  pdf, pdf-generation
Wasm Pdf
Generate PDF files with JavaScript and WASM (WebAssembly)
Stars: ✭ 163 (-18.5%)
Mutual labels:  pdf, pdf-generation
Pdfinverter
darken (or lighten) a PDF
Stars: ✭ 139 (-30.5%)
Mutual labels:  pdf, pdf-generation
Viewprinter
Live preview, edit and print functionality for View hierarchies. Supports PDF, PNG, JPEG.
Stars: ✭ 170 (-15%)
Mutual labels:  pdf, pdf-document
Pdfviewpager
Android widget that can render PDF documents stored on SD card, linked as assets, or downloaded from a remote URL.
Stars: ✭ 1,508 (+654%)
Mutual labels:  pdf, pdf-document
Play Pdf
A PDF module for the Play framework
Stars: ✭ 108 (-46%)
Mutual labels:  pdf, pdf-generation

PDFGen

PDFGen Logo

Buy Me A Coffee

Simple C PDF Creation/Generation library. All contained a single C-file with header and no external library dependencies.

Useful for embedding into other programs that require rudimentary PDF output.

Supports the following PDF features

  • Text of various fonts/sizes/colours
  • Primitive drawing elements
    • Lines
    • Rectangles
    • Filled Rectangles
    • Polygons
    • Filled Polygons
    • Bezier curves
  • Bookmarks
  • Barcodes (Code-128 & Code-39)
  • Embedded images
    • PPM
    • JPEG
    • PNG
    • BMP

Example usage

#include "pdfgen.h"

int main(void) {
    struct pdf_info info = {
        .creator = "My software",
        .producer = "My software",
        .title = "My document",
        .author = "My name",
        .subject = "My subject",
        .date = "Today"
    };
    struct pdf_doc *pdf = pdf_create(PDF_A4_WIDTH, PDF_A4_HEIGHT, &info);
    pdf_set_font(pdf, "Times-Roman");
    pdf_append_page(pdf);
    pdf_add_text(pdf, NULL, "This is text", 12, 50, 20, PDF_BLACK);
    pdf_add_line(pdf, NULL, 50, 24, 150, 24, 3, PDF_BLACK);
    pdf_save(pdf, "output.pdf");
    pdf_destroy(pdf);
    return 0;
}

License

License: Unlicense

The source here is public domain. If you find it useful, please drop me a line at [email protected].

Builds

Build status: GitHub Actions

Appveyor status: Build status

Code Coverage: Coverage Status

Coverity scan: Coverity scan

Static Analysis

This is a code base that I use to test static analysis tools. As such the build system is quite a bit more complex than should be necessary for a project of this size.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].