<commit_before>/***
 * Simple engine for creating PDF files.
 * It supports text, shapes, images etc...
 * Capable of handling millions of objects without too much performance penalty
 *
 * Licensed under a 3-Clause BSD license. See LICENSE file for full details
 */

#ifndef PDF_GEN_H
#define PDF_GEN_H

#include <stdint.h>

/**
 * @defgroup subsystem Simple PDF Generation
 * Allows for quick generation of simple PDF documents.
 * This is useful for producing easily printed output from C code, where advanced
 * formatting is not required
 *
 * Note: All coordinates/sizes are in points (1/72 of an inch).
 * All coordinates are based on 0,0 being the bottom left of the page.
 * All colours are specified as a packed 32-bit value - see @ref PDF_RGB.
 * All text strings must be 7-bit ASCII only, not UTF-8 or other wide
 * 	character support.
 *
 * @par PDF library example:
 * @code
#include "pdfgen.h"
 ...
struct pdf_info info = {<commit_msg>Corrected license in header file<commit_after>/**
 * Simple engine for creating PDF files.
 * It supports text, shapes, images etc...
 * Capable of handling millions of objects without too much performance 
 * penalty.
 * Public domain license - no warrenty implied; use at your own risk.
 */

#ifndef PDF_GEN_H
#define PDF_GEN_H

#include <stdint.h>

/**
 * @defgroup subsystem Simple PDF Generation
 * Allows for quick generation of simple PDF documents.
 * This is useful for producing easily printed output from C code, where advanced
 * formatting is not required
 *
 * Note: All coordinates/sizes are in points (1/72 of an inch).
 * All coordinates are based on 0,0 being the bottom left of the page.
 * All colours are specified as a packed 32-bit value - see @ref PDF_RGB.
 * All text strings must be 7-bit ASCII only, not UTF-8 or other wide
 * 	character support.
 *
 * @par PDF library example:
 * @code
#include "pdfgen.h"
 ...
struct pdf_info info = {
{'fraction_non_alphanumeric': 0.07889237199582028, 'fraction_numerical': 0.009926854754440962, 'mean_word_length': 3.6144578313253013, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '689795', 'n_tokens_mistral': 548, 'n_tokens_neox': 525, 'n_words': 267}