From 316b0ad55950f92c0825cb6e522bf4b491fb70fd Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 15 May 2022 22:52:53 -0400 Subject: [PATCH] Add pdfioFileCreateTemporary function (Issue #29) --- CHANGES.md | 6 + Makefile | 2 +- doc/pdfio.3 | 16 +- doc/pdfio.html | 36 ++++- pdfio-file.c | 261 ++++++++++++++++++++++++++------ pdfio.h | 3 +- pdfio.xcodeproj/project.pbxproj | 4 +- testpdfio.c | 13 ++ 8 files changed, 287 insertions(+), 54 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 91deb8a..98b42d1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,12 @@ Changes in PDFio ================ +v1.1.0 (Month DD, YYYY) +----------------------- + +- Added `pdfioFileCreateTemporary` function (Issue #29) + + v1.0.1 (March 2, 2022) ---------------------- diff --git a/Makefile b/Makefile index 2eb9cb3..481adcc 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ DSONAME = LDFLAGS = LIBS = -lm -lz RANLIB = ranlib -VERSION = 1.0.1 +VERSION = 1.1 prefix = /usr/local diff --git a/doc/pdfio.3 b/doc/pdfio.3 index e3ed1d1..87e25e7 100644 --- a/doc/pdfio.3 +++ b/doc/pdfio.3 @@ -1,4 +1,4 @@ -.TH pdfio 3 "pdf read/write library" "2022-03-02" "pdf read/write library" +.TH pdfio 3 "pdf read/write library" "2022-05-15" "pdf read/write library" .SH NAME pdfio \- pdf read/write library .SH Introduction @@ -2302,6 +2302,20 @@ pdfio_stream_t * pdfioFileCreatePage ( pdfio_dict_t *dict ); .fi +.SS pdfioFileCreateTemporary + +.PP +.nf +pdfio_file_t * pdfioFileCreateTemporary ( + char *buffer, + size_t bufsize, + const char *version, + pdfio_rect_t *media_box, + pdfio_rect_t *crop_box, + pdfio_error_cb_t error_cb, + void *error_data +); +.fi .SS pdfioFileFindObj Find an object using its object number. .PP diff --git a/doc/pdfio.html b/doc/pdfio.html index 1a47a98..db000b9 100644 --- a/doc/pdfio.html +++ b/doc/pdfio.html @@ -1,13 +1,13 @@ -PDFio Programming Manual v1.0.1 +PDFio Programming Manual v1.1 - +