142 Commits

Author SHA1 Message Date
Liu Yiding
7898726229
poppler: upgrade 25.11.0 -> 25.12.0
Change log:
  core:
   * Be less strict about the Page Annots object being correct. Issue #1641
   * Fix rendering of some annotations. Issue #1642
   * TextOuputDev: change default line ending to \n
   * Splash: Performance improvements
   * Ignore color operators when painting a Type3 font with d1
   * Internal code improvements
   * Fix crashes in malformed documents

  utils:
   * pdfsig: specify search order for NSS certificate database on the man page

  build system:
   * Switch to C++23

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-08 23:22:18 -08:00
Liu Yiding
bac13f19ec
poppler: upgrade 25.10.0 -> 25.11.0
Changelog:
 core:
  * NSS Signatures: Tweak the logic that decides which firefox profile to use
  * NSS Signatures: call PORT_GetError() only if the preceding CERT_PKIXVerifyCert() fails
  * Splash: Performance improvements
  * Fix crashes in malformed documents

 glib:
  * Fix ocsp check for signatures validation
  * Fix warning when running glib-mkenums

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-18 08:17:53 -08:00
Hongxu Jia
cf34333304
poppler: fix racing build issue
There is a racing issue in world build while multilib enabled:

...log.do_install...
CMake Error at utils/po/ca/cmake_install.cmake:46 (file):
  file INSTALL cannot find
  "TOPDIR/tmp/work/core2-32-wrs-linux/poppler/25.08.0/build/utils/po/ca/pdfsig.gmo":
  No such file or directory.
Call Stack (most recent call first):
  utils/po/cmake_install.cmake:47 (include)
  utils/cmake_install.cmake:243 (include)
  cmake_install.cmake:229 (include)
...log.do_install...

The issue has reported to upstream [1][2] and upstream tried to fix it [3],
but the issue still existed. The catalan translation of pdfsig is not
vital for poppler. So revert upstream commit "pdfsig: Catalan translation"
to workaround

[1] https://gitlab.freedesktop.org/poppler/poppler/-/issues/1550
[1] https://gitlab.freedesktop.org/poppler/poppler/-/issues/1551
[2] 053acd5d2b

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-21 23:12:48 -07:00
Yogita Urade
76504627f4
poppler: upgrade 25.08.0 -> 25.10.0
This upgrade includes fix for CVE-2025-52885

Poppler 25.10.0 Changelog:
=========================
core:
* Fix image signature getting lost
* Don't embed substitutions for base14 fonts
* Form font improvements
* Handle signatures padded with random data
* Add feature to Ink annotation to render with multiply blend mode
* Internal code improvements
* Fix crashes in malformed documents

glib:
* Fix signature text
* Add feature to Ink annotation to render with multiply blend mode

cpp:
* Added embedded_file::unicodeName function

Poppler 25.09.1 Changelog:
==========================
core:
* Internal code improvements

build system:
* Fix generated .pc files when using old gpgme

Poppler 25.09.0 Changelog:
=========================
core:
* Speed improvements when reusing the same document with different output devices
* Speed improvements when reading from network file systems
* Internal code improvements
* Fix crashes in malformed documents

glib:
* fix ODR issue with enum

utils:
* pdftohtml: Fix text positioning. (Regressed in 25.07.0)

build system:
* Better pkgconfig support for static builds

Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-15 12:03:01 -07:00
Yogita Urade
fa9c926f4f
poppler: upgrade 25.06.0 -> 25.08.0
This upgrade includes fix for CVE-2025-50420.

poppler 25.08.0 changelog:
==========================
core:
* FormWidgetSignature::signDocumentWithAppearance: add imagePath parameter
* Fix parsing Distinguished Names that end with a hex string
* Fix crashes in malformed documents

glib:
* Add poppler_page_render_transparent_selection()
* Add missing since to the documentation

poppler 25.07.0 changelog:
==========================
core:
* Changed rendering of malformed documents to mimic what Adobe Reader does. Issue #1602
* Improvemenst in signature validation in the NSS backend
* Add more detailed output when signing fails
* Internal code improvements
* Fix crashes in malformed documents

