commit d2dd9c322542eb7ea9e3e0b8324b33b3af9d8b1e
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue May 3 22:18:46 2022 +0200

    poppler 22.05.0

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

commit ac9b736c3f20704a41db9102589fa259abb26891
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue May 3 00:16:00 2022 +0200

    Fix rendering regression introduced in
    5f915d46c99ecbc0c026b86de50f9e0243391a01

    We can't assume "Fields" needs to exist, there's other things
    there like
    NeedAppearances that are valid without Fields

    The bug in Catalog::addFormToAcroForm remains, but will need to
    wait to
    get fixed on next release

 poppler/Catalog.cc | 6 ------
 1 file changed, 6 deletions(-)

commit 133d0b06c61fae2b1ad1cb4164d10eddba589049
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Apr 30 10:03:39 2022 +0200

    Update (C)

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

commit 8ce9069f5dff8636373c546f33495908a963777e
Author: Nelson Benítez León <nbenitezl@gmail.com>
Date:   Sat Apr 23 18:14:37 2022 -0400

    fix multiline find_text() bug in two column docs

    Fix for a bug in double column documents where some
    single line matches are wrongly returned as being
    multiline matches.

    Includes test case for the bug.

 glib/poppler-page.cc       |  6 +++---
 poppler/TextOutputDev.cc   |  6 ++++++
 qt5/tests/check_search.cpp | 22 ++++++++++++++++++++++
 qt6/tests/check_search.cpp | 22 ++++++++++++++++++++++
 4 files changed, 53 insertions(+), 3 deletions(-)

commit 309004931712476b0ee751fc60224a87c14daf56
Author: Nelson Benítez León <nbenitezl@gmail.com>
Date:   Mon Apr 18 20:03:49 2022 -0400

    fix bug in multiline find_text()

    which caused some false positives being returned.

    Includes test case for the bug.

    See original comment about this bug:
    https://gitlab.gnome.org/GNOME/evince/-/merge_requests/159#note_1431380

 poppler/TextOutputDev.cc   | 3 ++-
 qt5/tests/check_search.cpp | 5 +++++
 qt6/tests/check_search.cpp | 5 +++++
 3 files changed, 12 insertions(+), 1 deletion(-)

commit 85b487c5f71ab0352fcda9ea86cca16f959004b0
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Apr 25 20:56:05 2022 +0200

    Update (C)

 utils/HtmlOutputDev.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 44533caf6b74ec3d531eb7ceec6ed2a31b24079a
Author: Adrian Johnson <ajohnson@redneon.com>
Date:   Mon Apr 25 19:46:22 2022 +0930

    HtmlOutputDev: don't use png.h

    It is not needed. Fixes mingw build that was failing with png.h
    not found.

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

commit 8ed7d5633db76df10ef340edc31f1cc868e3ab02
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 22 13:47:18 2022 +0200

    Rework GetWindowsFontDir

 goo/GooString.h            |  5 +++++
 poppler/GlobalParams.cc    |  2 +-
 poppler/GlobalParamsWin.cc | 39 +++++++++++++++++----------------------
 3 files changed, 23 insertions(+), 23 deletions(-)

commit 74f11fbcffda7679d1b2e16f82668d482677ab8c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 22 11:12:37 2022 +0200

    Stream: Fix two types to hold what the are stored to

 poppler/Stream.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

commit 67190c0a05045d3c3eef4d5f0eaeb4435eb59c7c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Apr 20 19:58:56 2022 +0200

    CI: -Werror for the Android builder

 .gitlab-ci.yml          | 1 +
 poppler/GfxState.cc     | 2 ++
 poppler/GlobalParams.cc | 4 ++++
 3 files changed, 7 insertions(+)

commit 2656d986d01da5aea4f51c75e4deee569ca88064
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Apr 2 22:21:35 2022 +0200

    cpp: Use time_t for time

    The existing time_type is unsigned int which suffers from the Y2K38
    problem

 cpp/poppler-document.cpp      | 136
 +++++++++++++++++++++++++++++++++++++++++-
 cpp/poppler-document.h        |  20 ++++---
 cpp/poppler-embedded-file.cpp |  26 +++++++-
 cpp/poppler-embedded-file.h   |   8 ++-
 cpp/poppler-global.cpp        |  11 +++-
 cpp/poppler-global.h          |   6 +-
 cpp/tests/poppler-dump.cpp    |   8 +--
 7 files changed, 195 insertions(+), 20 deletions(-)

