commit bd6f20a62131baafcae40cbdb8475116f666f84f
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 1 14:55:28 2022 +0200

    Poppler 22.04.0

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

commit 8942ba12781560e59e3a2f1a2185c34a697f5fee
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 31 15:23:38 2022 +0200

    Fix regression caused by d72c22caf28cbe8cf1e268f8ff741d7e1330df63

 poppler/CairoFontEngine.cc | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

commit e60280ae8ff3ccfa4da434835e59b682af7ece6b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Mar 30 23:45:23 2022 +0200

    CI: make the libcpp build use C++23

    Needs a small cast in the qt5 demo viewer to make the addition of two
    different enums "ok"

    It will help us make sure we don't do things like std::string s =
    nullptr; (since that is not possible on C++23)

    And also helps us future proof in case something else comes up

 .gitlab-ci.yml       | 2 ++
 qt5/demos/viewer.cpp | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

commit 593499015c9255a72e63da4ae94cbd25ba55498d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Mar 30 23:47:27 2022 +0200

    (C) of last commits

 poppler/GlobalParams.cc | 1 +
 1 file changed, 1 insertion(+)

commit 48bbbfefcb608b04c427d288c876c1eb19813590
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Mar 30 23:20:05 2022 +0200

    Fix crash introduced in dbbaa1651dc168f71054e3dd9ef91e33c960bfb7

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

commit c513b069e7bfae1542945cb8ac6095f5976313bc
Author: Even Rouault <even.rouault@spatialys.com>
Date:   Sat Mar 26 23:38:15 2022 +0100

    GlobalParams::setupBaseFonts(): fix memory leaks related to GooString

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

commit 404edfd151b814c7c4e771eda5826e65ee7c5f84
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Mar 27 22:37:15 2022 +0200

    Change GfxFont name into an optional std::string

 glib/poppler-structure-element.cc | 10 ++++--
 poppler/FontInfo.cc               |  8 ++---
 poppler/GfxFont.cc                | 70
 ++++++++++++++++++---------------------
 poppler/GfxFont.h                 | 10 +++---
 poppler/GlobalParams.cc           | 20 +++++------
 poppler/GlobalParamsWin.cc        |  6 ++--
 poppler/PSOutputDev.cc            | 12 +++----
 poppler/TextOutputDev.cc          |  2 +-
 utils/HtmlFonts.cc                |  6 ++--
 9 files changed, 70 insertions(+), 74 deletions(-)

commit 1ee63109e19975be931c607e04faff72e0f43888
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Mar 30 16:27:24 2022 +0200

    Remove the url from the CachedFileLoader::init function

    It was unused everywhere except in CurlCachedFileLoader, but there we
    can just pass it in the constructor.

    The use in one of the two glib cases was a memory leak

 glib/poppler-cached-file-loader.cc |  7 +++----
 glib/poppler-cached-file-loader.h  |  4 ++--
 glib/poppler-document.cc           |  4 ++--
 poppler/CachedFile.cc              | 10 ++++------
 poppler/CachedFile.h               |  9 ++++-----
 poppler/CurlCachedFile.cc          | 12 +++++-------
 poppler/CurlCachedFile.h           |  8 ++++----
 poppler/CurlPDFDocBuilder.cc       |  2 +-
 poppler/FDPDFDocBuilder.cc         |  2 +-
 poppler/FILECacheLoader.cc         |  4 ++--
 poppler/FILECacheLoader.h          |  4 ++--
 11 files changed, 30 insertions(+), 36 deletions(-)

commit 01c4d1a3a6535c46017ad71f9cc52171b1026e23
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Mar 30 16:05:20 2022 +0200

    Convert CharCodeToUnicode tag to optional string

 poppler/CharCodeToUnicode.cc | 24 +++++++++---------------
 poppler/CharCodeToUnicode.h  |  9 +++++----
 2 files changed, 14 insertions(+), 19 deletions(-)

commit dbbaa1651dc168f71054e3dd9ef91e33c960bfb7
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Mar 30 15:55:53 2022 +0200

    Move Catalog baseURI to optional string

 poppler/Catalog.cc | 6 +-----
 poppler/Catalog.h  | 7 ++++---
 poppler/Link.cc    | 8 ++++----
 poppler/Link.h     | 7 ++++---
 4 files changed, 13 insertions(+), 15 deletions(-)

commit d72c22caf28cbe8cf1e268f8ff741d7e1330df63
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Mar 26 23:16:51 2022 +0100

    Fix regression caused by a6b2442e37cc00534bcdca7c83366a0fa0501157

    File regressed is
    https://bugs.freedesktop.org/attachment.cgi?id=118361

    The old code did different things in nullptr compared to empty buffer
    so we need
    to have the same semantics, use an optional for that

 poppler/CairoFontEngine.cc   | 28 ++++++++++++++--------------
 poppler/GfxFont.cc           | 16 ++++++++--------
 poppler/GfxFont.h            |  2 +-
 poppler/PSOutputDev.cc       | 36 ++++++++++++++++++------------------
 poppler/SplashOutputDev.cc   |  6 +++---
 qt5/src/QPainterOutputDev.cc | 18 +++++++++---------
 qt6/src/QPainterOutputDev.cc | 18 +++++++++---------
 7 files changed, 62 insertions(+), 62 deletions(-)