utils:
* pdfsig: command line option for allowing PGP signatures in GnuPG backend

Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-08-06 23:36:53 -07:00
Yogita Urade
612b039c03
poppler: upgrade 25.04.0 -> 25.06.0
Includes fix for CVE-2025-52886

poppler 25.06.0 changelog:
==========================
core:
 * Fix writing dates back to file
 * Internal code improvements
 * Fix crashes in malformed documents

glib:
 * Add the ink annotation type
 * Add missing autopointers definitions

utils:
 * pdfsig: Add assert-signer feature
 * pdfsig: Return error code on error

poppler 25.05.0 changelog:
==========================
core:
 * Fix re-fetching after xref reconstruction. Issue #1584
 * Fix compilation with ENABLE_ZLIB_UNCOMPRESS=ON
 * Various annotation improvements. Issues #642, #1558, #1055
 * CairoFontEngine: invalidate broken embedded fonts. Issue #1453
 * Splash: Performance improvements
 * Internal code improvements

glib:
 * Small signature improvements

Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-07 10:00:53 -07:00
Yogita Urade
26ac73828c
poppler: upgrade 25.01.0 -> 25.04.0
Includes fix for CVE-2025-32364 and CVE-2025-32365

Changelog:
===========
core:
* Properly verify adbe.pkcs7.sha1 signatures
* Improve errors on signing failure
* Allow empty outline titles
* Fix error in Distinguished Name parsing
* Fix build with Android API < 29
* Fix parsing Level PG document string
* Internal code improvements
* Fix crashes in malformed documents

utils:
* pdfcairo: Fix document unit for SVG output

cpp:
* Add document::form_type
* Add document::has_javascript

build system:
* cmake: Use modern Python3 cmake module

Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-19 14:36:02 -07:00
Yogita Urade
901a6b2b61
poppler: upgrade 24.12.0 -> 25.01.0
Includes fix for CVE-2024-56378

Changelog:
===========
core:
* TextOutputDev: Better detect fakebold words
* TextOutputDev: Faster sorting algorithm
* Internal code improvements
* Fix crashes in malformed documents

cpp:
* Remove rect parameter from image::copy, it was never implemented

qt6:
* Fix crash in Submit Forms if document links to non existing field

qt5:
* Fix crash in Submit Forms if document links to non existing field

glib:
* mark transfer of poppler_page_get_selected_region

utils:
* pdfdetach: Make -savefile work with Unicode strings. Issue #1540

build system:
* Don't update pdfsig.pot when POT-Creation-date is the only change

Droped 0001-Don-t-update-pdfsig.pot-when-POT-Creation-date-is-th.patch
as this is available in 25.01.0

Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-01-20 20:20:26 -08:00
Changqing Li
230ddc9439
poppler: upgrade 24.11.0 -> 24.12.0
* Upgrade 24.11.0 -> 24.12.0
* Backport patch 0001-Don-t-update-pdfsig.pot-when-POT-Creation-date-is-th.patch
  to fix a parallel build issue, refer [1]

[1] https://gitlab.freedesktop.org/poppler/poppler/-/issues/1550

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-12-29 19:38:05 -08:00
Wang Mingyu
51e2d260b9
poppler: upgrade 24.09.0 -> 24.11.0
Changelog:
============
core:
* Fix rendering of some buttons
* Fix selecting fonts in TTC font collections
* CairoOutputDev: prevent infinite loop in functionShadedFill()
* Fix some unstable headers not being usable on their own
* Fix some headers not being usable on their own
* Add support for SubmitForms Links
* Internal code improvements
* Fix crash in malformed documents

glib:
* Fix some headers not being usable on their own
* add INSTALL_GLIB_DEMO option to install poppler-glib-demo
* Fix Launch action with unicode encoded filenames
* add auto_cleanup functions so that consumers can use g_auto*
* fix closure GI annotation

qt6:
* Fix memory handling issue on signature creation
* Fix Launch action with unicode encoded filenames
* Add support for SubmitForms Links
* Add API for creating signature field without signing immediately

