commit 4b6d5121830cee30278fe3c7c84685e3805eb14b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Dec 1 15:48:56 2021 +0100

    poppler 21.12.0

 CMakeLists.txt      |  4 ++--
 NEWS                | 17 +++++++++++++++++
 cpp/Doxyfile        |  2 +-
 glib/CMakeLists.txt |  2 +-
 qt5/src/Doxyfile    |  2 +-
 qt6/src/Doxyfile    |  2 +-
 6 files changed, 23 insertions(+), 6 deletions(-)

commit a527e6bff642a0276467d8e0245b0ddaf60635bc
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Dec 1 11:35:00 2021 +0100

    Add note of when we can remove the __GNUC__ checks

 goo/GooCheckedOps.h | 2 ++
 1 file changed, 2 insertions(+)

commit f4364adf48b0217297021beed3eaf59a64ec5f45
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Dec 1 11:23:50 2021 +0100

    Make checkedMultiply work for long long in MSVC

 goo/GooCheckedOps.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

commit 27466086ec5c4ca1a15684d034b6a27e76fe8ba6
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Nov 30 00:24:28 2021 +0100

    PngEmbedder::embedImage: Make sure we don't overflow doing the
    multiplications

 poppler/ImageEmbeddingUtils.cc | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

commit d1be2ba7a8e324d09646bbb0355574feaa6d98ca
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Nov 30 00:07:25 2021 +0100

    Fix memory leak when embedders are not available

 poppler/ImageEmbeddingUtils.cc | 52
 ++++++++++++++++--------------------------
 1 file changed, 20 insertions(+), 32 deletions(-)

commit 9fa129877a47a807f48d15dd6b5cee28734514d7
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Nov 30 00:11:26 2021 +0100

    ImageEmbeddingUtils::embed: Return early if filesize < 0

    filesize uses lseek which returns -1 on errror, so be sure to return
    early if that happens

 poppler/ImageEmbeddingUtils.cc | 4 ++++
 1 file changed, 4 insertions(+)

commit ff8aab1b2a16246f7c61ce5599eda0ba03298031
Author: Christian Persch <chpe@src.gnome.org>
Date:   Tue Nov 30 00:17:43 2021 +0100

    glib: Close the file descriptor on fdopen error

    ... and *not* the (nullptr) file.

    https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/995

 glib/poppler-document.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 30eb3508c0b698901234db2e4752d369741393b4
Author: Georgiy Sgibnev <georgiy@lab50.net>
Date:   Mon Nov 29 16:17:44 2021 +0300

    New unit-tests for the image embedding API (for the error handling)

 test/CMakeLists.txt     | 123
 +++++++++++++++++++++++++++---------------------
 test/image-embedding.cc |  12 +++--
 2 files changed, 78 insertions(+), 57 deletions(-)

commit 766018f43cdf611351bbdf5d929354c723b5ba72
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Nov 25 23:42:40 2021 +0100

    Properly initialize filterRemovalForbidden

 poppler/Stream.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 3cc01af0655b5cf9afc967e57abd9000b2dc4e3c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Nov 26 00:14:52 2021 +0100

    Update (C)

 poppler/PDFDoc.cc | 1 +
 poppler/PDFDoc.h  | 1 +
 2 files changed, 2 insertions(+)

commit 7b7b3f8018d652a0e8f38a69e28d535d98843df8
Author: Marek Kasik <mkasik@redhat.com>
Date:   Thu Nov 25 22:31:01 2021 +0000

    Add validation of signatures API to glib frontend

 glib/demo/forms.c                   |  19 ++-
 glib/poppler-document.cc            |  22 +++
 glib/poppler-document.h             |   7 +-
 glib/poppler-form-field.cc          | 303
 ++++++++++++++++++++++++++++++++++++
 glib/poppler-form-field.h           |  92 +++++++++++
 glib/poppler-private.h              |   1 +
 glib/poppler.h                      |   2 +
 glib/reference/poppler-sections.txt |  22 +++
 glib/reference/poppler.types        |   4 +
 poppler/Form.cc                     |   8 +-
 poppler/PDFDoc.cc                   |  10 ++
 poppler/PDFDoc.h                    |   1 +
 poppler/SignatureHandler.cc         |   9 +-
 poppler/SignatureInfo.cc            |   6 +-
 poppler/SignatureInfo.h             |   4 +-
 15 files changed, 502 insertions(+), 8 deletions(-)