commit 022b361d431185f384456451c4bebe04a9fd1140
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Mar 30 13:48:43 2022 +0200

    Make GooString::format[v] return an unique_ptr

 fofi/FoFiTrueType.cc            |  47 ++++--------------
 fofi/FoFiType1C.cc              | 103
 ++++------------------------------------
 glib/poppler-document.cc        |   6 +--
 goo/GooString.cc                |   8 ++--
 goo/GooString.h                 |   5 +-
 poppler/Annot.cc                |   6 +--
 poppler/CurlCachedFile.cc       |   6 +--
 poppler/Error.cc                |   4 +-
 poppler/PSOutputDev.cc          |  48 ++++++++-----------
 qt5/tests/check_annotations.cpp |   3 +-
 qt5/tests/check_goostring.cpp   |  28 +++++------
 qt6/tests/check_annotations.cpp |   3 +-
 qt6/tests/check_goostring.cpp   |  28 +++++------
 utils/HtmlOutputDev.cc          |  75 ++++++++++++-----------------
 utils/HtmlOutputDev.h           |   6 +--
 utils/pdfsig.cc                 |   6 +--
 utils/pdftohtml.cc              |   5 +-
 17 files changed, 118 insertions(+), 269 deletions(-)

commit f7f4ae85648fae49221c357fe496f650ae982983
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Mar 29 15:23:19 2022 +0200

    Rename variable, it's actually the number of cells

 poppler/Annot.cc | 22 +++++++++++-----------
 poppler/Annot.h  |  2 +-
 2 files changed, 12 insertions(+), 12 deletions(-)

commit 246deb36a4e6db3418ccc3bc9e5926bb7776ec88
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Mar 28 23:23:14 2022 +0200

    Port PSOutputDev::filterPSName to std::string

 poppler/PSOutputDev.cc | 21 +++++++++------------
 poppler/PSOutputDev.h  |  4 ++--
 2 files changed, 11 insertions(+), 14 deletions(-)

commit d8e69c587e343191e568d92b877708518cba2db5
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Mar 28 19:18:40 2022 +0200

    Update (C)

 goo/GooString.h | 1 +
 1 file changed, 1 insertion(+)

commit 7e402f251caa15d1eae1d61b7b81ef1ddd43856e
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Mar 28 17:14:50 2022 +0200

    CI: We can go back to debian:unstable now

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

commit 5bebbe59a1e971dfd6b2f1f76d51dc544239ffb6
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Feb 22 16:01:19 2022 +0100

    GooString: Introduce string_view ends/startsWith functions

 goo/GooString.cc | 18 ++----------------
 goo/GooString.h  |  3 +++
 2 files changed, 5 insertions(+), 16 deletions(-)

commit 7d31fc4128f3e62ddeb1e9acb15a78ca7e10a82f
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Mar 27 22:29:14 2022 +0200

    One/Two more GooString to std::string

 poppler/GfxFont.cc      | 8 ++++----
 poppler/GlobalParams.cc | 8 ++++----
 poppler/GlobalParams.h  | 2 +-
 3 files changed, 9 insertions(+), 9 deletions(-)

commit 6299164caa78bc3b90154f9580a17e1aa112b5cd
Author: Christian Persch <chpe@src.gnome.org>
Date:   Sun Mar 27 23:10:13 2022 +0200

    glib: Fix mem leak in poppler_document_new_from_fd

    Someone needs to own the GooFile that's referenced by FileStream. Add
    a
    simple OwningFileStream class that does that.

    Fixes: https://gitlab.freedesktop.org/poppler/poppler/-/issues/1227

 glib/poppler-document.cc | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

commit 426f149c57627277d0d8a7e7ee7a39c4802e7714
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Mar 28 12:37:49 2022 +0200

    CI: switch to debian testing while they fix the python migration mess

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

commit eefc8ef6fd0a355cc83c2ac099ec81636f9a823a
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Mar 27 22:27:14 2022 +0200

    Remove unused function

 poppler/GfxFont.cc | 11 -----------
 poppler/GfxFont.h  |  3 ---
 2 files changed, 14 deletions(-)

commit 9fed160477ad1c860b917b9a80f6a63adfb04d30
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Mar 27 12:32:43 2022 +0200

    Fix memory leak

    format is a static function that returns a new goostring, appendf is
    what we want

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