qt5:
* Fix Launch action with unicode encoded filenames
* Add support for SubmitForms Links

build system:
* Remove duplicate definitions
* cmake: Set CMAKE_C_STANDARD to 17
* Use the boosts own cmake file as suggested by cmake itself

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-11-05 22:45:18 -08:00
Peter Kjellerstedt
ab4aa4045b
poppler: Correct the configuration options
* Remove -DENABLE_ZLIB=ON (it is no longer optional).
* Replace -DENABLE_CMS=lcms2 with -DENABLE_LCMS=ON.
* Replace the splash PACKAGECONFIG with boost (splash is no longer
  optional).
* Correct the options for the nss and tiff PACKAGECONFIGs.

This avoids the following CMake warnings:

  Manually-specified variables were not used by the project:

    ENABLE_CMS
    ENABLE_SPLASH
    ENABLE_ZLIB
    WITH_NSS3
    WITH_TIFF

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-09 18:23:01 -07:00
Khem Raj
fb7e45fcbf
poppler: Upgrade to 24.09.0 release
Drop backported patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-05 21:56:45 -07:00
Yogita Urade
4534a0a077
poppler: CVE-2024-6239
A flaw was found in the Poppler's Pdfinfo utility. This issue
occurs when using -dests parameter with pdfinfo utility. By
using certain malformed input files, an attacker could cause
the utility to crash, leading to a denial of service.

CVE-2024-6239-0002 is the CVE fix and CVE-2024-6239-0001 is
dependent commit to fix the CVE.

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2024-6239

Upstream patch:
0554731052
fc1c711cb5

Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-08-21 08:45:47 -07:00
Khem Raj
ffc64e9c6f
recipes: Start WORKDIR -> UNPACKDIR transition
Replace references of WORKDIR with UNPACKDIR where it makes sense to do
so in preparation for changing the default value of UNPACKDIR.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-23 08:44:44 -07:00
Yogita Urade
d7a39f04c8 poppler: fix CVE-2023-34872
A vulnerability in Outline.cc for Poppler prior to 23.06.0
allows a remote attacker to cause a Denial of Service (DoS)
(crash) via a crafted PDF file in OutlineItem::open.

Reference:
https://gitlab.freedesktop.org/poppler/poppler/-/issues/1399

Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-19 10:46:14 -07:00
Ross Burton
f0eee67662 poppler: fix missing include
Backport a patch to ensure that stdio.h is included before jpeglib.h.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-07 08:59:27 -07:00
Martin Jansa
be8c765c7c *.patch: add Upstream-Status to all patches
There is new patch-status QA check in oe-core:
https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a

This is temporary work around just to hide _many_ warnings from
optional patch-status (if you add it to WARN_QA).

This just added
Upstream-Status: Pending
everywhere without actually investigating what's the proper status.

This is just to hide current QA warnings and to catch new .patch files being
added without Upstream-Status, but the number of Pending patches is now terrible:

5 (26%) 	meta-xfce
6 (50%) 	meta-perl
15 (42%)        meta-webserver
21 (36%)        meta-gnome
25 (57%)        meta-filesystems
26 (43%)        meta-initramfs
45 (45%)        meta-python
47 (55%)        meta-multimedia
312 (63%)       meta-networking
756 (61%)       meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-21 09:15:20 -07:00
Martin Jansa
00ac843c5c poppler: add dependency on glib-2.0-native
* in some builds (probably without gobject-introspection-data enabled) it fails to find native glib-mkenums and fails with:
  poppler/23.04.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3: can't open file 'poppler/23.04.0-r0/poppler-23.04.0/glib/GLIB2_MKENUMS-NOTFOUND': [Errno 2] No such file or directory

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-15 09:37:58 -07:00
Wang Mingyu
02331987d0 poppler: upgrade 23.03.0 -> 23.04.0
Changelog:
=========
core:
 * Fix memory issue when signing fails. Issue #1372
 * Internal improvements of signature related code
 * CairoOutputDev: improve type3 font rendering
 * Fix memory leak in GlobalParams::findSystemFontFileForFamilyAndStyle