commit 1ad64ccfa2315087ea5508d1550f816bc65fd982
Author: Marek Kasik <mkasik@redhat.com>
Date:   Thu Nov 25 13:52:10 2021 +0100

    glib: Fix a warning about missing element-type annotation

    There was a missing colon right after argument name.

 glib/poppler-document.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit bcabe82f358548e0a705743ff338212a5b05e13a
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Nov 24 23:34:17 2021 +0100

    Update (C)

 poppler/FlateEncoder.cc                      | 1 +
 poppler/Form.cc                              | 1 +
 qt5/src/poppler-qiodeviceoutstream-private.h | 1 +
 qt5/src/poppler-qiodeviceoutstream.cc        | 1 +
 qt6/src/poppler-qiodeviceoutstream-private.h | 1 +
 qt6/src/poppler-qiodeviceoutstream.cc        | 1 +
 6 files changed, 6 insertions(+)

commit 70980eaf611c21a5f12a7edbe332e223f3b874f1
Author: Even Rouault <even.rouault@spatialys.com>
Date:   Wed Nov 24 16:53:29 2021 +0100

    poppler-qiodeviceoutstream: add printf format attribute for GCC

    Solves
    ```
    /home/even/poppler/qt5/src/poppler-qiodeviceoutstream.cc: In
    function ‘int Poppler::poppler_vasprintf(char**, const char*,
    __va_list_tag*)’:
    /home/even/poppler/qt5/src/poppler-qiodeviceoutstream.cc:49:62:
    warning: function ‘int Poppler::poppler_vasprintf(char**, const
    char*, __va_list_tag*)’ might be a candidate for ‘gnu_printf’
    format attribute [-Wsuggest-attribute=format]
       49 |     const size_t size = vsnprintf(nullptr, 0, format, ap_copy)
       + 1;
          |                                                              ^
    ```

 qt5/src/poppler-qiodeviceoutstream-private.h | 2 +-
 qt5/src/poppler-qiodeviceoutstream.cc        | 2 ++
 qt6/src/poppler-qiodeviceoutstream-private.h | 2 +-
 qt6/src/poppler-qiodeviceoutstream.cc        | 2 ++
 4 files changed, 6 insertions(+), 2 deletions(-)

commit 4b6a530539bb29ac057d2ac6d8f74d2ca78a3f2a
Author: Even Rouault <even.rouault@spatialys.com>
Date:   Wed Nov 24 15:46:09 2021 +0100

    Form.cc: fix -Wstringop-truncation warning

    gcc 9.3.0 (Ubuntu 20.04) with CMAKE_BUILD_TYPE=Debug emits
    ```
    /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:34: warning:
    ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’
    output may be truncated copying 10 bytes from a string of length 49
    [-Wstringop-truncation]
      106 |   return __builtin___strncpy_chk (__dest, __src, __len,
      __bos (__dest));
          |
          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ```

    In that situation this is a false positive. But using memcpy() makes
    things clearer as the copied string cannot be shorter than 10
    bytes due
    to how it is composed before (an integer value followed by more
    than 10
    spaces).

 poppler/Form.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit c702589307896c7d6f5f4cfdf63535761ad1ad23
Author: Even Rouault <even.rouault@spatialys.com>
Date:   Wed Nov 24 16:14:24 2021 +0100

    FlateEncoder.cc: fix -Wzero-as-null-pointer-constant warnings

    Use nullptr instead of Z_NULL. zlib.h defines Z_NULL as 0, so using
    nullptr is safe now, and for the future, as zlib.h can't really
    change its definition to something that would be fundammentaly
    different
    from expressing a null pointer.

 poppler/FlateEncoder.cc | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

commit e0c5c126dd25025bf3cfb39b92b0c71478ab307c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Nov 22 17:10:02 2021 +0100

    Rename registerResourceForWidget to make it more generic

 poppler/Annot.cc | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