commit 5269ce104dc44fd06e1a4c54408a5fbcacf47fc9
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Mar 26 17:12:41 2022 +0100

    We don't need to force STATIC on MSVC anymore

    Also we don't need to link to the "wrong" library either

 CMakeLists.txt           | 4 +---
 cpp/tests/CMakeLists.txt | 3 ---
 qt5/src/CMakeLists.txt   | 3 ---
 qt5/tests/CMakeLists.txt | 6 ------
 qt6/src/CMakeLists.txt   | 3 ---
 qt6/tests/CMakeLists.txt | 6 ------
 6 files changed, 1 insertion(+), 24 deletions(-)

commit 80d43c4ba95fedb9ac0208f808a31de928eaf281
Author: Even Rouault <even.rouault@spatialys.com>
Date:   Sat Mar 26 16:06:31 2022 +0000

    GooString: only export non-inline methods, not the whole class

    Fixes MSVC build as a shared library

 goo/GooString.h | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

commit 6f62a002967246cf6f702568ef0dd3436640e5f7
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Mar 25 18:20:02 2022 +0100

    Simplify code by ensuring there's always Tm in daToks

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

commit 3b0611bf6c5be8649591c119f389e243b38f7d91
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Mar 25 18:10:18 2022 +0100

    Remove checks for tfPos being >= 0

    If it was not, we wouldn't reach this, font would have been null and
    returned earlier in the function

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

commit 8105e7cbc20953e0e0aced218431b6e4f5b64936
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Mar 25 15:46:45 2022 +0100

    AnnotAppearanceBuilder::drawText: Use FormFieldText::tokenizeDA

    Makes for simpler code

 poppler/Annot.cc | 87
 ++++++++++++++++----------------------------------------
 1 file changed, 25 insertions(+), 62 deletions(-)

commit cc16a3dfcab2ba93b62551ae6498333b1387b266
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 24 17:25:58 2022 +0100

    More variable improvements in AnnotAppearanceBuilder::drawText

 poppler/Annot.cc | 133
 ++++++++++++++++++++++++++++---------------------------
 1 file changed, 67 insertions(+), 66 deletions(-)

commit 0f2d213debaed1d0671dd0086588848463e80046
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 24 16:23:21 2022 +0100

    Annot::drawText: Move combMaxLen to the end since it's only used once

 poppler/Annot.cc | 16 ++++++++--------
 poppler/Annot.h  |  4 ++--
 2 files changed, 10 insertions(+), 10 deletions(-)

commit 8c09ef74a249044eccf0688b0d845067b1eaeb75
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 24 16:19:46 2022 +0100

    Rename comb to combMaxLen

    Makes it clearer what it is

 poppler/Annot.cc | 35 ++++++++++++++++-------------------
 poppler/Annot.h  |  2 +-
 2 files changed, 17 insertions(+), 20 deletions(-)

commit 99f3b11e8f91983d78054b3c5c5bcb8356035e29
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 24 16:08:35 2022 +0100

    Unify 2 enums and a set of defines into an enum

 glib/poppler-annot.cc         |  6 ++---
 poppler/Annot.cc              | 57
 ++++++++++++++++++++-----------------------
 poppler/Annot.h               | 27 ++++++++++----------
 poppler/Form.cc               | 12 ++++-----
 poppler/Form.h                |  7 ------
 qt5/src/poppler-annotation.cc |  4 +--
 qt5/src/poppler-form.cc       |  6 ++---
 qt6/src/poppler-annotation.cc | 16 ++++++------
 qt6/src/poppler-form.cc       |  6 ++---
 9 files changed, 66 insertions(+), 75 deletions(-)

commit 8848c8f1498a290410c31622aee808021c624bb0
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 24 15:50:07 2022 +0100

    AnnotAppearanceBuilder::drawText: Merge 4 bools into a flags variable

    Makes for much easier reading on the calling side

    Also drop the defaultFallback variable, it was ever only used to pass
    ZapfDingbats when also passing the forceZapfDingbats variable

 poppler/Annot.cc | 35 ++++++++++++++++++++++-------------
 poppler/Annot.h  | 13 +++++++++++--
 2 files changed, 33 insertions(+), 15 deletions(-)

commit 69f561ab964dfed94d347164d644365173afecba
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Mar 16 00:03:12 2022 +0100

    regtest: Add a command to download files

 regtest/commands/download-files.py | 69
 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

commit c73a83c33ff0152de030120ca66e10a9b3941bcf
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Mar 18 22:31:17 2022 +0100

    Trigger xref rebuild properly

    Make DummyXRefEntry have the same internals as a non intialized entry,
    specially the object type

    Fixes #1231

 poppler/XRef.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