utils:
 * pdftocairo: Fix crash in some special situations
 * pdfsig: allow holes in -dump signature list
 * pdfsig: Support --help

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-10 09:39:38 -07:00
Wang Mingyu
d1f16573c9 poppler: upgrade 23.02.0 -> 23.03.0
Changelog:
* PngWriter: Fix potential uninitialized memory use

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-09 23:45:17 -08:00
Wang Mingyu
8f068d3509 poppler: upgrade 23.01.0 -> 23.02.0
Changelog:
==========
* CairoOutputDev: Fix rendering of color type 3 fonts
* CairoOutputDev: Add handling matte entry
* Fix segfault on wrong nssdir
* Fix "NSS could not shutdown"
* pdfsig: Point out supports PKCS#11 URIs as nickname

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-20 00:23:02 -08:00
Wang Mingyu
b60cdc6c25 poppler-data: upgrade 0.4.11 -> 0.4.12
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-20 00:23:02 -08:00
Khem Raj
3998d15768 poppler: cmake: Do not use -isystem
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-21 10:02:02 -08:00
Wang Mingyu
de2b848e7a poppler: upgrade 22.12.0 -> 23.01.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-06 11:38:16 -08:00
Wang Mingyu
dac5dc0e45 poppler: upgrade 22.11.0 -> 22.12.0
Changelog:
* Form::addFontToDefaultResources: Be stubborn in finding a font we can use. Issue #1272

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-05 09:16:24 -08:00
Wang Mingyu
2653feac2c poppler: upgrade 22.10.0 -> 22.11.0
Changelog:
==========
  core:
   * CairoOutputDev: Update font after restore
   * Protect against broken files
   * Small code refactoring

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-11-09 10:17:15 -08:00
Wang Mingyu
7d6daf2ee2 poppler: upgrade 22.09.0 -> 22.10.0
Changelog:
==========
  core:
   * SplashOutputDev::tilingPatternFill: Properly restore CTM on failure. Issue #1292
   * Protect against malformed files
   * Refactor code to not use strndup
   * Other small code refactoring

  utils:
   * pdftoppm: Avoid round-off errors when determining raster dimensions
   * pdftocairo: Avoid round-off errors when determining raster dimensions
   * pdftotext: Simplify memory handling

  qt:
   * Take into account flagNoView when getting/setting the visible status. KDE bug #456313

  build system:
   * Fix sed invocation

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-09 20:06:54 -07:00
wangmy
e21be1513c poppler: upgrade 22.08.0 -> 22.09.0
Changelog:
==========
 core:
  * Splash: Do not truncate line dash patterns with more than 20 entries. Issue #1281
  * Various signature related improvements
  * Fix FormField::getFullyQualifiedName in some scenarios
  * Splash: Small optimization on dash pattern handling
  * JBIG2Stream::readHalftoneRegionSeg: Fix potential memory leak
  * Fix crashes on malformed files. Including CVE-2022-38784
  * Fix string formatting in error reporting

 glib:
  * Fix two potential memory leaks in poppler_document_create_dests_tree

 utils:
  * pdfsig: List signature field names when listing signature information
  * pdfsig: Add support for specifying signature by field name
  * pdfunite: Fix crashes on malformed files
  * pdfunite: Fix potential memory leak of docs

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-13 09:55:03 -07:00
Wang Mingyu
a2ce32d26a poppler: upgrade 22.07.0 -> 22.08.0
Changelog:
=========
 * Fix rendering text on some forms
 * CairoOutputDev: Support Type3 charprocs having Resources
 * Fix crashes on malformed files

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-15 16:27:53 -07:00
wangmy
4a2f6b1fa1 poppler: upgrade 22.06.0 -> 22.07.0
Changelog:
==========
 core:
  * Fix crash when filling in forms in some files. Issue #1258
  * Fix first lines of Annotations sometimes being cut off. Issue #1246
  * Signatures: Don't crash if the signature doesn't have a common name
  * CairoFontEngine: increment font_face reference when retrieving from the cache
  * Add ToUnicode support for lessorequalslant and greaterorequalslant

 glib:
  * Add support for stamp annotation

 build system:
  * Tweaks on how gperf is run

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-07 08:24:26 -07:00
Wang Mingyu
6d06677ca6 poppler: upgrade 22.05.0 -> 22.06.0
Changelog:
==========
 core:
  * Forms: Fix crash in forms with their own DR
  * Refactor CairoFontEngine caching
  * CairoOutputDev: preserve text color when drawing type 3 glyphs
  * Windows: font code simplification
  * Minor code improvements

 cpp:
  * Add missing header

 utils:
  * pdfattach: Assume filename is utf8 encoded
  * pdftohtml: Fix type 3 font size calculation

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-06-06 13:58:43 -07:00
wangmy
db8cbd408f poppler: upgrade 22.04.0 -> 22.05.0
Release 22.05.0:
        core:
         * Annotations: Make sure we embed fonts for the FreeText annots
         * Forms: Make sure we embedd fonts as needed
         * Signatures: Make sure we embed the needed fonts
         * CairoOutputDev: color type 3 fonts
         * fix two bugs in multiline find_text()
         * code improvements

        utils:
         * pdftotext: added TSV mode
         * HtmlOutputDev: don't use png.h

        cpp:
         * Use time_t for time
         * Add page_transition::durationReal

        qt:
         * Pass leftFontSize down to 'FormWidgetSignature::signDocumentWithAppearence'

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-09 08:59:46 -07:00
Peter Kjellerstedt
5fa0188b8c poppler: Support building for native
* Disable RUN_GPERF_IF_PRESENT. Otherwise cmake will look for gperf. For
  target, it will not find it and proceeds to use the pregenerated
  files. However, for native it finds `/usr/bin/gperf`, but then tries
  to run `gperf` instead, which fails since it is not in hosttools.
