diff options
author | ryoon <ryoon@pkgsrc.org> | 2018-07-15 23:37:37 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2018-07-15 23:37:37 +0000 |
commit | e63ca979d859675b77fe473f62cb1b1659ad59c4 (patch) | |
tree | d6251acf357249c19246951e41cb37cefb7295df /print/qpdf | |
parent | 4209e949f7263a3f0822ca38963e1ceb13fd8352 (diff) | |
download | pkgsrc-e63ca979d859675b77fe473f62cb1b1659ad59c4.tar.gz |
Update to 8.1.0
Changelog:
8.1.0: June 23, 2018
Usability Improvements
When splitting files, qpdf detects fonts and images that the document metadata claims are referenced from a page but are not actually referenced and omits them from the output file. This change can cause a significant reduction in the size of split PDF files for files created by some software packages. Prior versions of qpdf would believe the document metadata and sometimes include all the images from all the other pages even though the pages were no longer present. In the unlikely event that the old behavior should be desired, it can be enabled by specifying --preserve-unreferenced-resources. For additional details, please see Section 3.6, “Advanced Transformation Options”.
When merging multiple PDF files, qpdf no longer leaves all the files open. This makes it possible to merge numbers of files that may exceed the operating system's limit for the maximum number of open files.
The --rotate option's syntax has been extended to make the page range optional. If you specify --rotate=angle without specifying a page range, the rotation will be applied to all pages. This can be especially useful for adjusting a PDF created from a multi-page document that was scanned upside down.
When merging multiple files, the --verbose option now prints information about each file as it operates on that file.
When the --progress option is specified, qpdf will print a running indicator of its best guess at how far through the writing process it is. Note that, as with all progress meters, it's an approximation. This option is implemented in a way that makes it useful for software that uses the qpdf library; see API Enhancements below.
Bug Fixes
Properly decrypt files that use revision 3 of the standard security handler but use 40 bit keys (even though revision 3 supports 128-bit keys).
Limit depth of nested data structures to prevent crashes from certain types of malformed (malicious) PDFs.
In “newline before endstream” mode, insert the required extra newline before the endstream at the end of object streams. This one case was previously omitted.
API Enhancements
The first round of higher level “helper” interfaces has been introduced. These are designed to provide a more convenient way of interacting with certain document features than using QPDFObjectHandle directly. For details on helpers, see Section 6.3, “Helper Classes”. Specific additional interfaces are described below.
Add two new document helper classes: QPDFPageDocumentHelper for working with pages, and QPDFAcroFormDocumentHelper for working with interactive forms. No old methods have been removed, but QPDFPageDocumentHelper is now the preferred way to perform operations on pages rather than calling the old methods in QPDFObjectHandle and QPDF directly. Comments in the header files direct you to the new interfaces. Please see the header files and ChangeLog for additional details.
Add three new object helper class: QPDFPageObjectHelper for pages, QPDFFormFieldObjectHelper for interactive form fields, and QPDFAnnotationObjectHelper for annotations. All three classes are fairly sparse at the moment, but they have some useful, basic functionality.
A new example program examples/pdf-set-form-values.cc has been added that illustrates use of the new document and object helpers.
The method QPDFWriter::registerProgressReporter has been added. This method allows you to register a function that is called by QPDFWriter to update your idea of the percentage it thinks it is through writing its output. Client programs can use this to implement reasonably accurate progress meters. The qpdf command line tool uses this to implement its --progress option.
New methods QPDFObjectHandle::newUnicodeString and QPDFObject::unparseBinary have been added to allow for more convenient creation of strings that are explicitly encoded using big-endian UTF-16. This is useful for creating strings that appear outside of content streams, such as labels, form fields, outlines, document metadata, etc.
A new class QPDFObjectHandle::Rectangle has been added to ease working with PDF rectangles, which are just arrays of four numeric values.
Diffstat (limited to 'print/qpdf')
-rw-r--r-- | print/qpdf/Makefile | 4 | ||||
-rw-r--r-- | print/qpdf/PLIST | 10 | ||||
-rw-r--r-- | print/qpdf/buildlink3.mk | 4 | ||||
-rw-r--r-- | print/qpdf/distinfo | 10 |
4 files changed, 18 insertions, 10 deletions
diff --git a/print/qpdf/Makefile b/print/qpdf/Makefile index 3abdbb0f0da..1d17f8341e2 100644 --- a/print/qpdf/Makefile +++ b/print/qpdf/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.20 2018/04/03 03:06:09 ryoon Exp $ +# $NetBSD: Makefile,v 1.21 2018/07/15 23:37:37 ryoon Exp $ -DISTNAME= qpdf-8.0.2 +DISTNAME= qpdf-8.1.0 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qpdf/} diff --git a/print/qpdf/PLIST b/print/qpdf/PLIST index aaf42091004..738fea23aa8 100644 --- a/print/qpdf/PLIST +++ b/print/qpdf/PLIST @@ -1,9 +1,10 @@ -@comment $NetBSD: PLIST,v 1.5 2018/02/27 12:37:20 ryoon Exp $ +@comment $NetBSD: PLIST,v 1.6 2018/07/15 23:37:37 ryoon Exp $ bin/fix-qdf bin/qpdf bin/zlib-flate include/qpdf/Buffer.hh include/qpdf/BufferInputSource.hh +include/qpdf/ClosedFileInputSource.hh include/qpdf/Constants.h include/qpdf/DLL.h include/qpdf/FileInputSource.hh @@ -20,10 +21,17 @@ include/qpdf/Pl_RunLength.hh include/qpdf/Pl_StdioFile.hh include/qpdf/PointerHolder.hh include/qpdf/QPDF.hh +include/qpdf/QPDFAcroFormDocumentHelper.hh +include/qpdf/QPDFAnnotationObjectHelper.hh +include/qpdf/QPDFDocumentHelper.hh include/qpdf/QPDFExc.hh +include/qpdf/QPDFFormFieldObjectHelper.hh include/qpdf/QPDFObjGen.hh include/qpdf/QPDFObject.hh include/qpdf/QPDFObjectHandle.hh +include/qpdf/QPDFObjectHelper.hh +include/qpdf/QPDFPageDocumentHelper.hh +include/qpdf/QPDFPageObjectHelper.hh include/qpdf/QPDFTokenizer.hh include/qpdf/QPDFWriter.hh include/qpdf/QPDFXRefEntry.hh diff --git a/print/qpdf/buildlink3.mk b/print/qpdf/buildlink3.mk index 3f0dbcf0794..9daf3412e4c 100644 --- a/print/qpdf/buildlink3.mk +++ b/print/qpdf/buildlink3.mk @@ -1,11 +1,11 @@ -# $NetBSD: buildlink3.mk,v 1.2 2018/02/27 12:37:20 ryoon Exp $ +# $NetBSD: buildlink3.mk,v 1.3 2018/07/15 23:37:37 ryoon Exp $ BUILDLINK_TREE+= qpdf .if !defined(QPDF_BUILDLINK3_MK) QPDF_BUILDLINK3_MK:= -BUILDLINK_API_DEPENDS.qpdf+= qpdf>=8.0.0 +BUILDLINK_API_DEPENDS.qpdf+= qpdf>=8.1.0 BUILDLINK_PKGSRCDIR.qpdf?= ../../print/qpdf .endif # QPDF_BUILDLINK3_MK diff --git a/print/qpdf/distinfo b/print/qpdf/distinfo index 0e998644923..cdc3735972f 100644 --- a/print/qpdf/distinfo +++ b/print/qpdf/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.17 2018/04/03 03:06:09 ryoon Exp $ +$NetBSD: distinfo,v 1.18 2018/07/15 23:37:37 ryoon Exp $ -SHA1 (qpdf-8.0.2.tar.gz) = ffafee34e424fe9da32f0d1874c3eaeb65f529c1 -RMD160 (qpdf-8.0.2.tar.gz) = 524a57fc4a60cadd6444544720e132a0e63deb1f -SHA512 (qpdf-8.0.2.tar.gz) = f6d062f011d87f3f1df44e96e5dec0cd4b1b5f800dc6c088bf1313b2c96922d2f3c1b6eb1109a6ef00c558144b85dc20aeb85f937b73a3b594633aa67104f5e3 -Size (qpdf-8.0.2.tar.gz) = 7952979 bytes +SHA1 (qpdf-8.1.0.tar.gz) = f819707c346b21d90194cf9cec95e370f2807f20 +RMD160 (qpdf-8.1.0.tar.gz) = 8001ee0003dd8534c071719aa9fd19823fa42cd5 +SHA512 (qpdf-8.1.0.tar.gz) = 1831bcaaed87dae268db5d61805d1483ec5c101f6ce594be660664c119597ae67cf011c2b50092964d785a814d5f6c780935127a89401fe37a1026ae4d3af15c +Size (qpdf-8.1.0.tar.gz) = 8243624 bytes SHA1 (patch-libqpdf.pc.in) = f592899487bb958a01931afbe4ddf3c749ea103e SHA1 (patch-make_libtool.mk) = 8622d6a446da284269102dde38bf14271363dfdc |