commit ca9716dd9c475649a5ea4e412c3b15a6e95bdfc5
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Nov 22 17:08:34 2021 +0100

    registerResourceForWidget use set instead of add

    In case resourcesDict has a resourceType of non Dict type we want to
    overwrite it

 poppler/Annot.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 14aca8b62d197db6bcbc92faf7f398ac9a598011
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Nov 22 17:04:55 2021 +0100

    XRef::addIndirectObject: Change param from const * to const &

    Makes it harder to do mistakes when using it

 poppler/Annot.cc                 | 8 ++++----
 poppler/AnnotStampImageHelper.cc | 3 ++-
 poppler/Catalog.cc               | 9 ++++-----
 poppler/FileSpec.cc              | 5 ++---
 poppler/Form.cc                  | 2 +-
 poppler/Outline.cc               | 4 ++--
 poppler/PDFDoc.cc                | 2 +-
 poppler/Page.cc                  | 6 +++---
 poppler/XRef.cc                  | 9 ++++-----
 poppler/XRef.h                   | 2 +-
 10 files changed, 24 insertions(+), 26 deletions(-)

commit d46f01d8dbcda3e92c164e9b10788977e72ed403
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Nov 22 17:04:11 2021 +0100

    Update (C)

 poppler/Annot.h   | 1 +
 poppler/Stream.cc | 1 +
 poppler/Stream.h  | 1 +
 3 files changed, 3 insertions(+)

commit d1070d73747d3c8771175c43e214f84537b65037
Author: Georgiy Sgibnev <georgiy@lab50.net>
Date:   Fri Jul 23 13:45:44 2021 +0300

    Image embedding API

 CMakeLists.txt                 |   1 +
 poppler/Annot.cc               |  29 ++-
 poppler/Annot.h                |   3 +-
 poppler/Form.cc                |  10 +
 poppler/Form.h                 |   5 +
 poppler/ImageEmbeddingUtils.cc | 407
 +++++++++++++++++++++++++++++++++++++++++
 poppler/ImageEmbeddingUtils.h  |  36 ++++
 poppler/PDFDoc.cc              |  20 +-
 poppler/PDFDoc.h               |   5 +-
 poppler/Stream.cc              |  10 +
 poppler/Stream.h               |   8 +
 poppler/XRef.cc                |  15 ++
 poppler/XRef.h                 |   7 +
 test/CMakeLists.txt            |  67 +++++++
 test/image-embedding.cc        | 106 +++++++++++
 15 files changed, 723 insertions(+), 6 deletions(-)

commit d6a34e2ca8b74cfdf9a1d58edb072e0aee26b233
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Nov 18 23:27:24 2021 +0100

    AnnotWidget::generateFieldAppearance: Do not modify the Form DR dict

 poppler/Annot.cc  |  2 +-
 poppler/Array.cc  | 11 +++++++++++
 poppler/Array.h   |  2 ++
 poppler/Dict.cc   | 12 ++++++++++++
 poppler/Dict.h    |  2 ++
 poppler/Object.cc | 32 ++++++++++++++++++++++++++++++++
 poppler/Object.h  |  7 ++++++-
 7 files changed, 66 insertions(+), 2 deletions(-)

commit 97fe0bc48a72265b689560bbd4a5d3c2e8b120a6
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Nov 19 09:42:27 2021 +0100

    Fix compile on MSVC #2

 glib/poppler-document.cc | 4 ++--
 poppler/PSOutputDev.cc   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

commit 5eecc8aaa146a838cbc95a6f19bbeac82fa6164f
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Nov 19 01:05:13 2021 +0100

    Fix compile on MSVC

 poppler/FDPDFDocBuilder.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 1c3c1b2e85acf7a9d84bd53d696623146c549ace
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Nov 19 00:19:25 2021 +0100

    Update (C)

 goo/gfile.cc               | 2 +-
 goo/gfile.h                | 2 +-
 poppler/FDPDFDocBuilder.cc | 1 +
 poppler/FDPDFDocBuilder.h  | 1 +
 poppler/FILECacheLoader.cc | 1 +
 poppler/FILECacheLoader.h  | 1 +
 poppler/PDFDocFactory.cc   | 1 +
 poppler/PSOutputDev.cc     | 2 +-
 poppler/PSOutputDev.h      | 1 +
 poppler/Stream.h           | 1 +
 10 files changed, 10 insertions(+), 3 deletions(-)