* Disable ENABLE_CPP for native. Otherwise it needs iconv, which it
  cannot find.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-21 07:14:38 -07:00
wangmy
07c00ecba6 poppler: upgrade 22.03.0 -> 22.04.0
Changelog:
=========
 core:
  * Fix underline sometimes being drawn only partially
  * Fix Adobe Reader not reading some of the contents we write correctly
  * Fix code that workarounds some broken-ish files
  * FoFiTrueType: Parse CFF2 fonts too
  * FoFiTrueType: Support cmap types 2 and 13
  * Fix a few small memory leaks
  * code improvements

 qt:
  * Handle SaveAs named action
  * Annotations: don't change the text color when changing the font

 utils:
  * pdftotext: print creation and modification date when using htmlmeta param

 glib:
  * Fix returning internal data of temporary strings

 cpp:
  * Fix code incompatibility with MSVC

 build system:
  * poppler internal library is no longer forced to static on MSVC
  * Error out if iconv is not available and the cpp frontend is enabled
  * Require FreeType 2.8

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-06 20:25:34 -04:00
Wang Mingyu
392f5dd596 poppler: upgrade 22.02.0 -> 22.03.0
Changelog:
=========
core:
 * Signature: Fix finding Signatures that are in Pages not not in the global the Forms object
 * Signature: Improve getting the path to the firefox certificate database
 * Splash: Fix rendering of some joints. Issue #1212
 * Fix get_poppler_localdir for relocatable Windows builds
 * Minor code improvements

qt:
 * Minor code improvements

utils:
 * pdfimages: Fix the wrong Stream being passed for drawMaskedImage

build system:
 * Small code improvements

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-07 09:27:53 -08:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Zheng Ruoqin
44a810f34e poppler: upgrade 22.01.0 -> 22.02.0
Changelog:
=========
core:
 * Signature: Add a way to detect unsigned FormFieldSignature
 * Signature: Suport background image when using left and right text
 * Signature: Fix path where to search for Firefox NSS in Windows
 * Signature: Fix NSS code to work correctly in Windows/Android
 * Count only signature fields in PDFDoc::getNumSignatureFields
 * Minor code improvements