commit bd7bc10636ce20159133f846dfc337f2ab92b5ed
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Apr 18 19:34:52 2022 +0200

    CI: Update mingw to fedora 36

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

commit 368465a8ce191a5756abae90d49ca861fae104e7
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 15 10:43:31 2022 +0200

    Update (C)

 poppler/Form.cc         | 1 +
 poppler/Form.h          | 1 +
 qt5/src/poppler-form.cc | 1 +
 qt6/src/poppler-form.cc | 1 +
 4 files changed, 4 insertions(+)

commit 10d74ff226b8b7e930a75b050664272df30c2aba
Author: Alexander Sulfrian <asulfrian@zedat.fu-berlin.de>
Date:   Thu Apr 14 00:43:58 2022 +0200

    qt: Pass leftFontSize down to
    `FormWidgetSignature::signDocumentWithAppearence`

    A similar issue for `PDFDoc::sign` was already fixed in:
    864466a6753014106448f1a6c0000aa68bedf101

 poppler/Form.cc         | 3 ++-
 poppler/Form.h          | 2 +-
 qt5/src/poppler-form.cc | 5 +++--
 qt6/src/poppler-form.cc | 5 +++--
 4 files changed, 9 insertions(+), 6 deletions(-)

commit 6a4bbacbfa0c914162ffb23cc759a9adafc9e295
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Apr 14 01:23:55 2022 +0200

    Fix crash in very badly damaged documents when adding a freetext
    annotation

    oss-fuzz/46497

 poppler/Catalog.cc            |  9 +++++++--
 poppler/Catalog.h             |  1 +
 qt5/src/poppler-annotation.cc | 18 ++++++++++--------
 qt6/src/poppler-annotation.cc | 18 ++++++++++--------
 4 files changed, 28 insertions(+), 18 deletions(-)

commit 7ff9c7847a0f64a5db026ecbefbb14b37938f2d2
Author: Pablo Rodríguez <1425-ousia@users.noreply.gitlab.freedesktop.org>
Date:   Wed Apr 13 15:26:28 2022 +0000

    Correct typo in `poppler-structure-element.cc`

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

commit 3ca9992ad4660d979491829048a6da84be192671
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 8 11:26:29 2022 +0200

    MSVC: Fix conversion warnings

    Make the conversions from double to int/char explicit, we want them

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

commit b1ad047408152e4a36f170728b6e97784fa48395
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 8 11:21:09 2022 +0200

    MSVC: type conversion warning fix

    Don't support adding fonts bigger than INT_MAX

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

commit 6f9f838341173667d2a253df64f1706392649564
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 8 11:18:57 2022 +0200

    MSVC: type warning fixes

    outBuf is 16384 long so we can cast its ptrdiff_t to int fine

 poppler/FlateEncoder.cc |  8 ++++----
 poppler/JBIG2Stream.cc  | 13 ++++++-------
 2 files changed, 10 insertions(+), 11 deletions(-)

commit 23c70adb7671c174ee5084eb28cd0100f8877065
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 8 11:15:41 2022 +0200

    MSVC: type conversion warnings

    int to size_t
    float to double

 utils/HtmlLinks.cc     | 6 +++---
 utils/HtmlLinks.h      | 6 +++---
 utils/HtmlOutputDev.cc | 4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

commit 0ccae23433365297acb391471cc783be03d33c30
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 8 10:47:01 2022 +0200

    MSVC: More warning fixes

     * Add casts that convert between types but we know the value
     inside the
       bigger type will be small enough
     * Some ceil/round/floor -> int cast
     * Add forced casts because the destination type is needed
     * Add some casts (distance between characters in an user option
     will be
       int) which potentially could be wrong, but noone is going to write
       such a long parameter in the command line

 fofi/FoFiType1.cc         |  6 +++---
 goo/grandom.cc            |  3 ++-
 utils/pdftocairo-win32.cc | 24 ++++++++++++------------
 utils/pdftocairo.cc       |  6 +++---
 utils/pdftoppm.cc         |  4 ++--
 5 files changed, 22 insertions(+), 21 deletions(-)