commit 48c6eee27a7a6439507dc28df983f1d55efa6a9a
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 17 17:50:55 2022 +0100

    Write unicode strings using PDF hexadecimal strings

    As far as I can see our old way of doing it was correct but when
    saving
    contents like
    我不会复印
    ( i'm sure this is going to break, so check it on
    https://bugs.kde.org/show_bug.cgi?id=378186 )

    Adobe Reader would not read the string back correctly.
    mupdf works both with the old and the new code

 poppler/PDFDoc.cc | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

commit 86e3c1e9be7997e31f7998e831eeb33d6dfef84b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Mar 19 00:26:43 2022 +0100

    Update (C)

 fofi/FoFiBase.cc          | 1 +
 fofi/FoFiBase.h           | 1 +
 fofi/FoFiTrueType.cc      | 1 +
 fofi/FoFiTrueType.h       | 1 +
 fofi/FoFiType1.cc         | 1 +
 fofi/FoFiType1.h          | 1 +
 fofi/FoFiType1C.cc        | 1 +
 fofi/FoFiType1C.h         | 1 +
 poppler/JPEG2000Stream.cc | 1 +
 poppler/Stream.h          | 2 +-
 10 files changed, 10 insertions(+), 1 deletion(-)

commit a6b2442e37cc00534bcdca7c83366a0fa0501157
Author: Oliver Sander <oliver.sander@tu-dresden.de>
Date:   Mon Mar 14 10:56:27 2022 +0100

    Store font data in a std::vector<unsigned char>

    This simplifies various method signatures, because the data array and
    its size do not have to be passed around separately, anymore.

    Also, using a std::vector makes tracking the ownership much easier.

 poppler/CairoFontEngine.cc   | 63
 ++++++++++++++++----------------------------
 poppler/Gfx.cc               |  6 ++---
 poppler/GfxFont.cc           | 20 +++++++-------
 poppler/GfxFont.h            |  2 +-
 poppler/GfxState.cc          |  7 ++---
 poppler/JPEG2000Stream.cc    | 12 ++++-----
 poppler/PSOutputDev.cc       | 49 +++++++++++++---------------------
 poppler/SplashOutputDev.cc   | 14 +++++-----
 poppler/Stream.h             | 16 ++++++-----
 qt5/src/QPainterOutputDev.cc | 25 ++++++++----------
 qt6/src/QPainterOutputDev.cc | 25 ++++++++----------
 splash/SplashFTFontFile.cc   |  6 ++---
 splash/SplashFontFile.cc     | 23 +++-------------
 splash/SplashFontFile.h      |  6 ++---
 14 files changed, 106 insertions(+), 168 deletions(-)

commit d3b0fd9a76e1f6ace83b50f8c1bc9db096a8fbc7
Author: Oliver Sander <oliver.sander@tu-dresden.de>
Date:   Mon Mar 14 11:43:37 2022 +0100

    Simplify method _ft_new_face_uncached

    It is only called if there is no font in memory (font_data ==
    nullptr).

    Therefore, there is no need to pass font_data to the method.

 poppler/CairoFontEngine.cc | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

commit 6da92d028268aa92ed955905551bcc6c5acb26e4
Author: Oliver Sander <oliver.sander@tu-dresden.de>
Date:   Mon Mar 14 09:59:02 2022 +0100

    Pass around font memory buffers as unsigned char

    In FoFiBase, the memory buffer for fonts is stored as unsigned char.
    At the same time, the code in Stream hands out memory as unsigned
    char.
    Yet, the pointers to this memory is then casted to signed char,
    and passed around as that.

    This commit removes some of this casting, and uses more unsigned
    chars.

 fofi/FoFiBase.cc             |  4 ++--
 fofi/FoFiBase.h              |  2 +-
 fofi/FoFiTrueType.cc         | 16 ++++++++--------
 fofi/FoFiTrueType.h          |  4 ++--
 fofi/FoFiType1.cc            |  6 +++---
 fofi/FoFiType1.h             |  4 ++--
 fofi/FoFiType1C.cc           | 10 ++++------
 fofi/FoFiType1C.h            |  4 ++--
 poppler/CairoFontEngine.cc   | 10 +++++-----
 poppler/GfxFont.cc           |  8 +++-----
 poppler/GfxFont.h            |  2 +-
 poppler/PSOutputDev.cc       | 12 ++++++------
 poppler/SplashOutputDev.cc   |  2 +-
 qt5/src/QPainterOutputDev.cc |  6 +++---
 splash/SplashFontFile.cc     |  8 ++++++++
 splash/SplashFontFile.h      |  1 +
 16 files changed, 52 insertions(+), 47 deletions(-)

commit a246b6f16b990b1e448265e390dc718f0c5eb927
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 17 16:50:13 2022 +0100

    CI: Use the qt6 provided by debian

    Means increasing our minimum requirement to 6.2, but honestly
    if you're
    on Qt6 there's no reason not to use that one.

 .gitlab-ci.yml | 20 ++++----------------
 CMakeLists.txt |  2 +-
 2 files changed, 5 insertions(+), 17 deletions(-)

commit 45f43fddfe823170c6d1f0bb92efb3179b8d1feb
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 17 16:47:34 2022 +0100

    Make cidToGIDLen unsigned

    Ideally we'd make it a vector, but it's all a bit convoluted,
    so settle
    for unsigned int for now

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

commit 98f948365cb141f4ca9707d3ea8f74d928dc4dfc
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 17 16:32:21 2022 +0100

    Move AnnotAppearanceBuilder::writeString to std::string

 poppler/Annot.cc | 22 +++++++++-------------
 poppler/Annot.h  |  2 +-
 2 files changed, 10 insertions(+), 14 deletions(-)

commit 9c1c8dcdae6eef00651d2189ff2288752eac52c0
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 17 15:55:30 2022 +0100

    Form: Don't store stuff we don't use

 poppler/Catalog.cc | 2 +-
 poppler/Form.cc    | 8 ++++----
 poppler/Form.h     | 6 +-----
 3 files changed, 6 insertions(+), 10 deletions(-)

commit 11c63a7bb9bfc2c997883ba81ff5f39f81697704
Author: Oliver Sander <oliver.sander@tu-dresden.de>
Date:   Wed Mar 16 09:20:31 2022 +0000

    Rewrite Cairo font caching without hashing the entire font

 poppler/CairoFontEngine.cc | 134
 +++++++++++++++------------------------------
 1 file changed, 44 insertions(+), 90 deletions(-)

commit 98a2253cb56a73a8b9658ae4e1fb06430feed7f2
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Mar 15 22:58:59 2022 +0100

    Limit complaining about missing ID for encrypted files

    Fixes #1228

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

commit 6551e1676265f8ae0b7aab4da87f25bc7e281bae
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Mar 15 16:45:33 2022 +0100

    Fix crash caused by efe7d77838896ddcefb838f382628ae31be54d99

 splash/SplashFontFile.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

commit 4f1f202f9e4db08f6dd2ba9c6a96decbefb10899
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Mar 15 15:56:42 2022 +0100

    Update (C)

 splash/SplashFTFontFile.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit efe7d77838896ddcefb838f382628ae31be54d99
Author: Oliver Sander <oliver.sander@tu-dresden.de>
Date:   Tue Mar 15 11:03:58 2022 +0100

    Use std::string for filename in SplashFontSrc

 poppler/SplashOutputDev.cc | 14 +++++++-------
 splash/SplashFTFontFile.cc |  6 +++---
 splash/SplashFontFile.cc   |  8 ++------
 splash/SplashFontFile.h    |  7 ++++---
 4 files changed, 16 insertions(+), 19 deletions(-)

commit 27a6d29018817a2263d69aadeb965dee3f5bc927
Author: Oliver Sander <oliver.sander@tu-dresden.de>
Date:   Tue Mar 15 10:51:46 2022 +0100

    Remove the deleteSrc variable from SplashFontSrc

    The way SplashFontSrc is used the variable is always equal
    to !isFile.

 poppler/SplashOutputDev.cc |  4 ++--
 splash/SplashFontFile.cc   | 20 ++++++--------------
 splash/SplashFontFile.h    |  6 +++---
 3 files changed, 11 insertions(+), 19 deletions(-)

commit d6f3aabff3442d3a78de13917e8222d7896e526a
Author: Oliver Sander <oliver.sander@tu-dresden.de>
Date:   Tue Mar 15 10:47:01 2022 +0100

    Remove method SplashFontSrc::setFile(const char *file, bool del)

    It is never used.

 splash/SplashFontFile.cc | 7 -------
 splash/SplashFontFile.h  | 1 -
 2 files changed, 8 deletions(-)

commit 81044c64b9ed9a10ae82a28bac753060bdfdac74
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Mar 15 15:14:32 2022 +0100

    Hints::readTables: bail out if we run out of file when reading

    Fixes #1230

 poppler/Hints.cc | 24 +++++++++++++++++-------
 1 file changed, 17 insertions(+), 7 deletions(-)

commit 5e2271f8ca858b5aa80a7988b9f404a74a5abaa4
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Mar 15 15:00:25 2022 +0100

    cpp: Remove no longer needed const_cast

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

commit 946aaf446503e2036a7f1323c2ff9e5d2465f6f1
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Mar 15 14:24:26 2022 +0100

    cpp: Remove bit size qualifier from format variable

    The standard doesn't guarantee if the types of enums is going to be
    signed or not, specifically MSVC uses unsigned so you can't store all
    the enums in just 3 bits

    Fixes #1229

 cpp/poppler-image-private.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 4561600ad379f564d6e89ba9120c3b8550e82b3b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Mar 15 14:15:48 2022 +0100

    Update (C)

 utils/pdftotext.cc | 1 +
 1 file changed, 1 insertion(+)

commit 24eb205af26a187e571b00011963977eb9de77dc
Author: kVdNi <kVdNi@waqa.eu>
Date:   Sun Mar 13 18:26:47 2022 +0100

    pdftotext now prints creation and modification date when using
    htmlmeta param

    Partially addressing poppler/poppler#136. When using the -htmlmeta
    command line parameter, the meta tags for CreationDate and ModDate are
    now showing the ISO formatted timestamps of the PDF instead of showing
    always empty values.
    Implementation of date parsing based on the implementation inside
    pdfinfo.cc.

 utils/pdftotext.cc | 29 +++++++++++++++++++++--------
 1 file changed, 21 insertions(+), 8 deletions(-)

commit faa45adef0c4745ca4e8ba784e1559fda5e1fa8f
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Mar 15 00:03:41 2022 +0100

    Update (C) from last commit

 fofi/FoFiTrueType.cc | 1 +
 1 file changed, 1 insertion(+)

commit c612cba087668456b254e861724fbe9809181f16
Author: Zachary Travis <ztravis@everlaw.com>
Date:   Sun Mar 13 22:52:59 2022 -0700

    Add support for format 13 as well

 fofi/FoFiTrueType.cc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

commit 1e9f1f69ad235536b64e757ce2e6429e47a508af
Author: Zachary Travis <ztravis@everlaw.com>
Date:   Sun Mar 13 20:49:21 2022 -0700

    Type 2 cmap

 fofi/FoFiTrueType.cc | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

commit 4781a9c0b287555c017c2f08d22bfab014c8acdb
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Mar 14 00:28:45 2022 +0100

    Update .git-blame-ignore-revs

 .git-blame-ignore-revs | 2 ++
 1 file changed, 2 insertions(+)

commit f7466e31408ba884c44728f7da04227863177241
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 3 00:28:43 2022 +0100

    Add readability-braces-around-statements

 .clang-tidy                        |   8 +
 .gitlab-ci.yml                     |  17 +-
 cpp/poppler-document.cpp           |   3 +-
 cpp/poppler-global.cpp             |   3 +-
 cpp/poppler-image.cpp              |   3 +-
 cpp/poppler-page.cpp               |  19 +-
 cpp/tests/poppler-dump.cpp         |  11 +-
 fofi/FoFiTrueType.cc               |  24 +-
 fofi/FoFiType1.cc                  |  27 +-
 fofi/FoFiType1C.cc                 |   6 +-
 glib/demo/annots.c                 |  68 ++--
 glib/demo/attachments.c            |  15 +-
 glib/demo/find.c                   |  43 ++-
 glib/demo/fonts.c                  |  25 +-
 glib/demo/forms.c                  |  12 +-
 glib/demo/images.c                 |   9 +-
 glib/demo/info.cc                  |   3 +-
 glib/demo/layers.c                 |  15 +-
 glib/demo/links.c                  |   6 +-
 glib/demo/outline.c                |   6 +-
 glib/demo/page.c                   |   8 +-
 glib/demo/print.c                  |   6 +-
 glib/demo/render.c                 |  26 +-
 glib/demo/selections.c             |  63 ++--
 glib/demo/taggedstruct.c           |  16 +-
 glib/demo/text.c                   |  12 +-
 glib/demo/transitions.c            |  12 +-
 glib/demo/utils.c                  |  26 +-
 glib/poppler-action.cc             |  90 +++--
 glib/poppler-annot.cc              |  30 +-
 glib/poppler-attachment.cc         |  21 +-
 glib/poppler-cached-file-loader.cc |  15 +-
 glib/poppler-date.cc               |   3 +-
 glib/poppler-document.cc           | 183 +++++++----
 glib/poppler-form-field.cc         |  25 +-
 glib/poppler-input-stream.cc       |   3 +-
 glib/poppler-layer.cc              |   9 +-
 glib/poppler-media.cc              |   3 +-
 glib/poppler-page.cc               | 102 ++++--
 glib/poppler-structure-element.cc  | 100 ++++--
 glib/poppler.cc                    |   6 +-
 glib/tests/check_bb.c              |   3 +-
 glib/tests/check_text.c            |   6 +-
 glib/tests/pdfdrawbb.c             |  15 +-
 goo/GooString.cc                   |   9 +-
 goo/GooTimer.cc                    |   6 +-
 goo/NetPBMWriter.cc                |   6 +-
 goo/PNGWriter.cc                   |   5 +-
 goo/gfile.cc                       |  27 +-
 goo/gstrtod.cc                     |  32 +-
 poppler/Annot.cc                   | 448 ++++++++++++++++---------
 poppler/AnnotStampImageHelper.cc   |   3 +-
 poppler/BBoxOutputDev.cc           |  34 +-
 poppler/CMap.cc                    |   3 +-
 poppler/CachedFile.cc              |  36 +-
 poppler/CairoFontEngine.cc         |  38 ++-
 poppler/CairoOutputDev.cc          | 364 ++++++++++++++-------
 poppler/CairoRescaleBox.cc         |   6 +-
 poppler/Catalog.cc                 |  94 ++++--
 poppler/CharCodeToUnicode.cc       |   6 +-
 poppler/CurlCachedFile.cc          |   3 +-
 poppler/DCTStream.cc               |  37 ++-
 poppler/DateInfo.cc                |  21 +-
 poppler/Decrypt.cc                 |  15 +-
 poppler/Dict.cc                    |   3 +-
 poppler/FDPDFDocBuilder.cc         |  14 +-
 poppler/FILECacheLoader.cc         |   3 +-
 poppler/FileSpec.cc                |  27 +-
 poppler/FontInfo.cc                |   9 +-
 poppler/Form.cc                    | 328 ++++++++++++-------
 poppler/Function.cc                |  12 +-
 poppler/Gfx.cc                     | 157 +++++----
 poppler/GfxFont.cc                 | 118 ++++---
 poppler/GfxState.cc                | 203 ++++++++----
 poppler/GlobalParams.cc            | 112 ++++---
 poppler/Hints.cc                   |  69 ++--
 poppler/JBIG2Stream.cc             |  27 +-
 poppler/JPEG2000Stream.cc          |  54 +--
 poppler/JSInfo.cc                  |   9 +-
 poppler/Lexer.cc                   |  35 +-
 poppler/Lexer.h                    |   3 +-
 poppler/Linearization.cc           |   3 +-
 poppler/Link.cc                    |  18 +-
 poppler/MarkedContentOutputDev.cc  |  53 ++-
 poppler/MarkedContentOutputDev.h   |   3 +-
 poppler/Movie.cc                   |  13 +-
 poppler/Object.cc                  |   3 +-
 poppler/Object.h                   |   3 +-
 poppler/OptionalContent.cc         |   6 +-
 poppler/Outline.cc                 |   5 +-
 poppler/Outline.h                  |   5 +-
 poppler/OutputDev.cc               |   6 +-
 poppler/PDFDoc.cc                  | 104 +++---
 poppler/PSOutputDev.cc             |  93 ++++--
 poppler/Page.cc                    |  50 ++-
 poppler/PageLabelInfo.cc           |  14 +-
 poppler/PageLabelInfo_p.h          |  27 +-
 poppler/PageTransition.cc          |  38 ++-
 poppler/Parser.cc                  |  28 +-
 poppler/PreScanOutputDev.cc        |   6 +-
 poppler/ProfileData.cc             |   6 +-
 poppler/Rendition.cc               |  23 +-
 poppler/SignatureHandler.cc        | 168 ++++++----
 poppler/Sound.cc                   |   3 +-
 poppler/SplashOutputDev.cc         | 224 ++++++++-----
 poppler/Stream.cc                  | 238 +++++++++-----
 poppler/Stream.h                   |  11 +-
 poppler/StructElement.cc           | 119 ++++---
 poppler/StructElement.h            |  12 +-
 poppler/StructTreeRoot.cc          |   9 +-
 poppler/TextOutputDev.cc           | 295 +++++++++++------
 poppler/UTF.cc                     |  58 ++--
 poppler/UnicodeMap.cc              |   3 +-
 poppler/UnicodeTypeTable.cc        |  70 ++--
 poppler/ViewerPreferences.cc       |   6 +-
 poppler/XRef.cc                    |  76 +++--
 qt5/demos/pageview.cpp             |   9 +-
 qt5/demos/toc.cpp                  |  11 +-
 qt5/src/QPainterOutputDev.cc       |   6 +-
 qt5/src/poppler-annotation.cc      | 655
 ++++++++++++++++++++++++-------------
 qt5/src/poppler-document.cc        |  51 ++-
 qt5/src/poppler-embeddedfile.cc    |   6 +-
 qt5/src/poppler-fontinfo.cc        |   3 +-
 qt5/src/poppler-form.cc            |  73 +++--
 qt5/src/poppler-link-extractor.cc  |   6 +-
 qt5/src/poppler-link.cc            |  33 +-
 qt5/src/poppler-media.cc           |  25 +-
 qt5/src/poppler-optcontent.cc      |   3 +-
 qt5/src/poppler-outline.cc         |   3 +-
 qt5/src/poppler-page.cc            |  73 +++--
 qt5/src/poppler-pdf-converter.cc   |   8 +-
 qt5/src/poppler-private.cc         |  21 +-
 qt5/src/poppler-private.h          |   9 +-
 qt5/src/poppler-ps-converter.cc    |  23 +-
 qt5/src/poppler-sound.cc           |   6 +-
 qt5/tests/check_annotations.cpp    |   3 +-
 qt5/tests/check_fonts.cpp          |  18 +-
 qt5/tests/check_forms.cpp          |  21 +-
 qt5/tests/check_utf_conversion.cpp |   9 +-
 qt5/tests/poppler-forms.cpp        |   8 +-
 qt5/tests/poppler-page-labels.cpp  |   9 +-
 qt5/tests/poppler-texts.cpp        |   3 +-
 qt5/tests/test-poppler-qt5.cpp     |   3 +-
 qt6/demos/pageview.cpp             |   9 +-
 qt6/demos/toc.cpp                  |  11 +-
 qt6/src/QPainterOutputDev.cc       |   6 +-
 qt6/src/poppler-annotation.cc      | 368 +++++++++++++--------
 qt6/src/poppler-document.cc        |  36 +-
 qt6/src/poppler-embeddedfile.cc    |   9 +-
 qt6/src/poppler-fontinfo.cc        |   3 +-
 qt6/src/poppler-form.cc            |  73 +++--
 qt6/src/poppler-link-extractor.cc  |   6 +-
 qt6/src/poppler-link.cc            |  33 +-
 qt6/src/poppler-media.cc           |  25 +-
 qt6/src/poppler-optcontent.cc      |   3 +-
 qt6/src/poppler-outline.cc         |   3 +-
 qt6/src/poppler-page.cc            |  73 +++--
 qt6/src/poppler-pdf-converter.cc   |   8 +-
 qt6/src/poppler-private.cc         |   6 +-
 qt6/src/poppler-private.h          |   9 +-
 qt6/src/poppler-ps-converter.cc    |  23 +-
 qt6/src/poppler-sound.cc           |   6 +-
 qt6/tests/check_annotations.cpp    |   3 +-
 qt6/tests/check_fonts.cpp          |  18 +-
 qt6/tests/check_forms.cpp          |  21 +-
 qt6/tests/check_utf_conversion.cpp |   9 +-
 qt6/tests/poppler-forms.cpp        |   8 +-
 qt6/tests/poppler-page-labels.cpp  |   9 +-
 qt6/tests/poppler-texts.cpp        |   3 +-
 qt6/tests/test-poppler-qt6.cpp     |   3 +-
 splash/Splash.cc                   | 195 +++++++----
 splash/SplashBitmap.cc             |  36 +-
 splash/SplashFTFont.cc             |   3 +-
 splash/SplashFTFontFile.cc         |  18 +-
 splash/SplashFont.cc               |   3 +-
 splash/SplashFontEngine.cc         |  18 +-
 splash/SplashFontFile.cc           |  12 +-
 splash/SplashMath.h                |   5 +-
 splash/SplashPath.cc               |  12 +-
 splash/SplashScreen.cc             |   3 +-
 splash/SplashScreen.h              |   6 +-
 splash/SplashState.cc              |   3 +-
 splash/SplashTypes.h               |  15 +-
 splash/SplashXPath.cc              |   3 +-
 splash/SplashXPathScanner.cc       |  15 +-
 test/gtk-test.cc                   |  18 +-
 test/pdf-fullrewrite.cc            |   6 +-
 test/pdf-inspector.cc              |  13 +-
 test/perf-test.cc                  | 176 ++++++----
 utils/HtmlFonts.cc                 |  25 +-
 utils/HtmlLinks.cc                 |   9 +-
 utils/HtmlOutputDev.cc             | 188 +++++++----
 utils/HtmlUtils.h                  |   6 +-
 utils/ImageOutputDev.cc            |  99 +++---
 utils/InMemoryFile.cc              |   3 +-
 utils/parseargs.cc                 |  45 ++-
 utils/pdfdetach.cc                 |  18 +-
 utils/pdffonts.cc                  |   3 +-
 utils/pdfimages.cc                 |  12 +-
 utils/pdfinfo.cc                   |  23 +-
 utils/pdfseparate.cc               |   6 +-
 utils/pdfsig.cc                    |   3 +-
 utils/pdftocairo.cc                | 185 +++++++----
 utils/pdftohtml.cc                 |  31 +-
 utils/pdftoppm.cc                  |  45 ++-
 utils/pdftops.cc                   |   8 +-
 utils/pdftotext.cc                 |  21 +-
 utils/pdfunite.cc                  |  12 +-
 208 files changed, 5501 insertions(+), 2964 deletions(-)

commit 451acd97906681da4b385c8bb52a5dc971abb7fc
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Mar 4 19:45:56 2022 +0100

    Make GooFile::open return an unique_ptr

    Sadly uncovers a memory leak on poppler_document_new_from_fd

 glib/poppler-document.cc   |  5 +++--
 goo/gfile.cc               | 14 +++++++-------
 goo/gfile.h                | 10 ++++++----
 poppler/GlobalParamsWin.cc |  8 +++-----
 poppler/PDFDoc.cc          |  7 +++----
 poppler/PDFDoc.h           |  2 +-
 6 files changed, 23 insertions(+), 23 deletions(-)