qt:
 * Allow signing unsigned signature fields
 * Allow passing a background image for the signature when signing
 * Allow passing the document password when signing
 * Fix leftFontSize being ignored when signing

glib:
 * try with utf8 password if latin1 fails
 * New method for getting all signature fields of a document
 * Fix compile with MSVC

utils:
 * pdfsig: Fix compile with MSVC

build system:
         * Fix NSS cmake check for MSVC

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-02-23 09:25:19 -08:00
Ross Burton
a4a9cd2118 poppler-data: set precise BSD license
The cMap data is under a BSD-3-Clause license.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-02-03 08:44:32 -08:00
Andreas Müller
93cde1334f poppler: upgrade 21.12.0 -> 22.01.0
Release 22.01.0:
core:
 * Allow local (relative to dll) fonts dir on Windows
 * TextOutputDev: require more spacing between columns. Issue #1093
 * Fix crash in Splash::gouraudTriangleShadedFill. Issue #1183
 * Fix crash when calling Form::reset()
 * GfxSeparationColorSpace: Check validity of colorspace and function. Issue #1184
 * Minor code improvements
glib:
 * Include glib.h before using defines from it
 * Close file descriptors on error
 * Plug some memory leaks
 * Replace use of deprecated g_memdup/g_time_zone_new
 * Remove FD-taking functions on windows
utils:
 * pdfsig: Add support for documents with passwords
 * pdfsig: Fix signing with -sign if nss password is needed

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-11 17:51:55 -08:00
Andreas Müller
2e7b791880 poppler: upgrade 21.11.0 -> 21.12.0
Release 21.12.0:
core:
 * Add API to add images
 * CairoOutputDev: Fix de-duping of Flate images
 * Fix crash on broken files when using non-default ENABLE_ZLIB_UNCOMPRESS. Issue #393
 * Minor code improvements
glib:
 * Add API for validation of signatures
 * Add API to read/save to file descriptor
utils:
 * pdftohtml: Reduce sensitivity of duplicate detection. Issue #1117
build system:
 * Increase C++ standard to 17

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-05 08:17:18 -08:00
Andreas Müller
580e72879e poppler: upgrade 21.10.0 -> 21.11.0
Release 21.11.0:
core:
 * Fix rendering of some non-standard confirming annotations
 * Support rendering of some non-standard Type3 charprocs. Issue #1150
 * TextOutputDev: Respect orientation when selecting words. Issue #499
 * CairoOutputDev: Don't override the antialias settings from the cairo_t
 * StructElement: support MCID in XObjects
 * Fix detection of monospace fonts
 * Ignore Adobe-Identity for non embedded CID fonts
 * PageLabelInfo::labelToIndex: work on some special no style intervals
 * Fix crash in malformed files
 * Minor code improvements

utils:
 * pdfinfo: add -url option to print all URLs in a PDF
 * pdftohtml: document what zoom means in regard to DPI

qt6:
 * Require Qt 6.1
 * Minor code improvements

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-20 12:07:09 -08:00
Wang Mingyu
362068e681 poppler: upgrade 21.09.0 -> 21.10.0
Release 21.10.0:
   core:
    * Add support for setting custom stamp annotations
    * Add default appearance for the well known stamp names
    * Correct encoding of signature's properties Reason & Location
    * Splash: Fix rendering of some odd patterns
    * SignatureHandler::validateCertificate: Add option to not do OCSP revocation check
    * SignatureHandler::validateCertificate: Add support for AIA fetching to verify certificates
    * greallocn: if memory allocation fails, free the previous pointer to avoid memory leak
    * Fix issues with malformed files
    * Internal code improvements

    utils:
    * pdfsig: Add a way to list certificate nicknames
    * pdfsig: You can now add signatures from pdfsig
    * pdfsig: Add option to not do OCSP revocation check
    * pdfsig: Add option for AIA fetching to verify certificates
    * pdfinfo: Add -custom option to print custom metadata
    * pdfinfo: add metadata flags

   qt:
    * Add support for setting custom stamp annotations
    * Add getters for signature's properties Reason & Location
    * Internal code improvements

   glib:
    * Remove incorrect PopplerAttachment deprecation

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-10-16 08:25:21 -07:00
zhengruoqin
88e4b40c84 poppler: upgrade 21.08.0 -> 21.09.0
refresh 0001-Do-not-overwrite-all-our-build-flags.patch