commit bea57d66fdba3c51b60fc6899481f6eb156c3b50
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Apr 7 13:52:47 2022 +0200

    FoFiOutputFunc: Use size_t instead of int

 fofi/FoFiBase.h                 | 4 ++--
 poppler/PSOutputDev.cc          | 2 +-
 qt5/src/poppler-ps-converter.cc | 4 ++--
 qt6/src/poppler-ps-converter.cc | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

commit 85e5dfb062a19cf0b4ee531746a941f6dadf1cdd
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Apr 7 13:50:37 2022 +0200

    easier to understand definition for FoFiOutputFunc

 fofi/FoFiBase.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 5973e32c9366f000c48d4a4f939abf2699faf145
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Apr 7 13:49:33 2022 +0200

    PSOutputFunc -> FoFiOutputFunc

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

commit fae5ec7071c928a6163924ecdc6719806710b975
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Mar 24 17:43:39 2022 +0100

    AnnotAppearanceBuilder::drawText: Make dx, dy const

 poppler/Annot.cc | 45 ++++++++++++++++++++++-----------------------
 1 file changed, 22 insertions(+), 23 deletions(-)

commit 487e62541df7ebc2278e84b7b1e3b021e86facc5
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Apr 6 14:58:26 2022 +0200

    ImgWriter::init: take double for dpi instead of int

    In pdftoppm/pdftocairo the dpi are doubles, so pass them down
    as doubles
    as much as we can until we need to convert them to ints (in some
    formats
    like Tiff, we don't even need to do it since dpi is also a double)

 goo/ImgWriter.h        |  4 ++--
 goo/JpegWriter.cc      | 15 +++++++++++----
 goo/JpegWriter.h       |  4 ++--
 goo/NetPBMWriter.cc    |  4 ++--
 goo/NetPBMWriter.h     |  4 ++--
 goo/PNGWriter.cc       | 18 +++++++++++++++---
 goo/PNGWriter.h        |  4 ++--
 goo/TiffWriter.cc      |  8 ++++----
 goo/TiffWriter.h       |  4 ++--
 splash/SplashBitmap.cc |  8 ++++----
 splash/SplashBitmap.h  |  8 ++++----
 11 files changed, 50 insertions(+), 31 deletions(-)

commit bcec8308c5c7ce7a781097dbd5669603b66b3e6a
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Apr 6 14:36:45 2022 +0200

    Fix warning when compiling on FreeBSD

 utils/InMemoryFile.cc | 2 +-
 utils/InMemoryFile.h  | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

commit 0b474ffb990a8285a6d3c2bf157b32b2264fb140
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Mar 23 13:35:01 2022 +0100

    Forms: Make sure we embedd fonts as needed

    And a bit of refactoring :)

 poppler/Annot.cc | 433
 +++++++++++++++++++++++++++++++------------------------
 poppler/Annot.h  |   8 +-
 poppler/Form.cc  |  33 +++--
 3 files changed, 275 insertions(+), 199 deletions(-)

commit db7865c6a38dd9d26d8b16ab2727fcec311efad8
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Mar 23 13:35:01 2022 +0100

    Signatures: Make sure we embed the needed fonts

 poppler/Annot.cc  | 213
 +++++++++++++++++++++++++-----------------------------
 poppler/Annot.h   |   3 +-
 poppler/Form.cc   |  25 +++++--
 poppler/Form.h    |   6 +-
 poppler/PDFDoc.cc |  10 ++-
 5 files changed, 131 insertions(+), 126 deletions(-)

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

    Annotations: Make sure we embed fonts for the FreeText annots

 poppler/Annot.cc              | 194 +++++++++++++++++++++++----
 poppler/Annot.h               |   7 +-
 poppler/Catalog.cc            |  66 +++++----
 poppler/Catalog.h             |   2 +
 poppler/Dict.cc               |  10 ++
 poppler/Dict.h                |   7 +-
 poppler/Form.cc               | 301
 +++++++++++++++++++++++++++++++++++++++++-
 poppler/Form.h                |  26 +++-
 poppler/GlobalParams.cc       | 117 ++++++++++++++++
 poppler/GlobalParams.h        |  28 ++++
 poppler/GlobalParamsWin.cc    |  47 +++++++
 poppler/PDFDoc.cc             |   2 +
 qt5/src/poppler-annotation.cc |  68 +++++++---
 qt6/src/poppler-annotation.cc |  69 ++++++----
 14 files changed, 842 insertions(+), 102 deletions(-)