commit 5914c1d6e8a8dddbb176f37552a4efb27445b909
Author: Christian Persch <chpe@src.gnome.org>
Date:   Sat Nov 13 11:03:48 2021 +0100

    glib: Add APIs to save to file descriptor

 glib/poppler-attachment.cc          | 46 +++++++++++++++++++-
 glib/poppler-attachment.h           |  2 +
 glib/poppler-document.cc            | 86
 ++++++++++++++++++++++++++++++++++++-
 glib/poppler-document.h             |  4 ++
 glib/poppler-media.cc               | 47 +++++++++++++++++++-
 glib/poppler-media.h                |  2 +
 glib/poppler-page.cc                |  9 +++-
 glib/poppler-private.h              |  1 +
 glib/reference/poppler-sections.txt |  4 ++
 poppler/PSOutputDev.cc              | 43 +++++++++++++++++++
 poppler/PSOutputDev.h               |  4 ++
 11 files changed, 243 insertions(+), 5 deletions(-)

commit c3f1ece62ac52587308e44d3e170d864372875f2
Author: Christian Persch <chpe@src.gnome.org>
Date:   Sat Nov 13 11:03:48 2021 +0100

    glib: Add poppler_document_new_from_fd

    While it's already possible to create a PopplerDocument
    for STDIN by using fd://0 as the URI, it was not yet possible
    to create a PopplerDocument from a file descriptor.

    This adds poppler_document_new_from_fd(), which accepts
    a readable FD for a regular file, or for STDIN.

    Add a --fd option to test/gtk-test to test this. When used,
    gtk-test arguments are FD numbers instead of filenames or URIs.
    To test, use e.g.

    $ 3<test.pdf ./gtk-test --fd 3

 glib/poppler-document.cc            | 91
 +++++++++++++++++++++++++++++++++++++
 glib/poppler-document.h             |  3 ++
 glib/reference/poppler-sections.txt |  1 +
 test/gtk-test.cc                    | 57 +++++++++++++++--------
 4 files changed, 134 insertions(+), 18 deletions(-)

commit 8d5d591d1910a60608bdbafd92179e8dec918bff
Author: Christian Persch <chpe@src.gnome.org>
Date:   Sat Nov 13 11:03:48 2021 +0100

    glib: docs: Add index for new API

 glib/reference/poppler-docs.sgml | 4 ++++
 1 file changed, 4 insertions(+)

commit 7db45fac4947e99c9f1985dfa3c82bd612d64cb0
Author: Christian Persch <chpe@src.gnome.org>
Date:   Sat Nov 13 11:03:48 2021 +0100

    glib: docs: Add missing API indices for new symbols

 glib/reference/poppler-docs.sgml | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

commit ff1b0aa530a1eb5b64119f3129434981bfc12e8e
Author: Christian Persch <chpe@src.gnome.org>
Date:   Sat Nov 13 11:03:48 2021 +0100

    build: Rename StdinPDFDocBuilder to FileDescriptorPDFDocBuilder

    ... since it's not for just stdin anymore.

 CMakeLists.txt                                        |  4 ++--
 poppler/{StdinPDFDocBuilder.cc => FDPDFDocBuilder.cc} | 12 ++++++------
 poppler/{StdinPDFDocBuilder.h => FDPDFDocBuilder.h}   | 14 +++++++-------
 poppler/PDFDocFactory.cc                              |  4 ++--
 4 files changed, 17 insertions(+), 17 deletions(-)

commit 661debdf700d7a13a8373f681e3729fcbb6aa573
Author: Christian Persch <chpe@src.gnome.org>
Date:   Sat Nov 13 11:03:48 2021 +0100

    build: Rename StdinCacheLoader to FILECacheLoader

    ... since it's not for just stdin anymore.

 CMakeLists.txt                                     |  4 ++--
 poppler/{StdinCachedFile.cc => FILECacheLoader.cc} | 12 +++++-------
 poppler/{StdinCachedFile.h => FILECacheLoader.h}   | 14 +++++++-------
 poppler/StdinPDFDocBuilder.cc                      |  4 ++--
 4 files changed, 16 insertions(+), 18 deletions(-)

commit 19a8e85d7d903fbc826416252b4fbce1644c65f8
Author: Christian Persch <chpe@src.gnome.org>
Date:   Sat Nov 13 11:03:48 2021 +0100

    poppler: Make StdinCacheLoader more generic

    Despite its name, StdinCacheLoader really works with any FILE*,
    not just
    stdin.  Add a constructor taking a FILE* to set the file it
    operates on.

    This will be used in glib/ in a subsequent commit.

 poppler/StdinCachedFile.cc    | 13 ++++++++++---
 poppler/StdinCachedFile.h     |  8 ++++++++
 poppler/StdinPDFDocBuilder.cc | 32 ++++++++++++++++++++++++++------
 poppler/StdinPDFDocBuilder.h  |  5 ++++-
 4 files changed, 48 insertions(+), 10 deletions(-)