Release 21.09.0:
    core:
     * Splash: Massive speed improvement on files that use lots of save/restore (q/Q) operators
     * Correct decoding of signature properties Reason & Location when they are Unicode
     * Fix issues with malformed files
     * MSVC build fixes

    build system:
     * Call cmake_minium_required() before project()
     * Always append to CMAKE_{C,CXX}_FLAGS_${CMAKE_BUILD_TYPE}
     * correctly forward user-provided flags to try_compile()

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-08 21:29:52 -07:00
wangmy
4db4b4e000 poppler-data: upgrade 0.4.10 -> 0.4.11
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-08 21:29:52 -07:00
Peter Kjellerstedt
4c26e141dd poppler: Explicitly enable/disable boost together with splash
This avoids the following error when splash is not enabled in
PACKAGECONFIG:

  -- Could NOT find Boost (missing: Boost_INCLUDE_DIR) (Required is at
     least version "1.58.0")
  CMake Error at CMakeLists.txt:196 (message):
    -- Boost recommended for Splash.  Use ENABLE_BOOST=OFF to skip.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-26 10:10:57 -07:00
zhengruoqin
41fd0b4789 poppler: upgrade 21.07.0 -> 21.08.0
Release 21.08.0:
        core:
         * Add API to allow addition and modification of outlines into a PDF
         * Use additional samples to test for constant parts of an axial gradient
         * forms: Create fallback fonts for some well known font names
         * Support reading the PDF Version from the Catalog
         * Fix XRef::copy when there are modified objects
         * Take into account that Date string may be in unicode
         * JBIG2Stream: Fix regression in "Do not consider a size-0 to be an error"
         * Replace a local bubble sort implementation by std::sort
         * Fix issues with malformed files

        build system:
         * Better error message when libjpeg is not found
         * Better error messages when libopenjpeg2 is not found

        qt5/qt6:
         * Document that a document has to outlive its pages
         * Make getPdfVersion return a dedicated version object

        glib:
         * mimick TextSelectionDumper logic change for spaceAfter

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-06 20:38:40 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Andreas Müller
6044584c9a poppler: upgrade 21.06.1 -> 21.07.0
Release 21.07.0
core:
 * JBIG2Stream: Do not consider a size-0 to be an error. Issue #535
 * PSOutputDev: fix off-by-one error for image masking in L1/L2 output. Issue #1088
 * CairoOutputDev: Fix memory leak on broken files
 * Minor code improvements
build system:
 * set C standard to 11 without extensions

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-08 09:21:40 -07:00
Andreas Müller
e3ea357102 poppler: upgrade 21.06.0 -> 21.06.1
This came in right after 21.06.0 and fixes a regression just introduced:

Release 21.06.1
glib:
 * fix poppler_rectangle_free() regression. Issue #1087

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-03 16:58:41 -07:00
Andreas Müller
bf2999a5f3 poppler: upgrade 21.05.0 -> 21.06.0
Release 21.06.0

core:
    * Fix rendering of some extended latin1 characters in annotations. Issue #1070
    * Support some not so well formed documents with password. Issue #1083
    * Add API to get notified if the xref is reconstructed
    * Add somewhat fancier left/right signature visual representation
    * Fix crashes in malformed files
    * Minor code improvements

qt6:
    * Change some functions to return std::unique_ptr

qt5/qt6:
    * Add API to get notified if the xref is reconstructed
    * Add somewhat fancier left/right signature visual representation
    * Don't assert when trying to invert singular matrices

build system:
    * make boost opt-out if building splash

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-03 16:58:41 -07:00