commit 8a06776bc89ae8f4fa1655befb6d3a24e161150b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Apr 5 16:50:56 2022 +0200

    cpp: MSVC warning fixes

    Cast from time_t to time_type because they are not the same type
    anymore on systems that are protected from the Y2K38 problem

    Actual fix for that coming in a different patch

 cpp/poppler-document.cpp      | 6 +++---
 cpp/poppler-embedded-file.cpp | 4 ++--
 cpp/poppler-global.cpp        | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

commit d55f9ee33ea3a7d233b9e40a548345bc0ca7653f
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Apr 5 16:40:38 2022 +0200

    cpp: Add page_transition::durationReal

    The duration is really a double, so add a function that doesn't turns
    that double into an int

 cpp/poppler-page-transition.cpp | 7 ++++++-
 cpp/poppler-page-transition.h   | 5 +++--
 2 files changed, 9 insertions(+), 3 deletions(-)

commit 069f5c9c1e165aedbf9cf44813bff7ee70c9fd45
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Apr 5 16:28:24 2022 +0200

    Update (C)

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

commit 7f2b2964297e4d381b43ad5710540fedfe216a2c
Author: Adrian Johnson <ajohnson@redneon.com>
Date:   Sat Mar 19 17:59:39 2022 +1030

    Fix clang warning

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

commit 61f6d6d1492b9a8bfa19dfe4bfa4a7294a9a29bd
Author: Adrian Johnson <ajohnson@redneon.com>
Date:   Sat Mar 19 15:06:58 2022 +1030

    Cairo color type 3 fonts

    Fixes #729
    Fixes #944

 poppler/CairoFontEngine.cc | 26 +++++++++++++++++++++++---
 poppler/CairoOutputDev.cc  |  7 +++++++
 poppler/CairoOutputDev.h   |  2 ++
 3 files changed, 32 insertions(+), 3 deletions(-)

commit 5e57fc6025fdf9374cf77549265a2ccb9c91fbf8
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Apr 2 01:27:36 2022 +0200

    More MSVC fixes

    All the casts are protected by ifs that check the cast is in range or
    fails otherwise

 poppler/XRef.cc | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

commit f5aca2bea7481aecefd3062ab0f45820f24f4152
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Apr 2 01:12:37 2022 +0200

    Silence MSVC warning

    We know it's < 24576 so the cast is fine

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

commit 846249c2102d12d74739555483232088f55610cf
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Apr 2 01:01:57 2022 +0200

    Make MSVC happy

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

commit 42225a1413629c7f3ab8d495267ab9deca485bef
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Apr 2 00:47:12 2022 +0200

    Protect against abnormally long strings

 poppler/PageLabelInfo_p.h | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

commit e7adc2c5fa0559d8dea76c67e37f7be3f50237a0
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Apr 2 00:36:03 2022 +0200

    More GooString to size_t where it makes some sense

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

commit 9037292ae440fdb959252264da7cd58db16322c0
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Apr 2 00:25:38 2022 +0200

    No reason to limit how much we can append in GooString::append

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

commit da5040330f6cdf4aaf88bddd125be22bebb4d214
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Apr 2 00:24:41 2022 +0200

    Fix MSVC warning

 poppler/GfxState.cc            | 8 ++++----
 poppler/ImageEmbeddingUtils.cc | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

commit eecd243425f51b2fecc8e58cccb4c183e3181976
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Apr 2 00:16:58 2022 +0200

    protect against big files

 poppler/ImageEmbeddingUtils.cc | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

commit 2cf97eaa7a8ed9b1305b2e132b8324d5fc3c582f
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Apr 2 00:00:33 2022 +0200

    Cast the proper addition

    apologies, it's late :/

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

commit deb36a4e808a08b990413bf688acd72cc007aa45
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 1 23:47:08 2022 +0200

    Make MSVC happy

    limit is always > than current
    and after the if we know that left is < nChars

 poppler/DCTStream.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