commit dc50059c757ae5c58b45755dc4f035e620679252
Author: Christian Persch <chpe@src.gnome.org>
Date:   Sat Nov 13 11:03:48 2021 +0100

    poppler: Export StdinCacheLoader and FileStream

    They will be used in glib/ in a subsequent commit.

 poppler/StdinCachedFile.h | 2 +-
 poppler/Stream.h          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit b01d37e14138de096212ae283840b580718966e7
Author: Christian Persch <chpe@src.gnome.org>
Date:   Sat Nov 13 11:03:48 2021 +0100

    gfile: Add GooFile constructor taking a file descriptor

 goo/gfile.cc | 7 ++++++-
 goo/gfile.h  | 3 +++
 2 files changed, 9 insertions(+), 1 deletion(-)

commit 153df8e9b5262795db43d47642a7df77d8fbedcb
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Nov 7 23:20:56 2021 +0100

    Make GooFile::open take a std::string instead of a GooString

 goo/gfile.cc               | 10 +++++-----
 goo/gfile.h                |  3 ++-
 poppler/GlobalParamsWin.cc |  2 +-
 poppler/PDFDoc.cc          |  4 ++--
 utils/pdfattach.cc         |  6 +++---
 5 files changed, 13 insertions(+), 12 deletions(-)

commit 89beb709b39f6b9645f27e7390b2464c5864c43b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Nov 7 00:43:04 2021 +0100

    Update (C)

 poppler/CairoOutputDev.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 0e8d7d11838dc16cdc6141c026def43710c8b326
Author: Adrian Johnson <ajohnson@redneon.com>
Date:   Mon Oct 4 07:42:38 2021 +1030

    Fix de-duping of Flate images

 poppler/CairoOutputDev.cc | 34 ++++++++++++++++++----------------
 1 file changed, 18 insertions(+), 16 deletions(-)

commit 6d72d8242cafe92d5c0c6a04b51f7e85108c450a
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Nov 5 10:50:11 2021 +0100

    Fix crash on broken files when using non-default
    ENABLE_ZLIB_UNCOMPRESS

    Fixes issue #393

 poppler/FlateStream.cc | 4 ++++
 1 file changed, 4 insertions(+)

commit 33c9b192ac32e7e95a825aa3ff4e18561f0dc80b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Nov 1 11:31:49 2021 +0100

    Update (C)

    chpe's ones are from the cairo_t commit last month

 poppler/CairoOutputDev.cc | 1 +
 poppler/CairoOutputDev.h  | 1 +
 utils/HtmlOutputDev.cc    | 1 +
 utils/pdftocairo.cc       | 1 +
 4 files changed, 4 insertions(+)

commit 6b6eb10938115394f81ab737fee65749a42a2d10
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Oct 30 02:02:39 2021 +0200

    TextOutputDev improvements

    Vectors don't need to be a pointer
       and they can contain unique_ptr too

    Make pools be an array of unique_ptr too

    Makes for easier memory management

 poppler/TextOutputDev.cc | 87
 ++++++++++++------------------------------------
 poppler/TextOutputDev.h  | 10 +++---
 2 files changed, 27 insertions(+), 70 deletions(-)

commit 28a523d6485d3be3c2a606cc942c34536cd26b50
Author: Christopher Hasse <hasse.christopher@gmail.com>
Date:   Mon Sep 13 01:21:20 2021 -0500

    Update pdftohtml duplicate detection

    The delta values used now are the same as the ones used in
    pdftotext, which have proven to be much more reliable.
    Additionally the search range on the xaxis for duplicate strings has
    been increased, which seems to vastly improve the ability to find
    duplicates. This algorithm can now properly detect duplicates as shown
    in #321.

 utils/HtmlOutputDev.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 94448a433c8690cb782ca9783d22e411e8d80e8d
