pdfium: reduce size if cannot create bitmap
commita5c1cbcbb506e1c33c7e80673bfc01a34c834ed5
authorSzymon Kłos <szymon.klos@collabora.com>
Mon, 21 Nov 2022 14:23:59 +0000 (21 15:23 +0100)
committerSzymon Kłos <szymon.klos@collabora.com>
Fri, 25 Nov 2022 07:01:20 +0000 (25 08:01 +0100)
treeddc22c91660d2ef960c71d128458484cf41d0276
parent24d7431876e87eba700a9f141dc8e030143a92ad
pdfium: reduce size if cannot create bitmap

In files with large pages it was rendering white, empty
content. That was because bitmap creation in the PDFium
failed. This reduces the size to possible value.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I093a6aff94104cdc8223d7b8cbc00ff9217021b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143037
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143243
Tested-by: Jenkins
include/vcl/filter/PDFiumLibrary.hxx
vcl/source/filter/ipdf/pdfread.cxx
vcl/source/pdf/PDFiumLibrary.cxx