commit 1e9e4619671a14ff3d137f013f04f7e6904c5d2e
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 1 23:43:12 2022 +0200

    JPEG2000Stream: Some wrangling with the data types

    I think this is more correct, and also makes MSVC happier

 poppler/JPEG2000Stream.cc | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

commit 5c977b6619b6dbb60da223e38ad601a7bd6b3a26
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 1 23:04:26 2022 +0200

    Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T instead of
    CURLINFO_CONTENT_LENGTH_DOWNLOAD

    As the own curl documetnation says "returns a more sensible variable
    type"

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

commit 695d1a6d6d64fad8303ca653666a96f9f880c46e
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 1 22:43:40 2022 +0200

    Move MSVC warning silencing

    The static_casts are fine because the surrounding code makes sure they
    are in range
    The int -> intptr_t makes sense and the surrounding code is already
    goffset so that should be all good

 goo/glibc.cc        | 3 ++-
 poppler/DateInfo.cc | 4 ++--
 poppler/Form.cc     | 6 +++---
 poppler/XRef.cc     | 2 +-
 4 files changed, 8 insertions(+), 7 deletions(-)

commit ea4beb12266344ab149e9124f5792d871c85b21d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 1 21:58:43 2022 +0200

    Silence MSVC warning

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

commit 64f9c8d0adefde789e6a16f01db7ba4e0f3f6fc5
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 1 16:57:48 2022 +0200

    Fix typo of d35e11a8f84d396a9d9ef43ef852d377adc3830a

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

commit 17cb4acb1f2a37504c0268003b33e92e98df4d53
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 1 16:52:47 2022 +0200

    Export base classes of exported classes

    Fixes MSVC warning 4275

 fofi/FoFiBase.h        | 2 +-
 poppler/Annot.h        | 2 +-
 poppler/Form.h         | 2 +-
 poppler/GfxState.h     | 2 +-
 splash/SplashPattern.h | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

commit 3608d950c0f90bcb64062fca30fb08ec918f02e1
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 1 16:49:36 2022 +0200

    We don't need this define anymore

    The define is provided by config.h

 poppler/GlobalParams.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

commit d35e11a8f84d396a9d9ef43ef852d377adc3830a
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 1 16:26:25 2022 +0200

    Annots: Just return the std::vector instead of two getters

    Simpler code to use and solves the int vs size_t mismatch by not
    having a
    type involved at all

 glib/poppler-page.cc          |  5 +----
 poppler/Annot.cc              |  4 ++--
 poppler/Annot.h               |  5 ++---
 poppler/FontInfo.cc           |  4 ++--
 poppler/Form.cc               |  7 +++----
 poppler/JSInfo.cc             | 14 +++++++-------
 poppler/Link.cc               |  3 +--
 poppler/PSOutputDev.cc        |  4 ++--
 poppler/Page.cc               | 17 ++++-------------
 qt5/src/poppler-annotation.cc | 10 ++--------
 qt6/src/poppler-annotation.cc | 10 ++--------
 utils/pdfdetach.cc            |  4 +---
 12 files changed, 29 insertions(+), 58 deletions(-)

commit af3e1e1a3577c4e1c66cbe69ebdc6a632038e299
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Apr 1 16:03:46 2022 +0200

    Link: Just return the std::vector instead of two getters

    Simpler code to use and solves the int vs size_t mismatch by not
    having a
    type involved at all

 glib/poppler-page.cc   | 5 +----
 poppler/Link.h         | 4 +---
 poppler/Page.cc        | 4 ++--
 utils/HtmlOutputDev.cc | 4 ++--
 utils/pdfinfo.cc       | 3 +--
 5 files changed, 7 insertions(+), 13 deletions(-)

commit 72cf19694952a8899f33fda1c448417d0a8d996a
Author: Luis Landeiro <ribeiro.luis@gmail.com>
Date:   Fri Apr 1 13:33:08 2022 +0000

    pdftotext: added TSV mode

 utils/pdftotext.1  |   4 ++
 utils/pdftotext.cc | 136
 ++++++++++++++++++++++++++++++++++++++++++++++-------
 2 files changed, 123 insertions(+), 17 deletions(-)

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 +---
