mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-10-09 04:05:05 +02:00
Cleanup PR for PDF/A support and add documentation (Issue #122)
This commit is contained in:
@@ -105,20 +105,6 @@ typedef enum _pdfio_mode_e // Read/write mode
|
||||
_PDFIO_MODE_WRITE // Write a PDF file
|
||||
} _pdfio_mode_t;
|
||||
|
||||
typedef enum _pdfio_pdfa_e // PDF/A version constants
|
||||
{
|
||||
_PDFIO_PDFA_NONE = 0, // Not a PDF/A file
|
||||
_PDFIO_PDFA_1A, // PDF/A-1a:2005
|
||||
_PDFIO_PDFA_1B, // PDF/A-1b:2005
|
||||
_PDFIO_PDFA_2A, // PDF/A-2a:2011
|
||||
_PDFIO_PDFA_2B, // PDF/A-2b:20011
|
||||
_PDFIO_PDFA_2U, // PDF/A-2u:2011
|
||||
_PDFIO_PDFA_3A, // PDF/A-3a:2012
|
||||
_PDFIO_PDFA_3B, // PDF/A-3b:2012
|
||||
_PDFIO_PDFA_3U, // PDF/A-3u:2012
|
||||
_PDFIO_PDFA_4, // PDF/A-4:2020
|
||||
} _pdfio_pdfa_t;
|
||||
|
||||
typedef enum _pdfio_predictor_e // PNG predictor constants
|
||||
{
|
||||
_PDFIO_PREDICTOR_NONE = 1, // No predictor (default)
|
||||
@@ -131,6 +117,21 @@ typedef enum _pdfio_predictor_e // PNG predictor constants
|
||||
_PDFIO_PREDICTOR_PNG_AUTO = 15 // PNG "auto" predictor (currently mapped to Paeth)
|
||||
} _pdfio_predictor_t;
|
||||
|
||||
typedef enum _pdfio_profile_e // PDF profile constants
|
||||
{
|
||||
_PDFIO_PROFILE_NONE = 0, // Base PDF file
|
||||
_PDFIO_PROFILE_PCLM, // PCLm (PDF raster) file
|
||||
_PDFIO_PROFILE_PDFA_1A, // PDF/A-1a:2005
|
||||
_PDFIO_PROFILE_PDFA_1B, // PDF/A-1b:2005
|
||||
_PDFIO_PROFILE_PDFA_2A, // PDF/A-2a:2011
|
||||
_PDFIO_PROFILE_PDFA_2B, // PDF/A-2b:2011
|
||||
_PDFIO_PROFILE_PDFA_2U, // PDF/A-2u:2011
|
||||
_PDFIO_PROFILE_PDFA_3A, // PDF/A-3a:2012
|
||||
_PDFIO_PROFILE_PDFA_3B, // PDF/A-3b:2012
|
||||
_PDFIO_PROFILE_PDFA_3U, // PDF/A-3u:2012
|
||||
_PDFIO_PROFILE_PDFA_4 // PDF/A-4:2020
|
||||
} _pdfio_profile_t;
|
||||
|
||||
typedef ssize_t (*_pdfio_tconsume_cb_t)(void *data, size_t bytes);
|
||||
typedef ssize_t (*_pdfio_tpeek_cb_t)(void *data, void *buffer, size_t bytes);
|
||||
|
||||
@@ -253,7 +254,7 @@ struct _pdfio_file_s // PDF file structure
|
||||
unsigned char file_id[32]; // File identifier bytes
|
||||
struct lconv *loc; // Locale data
|
||||
char *version; // Version number
|
||||
_pdfio_pdfa_t pdfa; // PDF/A conformance
|
||||
_pdfio_profile_t profile; // PDF profile, if any
|
||||
pdfio_rect_t media_box, // Default MediaBox value
|
||||
crop_box; // Default CropBox value
|
||||
_pdfio_mode_t mode; // Read/write mode
|
||||
|
Reference in New Issue
Block a user