Author: Christopher Hasse <hasse.christopher@gmail.com>
Date:   Sun Sep 12 03:53:08 2021 -0500

    pdftohtml: Reduce sensitivity of duplicate detection

    fixes #1117

    In some fonts, strings such as "ll" or "ff" are placed close enough
    together to trigger duplicate detection in pdftohtml. This commit
    makes
    the detection algorithm less sensitive to reduce the false positives
    while still maintaining the original function of the code.

    Prior to this commit, if a character's `xMax` is less than 20% of its
    height away from the following character's `xMax`, it is treated as a
    duplicate and removed. This commit changes that value to 17.5%, which
    will reduce the number of false positives without introducing too many
    false negatives.

 utils/HtmlOutputDev.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 3f8b9e92aade630b90943fd3936bdaa089e0603d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Sep 26 19:22:12 2021 +0200

    Increase C++ standard to 17

    And make it required

 CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

commit 76f4d2e764f0fdb089678d1db3967391eb2f4077
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Nov 1 10:16:38 2021 +0100

    Poppler 21.11.0

 CMakeLists.txt   |  4 ++--
 NEWS             | 21 +++++++++++++++++++++
 cpp/Doxyfile     |  2 +-
 qt5/src/Doxyfile |  2 +-
 qt6/src/Doxyfile |  2 +-
 5 files changed, 26 insertions(+), 5 deletions(-)

commit 352170ad66fe14c1d1dc9435be7f5770710db9c3
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Nov 1 00:40:56 2021 +0100

    Remove check for field being null

    We're already using it unconditionally a few lines above

 poppler/Annot.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit b15bf352a39208876b2e6f28c809290ccdf08eb8
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Nov 1 00:35:21 2021 +0100

    StructElement::parseChild: Fix memory leak

 poppler/StructElement.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

commit 9af5896fcf8d3c426cd958c662765411f05c1498
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Oct 30 01:31:33 2021 +0200

    Add const to NameTree::getName

 poppler/Catalog.cc | 4 ++--
 poppler/Catalog.h  | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

commit 03f80c64305157fbebff73cd57f582086e2cafdf
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Oct 30 01:16:10 2021 +0200

    Make makeWordList return a unique_ptr

 poppler/TextOutputDev.cc | 6 +++---
 poppler/TextOutputDev.h  | 4 ++--
 qt5/src/poppler-page.cc  | 7 ++-----
 qt6/src/poppler-page.cc  | 7 ++-----
 utils/pdftotext.cc       | 5 ++---
 5 files changed, 11 insertions(+), 18 deletions(-)

commit c66a781cac176a525a7d6e2042f50f89892a2f2a
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Oct 30 01:08:42 2021 +0200

    Make getLinks return a unique_ptr

    Fixes a leak in pdfinfo

 poppler/PDFDoc.cc      |  4 ++--
 poppler/PDFDoc.h       |  2 +-
 poppler/Page.cc        | 14 +++++---------
 poppler/Page.h         |  4 ++--
 utils/HtmlOutputDev.cc |  3 +--
 utils/pdfinfo.cc       |  2 +-
 6 files changed, 12 insertions(+), 17 deletions(-)

commit b0571a9e87f05785a9643b38768c711f0064b763
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Oct 30 00:58:27 2021 +0200

    Remove two mutables that aren't really needed

 glib/poppler-structure-element.cc | 44
 +++++++++++++++++++--------------------
 poppler/StructElement.h           |  6 +++---
 2 files changed, 25 insertions(+), 25 deletions(-)

commit 4b2d2d0232098f57ae7e4504a4fd9397bf74f768
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Oct 30 00:53:34 2021 +0200

    Make function return std::unique if caller owns the pointer

 poppler/StructElement.h | 2 +-
 utils/pdfinfo.cc        | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

commit fa14391c97b8a35844a943102c0c579964301aff
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 29 16:46:11 2021 +0200

    Move another GlobalParam to the OutputDevs where it belongs

 poppler/GlobalParams.cc   |  7 -------
 poppler/GlobalParams.h    |  3 ---
 poppler/PSOutputDev.cc    |  6 +++---
 poppler/PSOutputDev.h     |  2 ++
 poppler/SplashOutputDev.h |  3 +--
 utils/pdftoppm.cc         | 11 ++++++++---
 utils/pdftops.cc          |  6 +++---
 7 files changed, 17 insertions(+), 21 deletions(-)

commit 3a82fc29f025fcb1ab4b41d519efb916ba297c6f
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 29 16:30:09 2021 +0200

    Move two variables from GlobalParams to PSOutputDev

    Only place they are ever used

 poppler/GlobalParams.cc | 26 --------------------------
 poppler/GlobalParams.h  |  6 ------
 poppler/PSOutputDev.cc  |  2 +-
 poppler/PSOutputDev.h   |  4 ++++
 utils/pdftops.cc        | 14 +++++++-------
 5 files changed, 12 insertions(+), 40 deletions(-)

