Subject: CVS commit: pkgsrc/print/qpdf
From: Ryo ONODERA
Date: 2022-01-04 11:53:05
Message id: 20220104105305.5BDC0FAEC@cvs.NetBSD.org

Log Message:
qpdf: Update to 10.5.0

Changelog:
10.5.0: December 21, 2021
      + Packaging changes

          o Pre-built documentation is no longer distributed with the source
            distribution. The AppImage and Windows binary distributions still
            contain embedded documentation, and a separate doc distribution
            file is available from the qpdf release site. Documentation is now
            available at https://qpdf.readthedocs.io for every major/minor
            version starting with version 10.5. Please see Packaging
            Documentation for details on how packagers should handle
            documentation.

          o The documentation sources have been switched from docbook to
            reStructuredText processed with Sphinx. This will break previous
            documentation links. A redirect is in place on the main website. A
            top-to-bottom review of the documentation is planned for an
            upcoming release.

      + Library Enhancements

          o Since qpdf version 8, using object accessor methods on an instance
            of QPDFObjectHandle may create warnings if the object is not of the
            expected type. These warnings now have an error code of
            qpdf_e_object instead of qpdf_e_damaged_pdf. Also, comments have
            been added to QPDFObjectHandle.hh to explain in more detail what
            the behavior is. See Object Accessor Methods for a more in-depth
            discussion.

          o Add Pl_Buffer::getMallocBuffer() to initialize a buffer allocated
            with malloc() for better cross-language interoperability.

      + C API Enhancements

          o Many thanks to M. Holger whose contributions have heavily
            influenced these C API enhancements. His several suggestions, pull
            requests, questions, and critical reading of documentation and
            comments have resulted in significant usability improvements to the
            C API.

          o Overhaul error handling for the object handle functions C API. Some
            rare error conditions that would previously have caused a crash are
            now trapped and reported, and the functions that generate them
            return fallback values. See comments in the ERROR HANDLING section
            of include/qpdf/qpdf-c.h for details. In particular, exceptions
            thrown by the underlying C++ code when calling object accessors are
            caught and converted into errors. The errors can be checked by
            calling qpdf_has_error. Use qpdf_silence_errors to prevent the
            error from being written to stderr.

          o Add qpdf_get_last_string_length to the C API to get the length of
            the last string that was returned. This is needed to handle strings
            that contain embedded null characters.

          o Add qpdf_oh_is_initialized and qpdf_oh_new_uninitialized to the C
            API to make it possible to work with uninitialized objects.

          o Add qpdf_oh_new_object to the C API. This allows you to clone an
            object handle.

          o Add qpdf_get_object_by_id, qpdf_make_indirect_object, and
            qpdf_replace_object, exposing the corresponding methods in QPDF and
            QPDFObjectHandle.

          o Add several functions for working with pages. See PAGE FUNCTIONS in
            include/qpdf/qpdf-c.h for details.

          o Add several functions for working with streams. See STREAM
            FUNCTIONS in include/qpdf/qpdf-c.h for details.

          o Add qpdf_oh_get_type_code and qpdf_oh_get_type_name.

          o Add qpdf_oh_get_binary_string_value and qpdf_oh_new_binary_string
            for making it easier to deal with strings that contain embedded
            null characters.

Files:
RevisionActionfile
1.48modifypkgsrc/print/qpdf/Makefile
1.13modifypkgsrc/print/qpdf/PLIST
1.39modifypkgsrc/print/qpdf/distinfo