commit c297b22e096cd853973d8d670be383d9e38b96a8
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 29 16:13:13 2021 +0200

    Change GlobalParams::getEncodingNames to something saner

 poppler/GlobalParams.cc |  8 ++++----
 poppler/GlobalParams.h  |  2 +-
 utils/printencodings.cc | 12 +++++-------
 3 files changed, 10 insertions(+), 12 deletions(-)

commit 5b18fb371d41a6f551f04caf418d1140062c4870
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 29 15:48:42 2021 +0200

    determineFallbackFont: Change parameter from GooString * to
    std::string

 poppler/Annot.cc | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

commit f897e21bc6e6823ed2912d8a496469eed41ca1da
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 29 15:39:39 2021 +0200

    Change some std::vector * to std::vector

    If we always new and always delete them, no need to have a pointer

 poppler/GlobalParams.cc    | 28 +++++++++++-----------------
 poppler/GlobalParams.h     |  2 +-
 poppler/GlobalParamsWin.cc |  4 ++--
 utils/HtmlLinks.cc         | 23 ++++++++---------------
 utils/HtmlLinks.h          | 12 ++++++------
 utils/HtmlOutputDev.cc     | 34 +++++++++++++++-------------------
 utils/HtmlOutputDev.h      | 10 +++++-----
 7 files changed, 48 insertions(+), 65 deletions(-)

commit 406c83c465ddae11d98dcd2f9033b0cd0b262255
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 29 15:09:27 2021 +0200

    FormFieldText::tokenizeDA: Return a vector of strings instead of a
    vector of pointers

    Makes it for simpler memory management

 poppler/Annot.cc | 25 +++++++++++--------------
 poppler/Form.cc  | 33 +++++++++++----------------------
 poppler/Form.h   |  4 ++--
 3 files changed, 24 insertions(+), 38 deletions(-)

commit aba39d21302dcf53af6961cf6739c510532c683c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 29 14:52:03 2021 +0200

    No need to new a vector that we always end deleting later

 poppler/Annot.cc | 142
 ++++++++++++++++++++++---------------------------------
 poppler/Form.cc  |   9 ++--
 2 files changed, 60 insertions(+), 91 deletions(-)

commit 94d9d102f77312d808b7b65112d0a530a7ca4a12
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 29 14:34:13 2021 +0200

    Port a few functions from GooString to std::string

 goo/GooString.h                    |  3 ++-
 poppler/Annot.cc                   |  2 +-
 poppler/DateInfo.cc                |  4 ++--
 poppler/Form.cc                    | 18 +++++++++---------
 poppler/Form.h                     |  2 +-
 poppler/JSInfo.cc                  |  4 ++--
 poppler/Outline.cc                 |  4 ++--
 poppler/TextOutputDev.cc           |  2 +-
 poppler/UTF.cc                     | 22 +++++++++++-----------
 poppler/UTF.h                      |  6 +++---
 qt5/tests/check_utf_conversion.cpp | 16 ++++++++--------
 qt6/tests/check_utf_conversion.cpp | 16 ++++++++--------
 utils/pdfinfo.cc                   |  2 +-
 utils/pdfsig.cc                    |  4 ++--
 14 files changed, 53 insertions(+), 52 deletions(-)

commit ce644167f258e5a2f53e26976514a14866c77365
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Oct 26 23:40:41 2021 +0200

    CI: Enable -Werror in the clang 13 builder too

    We have it on the clazy builder too, but unfortunately clazy is still
    built against clang 11 in debian:unstable so we get less coverage
    there

 .gitlab-ci.yml                     | 2 +-
 glib/poppler-cached-file-loader.cc | 4 +---
 poppler/CairoOutputDev.cc          | 3 ---
 3 files changed, 2 insertions(+), 7 deletions(-)

commit 967a1a1ab038baf03c6f4b5faffc106dec559ce6
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Oct 26 23:02:28 2021 +0200

    CI: Use clang 13

    bugprone-implicit-widening-of-multiplication-result may be nice to
    enable one day, together with gcc's -Wconversion ^_^

 .gitlab-ci.yml      | 18 +++++++++---------
 README.contributors |  2 +-
 2 files changed, 10 insertions(+), 10 deletions(-)

commit b8fd5b275b7f0ed1f9460db16e7c5a569ded3d35
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Oct 26 22:56:56 2021 +0200

    CI: Also compile the qt6 frontend code in mingw

 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 09e2384245ea44c98254fd629c1a7b68a0b2a5aa
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Oct 26 22:34:52 2021 +0200

    CI: Use fedora 35 for the mingw builder

 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit f18e9f9f1eb562e4bbc23c413c522996696e90df
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Oct 26 22:28:26 2021 +0200

    Fix crash in malformed files

 poppler/JBIG2Stream.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

commit fa27a6349e2795503e46720cce6c4b19996990d7
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Oct 24 23:26:36 2021 +0200

    refine PageLabelInfo::labelToIndex + intervals without style

 poppler/PageLabelInfo.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 7341d579cdd58ef28f67af76dc8f9a2c4592bef2
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Oct 24 23:13:27 2021 +0200

    PageLabelInfo::labelToIndex: work on some special no style intervals

    If the interval is length 1 we can assume the index is the base of the
    interval

    Fixes bug #1161

 poppler/PageLabelInfo.cc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

commit a973ccdf0ea93022401c6c5cedcdfcaa5cd26866
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 22 22:53:37 2021 +0200

    Remove remmnats of external ps cid bit-16 fonts

 poppler/GfxFont.cc           |  4 ----
 poppler/GfxFont.h            |  4 ----
 poppler/PSOutputDev.cc       | 18 ------------------
 qt5/src/QPainterOutputDev.cc |  4 ++--
 qt6/src/QPainterOutputDev.cc |  4 ++--
 5 files changed, 4 insertions(+), 30 deletions(-)

commit dd373dcee45653390042107ed45a616b6234ea77
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 22 22:25:24 2021 +0200

    Some const changes in GfxFont & friends

 poppler/GfxFont.cc |  6 ++----
 poppler/GfxFont.h  | 10 +++++-----
 2 files changed, 7 insertions(+), 9 deletions(-)

commit 81bcacd21f864d37f94d719b70b7faeb433652b8
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 22 17:41:48 2021 +0200

    Ignore Adobe-Identity for non embedded CID fonts

    As far as I understand it is a "this should not work scenario",
    but seems other renderers accept it, so do the same

 poppler/GfxFont.cc | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

commit 4edef6b3de6e262852fda6423fbbe23a16f09389
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 22 17:46:46 2021 +0200

    Move GfxFont::tag to be a std::string

    No need for it to be a GooString *

 poppler/Gfx.cc     | 2 +-
 poppler/GfxFont.cc | 4 +---
 poppler/GfxFont.h  | 8 ++++----
 3 files changed, 6 insertions(+), 8 deletions(-)

commit 757b566fc14b3d9e33b50387afe9dced709006b2
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 22 17:38:17 2021 +0200

    Don't crash if the GooString * is null

 goo/GooString.cc | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

commit 24d0445aa4bf0795aff955dbaf1b585f090d3d2b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Oct 18 17:51:37 2021 +0200

    Support Type3 charprocs having Resources dicts

    Doesn't seem to be standard but Adobe supports it so...

    Fixes #1150

 poppler/Gfx.cc | 7 +++++++
 1 file changed, 7 insertions(+)

commit 9604005a4e81ebc6bed2c90aa2044dc1cf064dfd
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Oct 13 22:19:09 2021 +0200

    Don't say a font is not monospace because the widths are all X and 0

 poppler/GfxFont.cc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

commit 72902cfa13aecb1827c2a9bba971154253657ecd
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Oct 15 19:02:17 2021 +0200

    Fix Android CI

 .gitlab-ci.yml | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

commit 8fc71482b4ef9ceabe6159708dd2747e2648dd7d
Author: Georgiy Sgibnev <georgiy@lab50.net>
Date:   Wed Oct 6 11:47:34 2021 +0300

    The field rendering logic should take into account not only AcroForm's
    DR but also field's DR

 poppler/Annot.cc | 31 +++++++++++++++++++++++++++----
 1 file changed, 27 insertions(+), 4 deletions(-)

commit a246536f330eb6151a63cb1e86c6e0a7398fff64
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Oct 11 23:19:18 2021 +0200

    qt6: remove useless ifdef
