summaryrefslogtreecommitdiffstats
path: root/external/pdfium
Commit message (Collapse)AuthorAgeFilesLines
* external: update pdfium to 4643Miklos Vajna2021-11-113-114/+81
| | | | | | | | | | | | Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122485 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit 8cecaa622700cecb5b5776bd3e5360ac6cc3dd63) Change-Id: I4e86b163a9abef88f26c6c0ae91ae0a4008658f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124995 Tested-by: Michael Stahl <michael.stahl@allotropia.de> Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
* external: update pdfium to 4568Miklos Vajna2021-11-114-14/+131
| | | | | | | | | | | | Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118868 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit 7707339a7d10225ff2503a852f68427519ae26f6) Change-Id: I2bfd5f806281e747702d423b7e59b5f88a7bea9c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124994 Tested-by: Michael Stahl <michael.stahl@allotropia.de> Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
* external: update pdfium to 4500Miklos Vajna2021-11-114-22/+19
| | | | | | | | | | | | Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115444 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit de16265f55ff2e4e1beb574fcb5b7b894df234f9) Change-Id: I38c85fb3e30ffd1f7fc0a11948fc01338f7bb205 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124993 Tested-by: Michael Stahl <michael.stahl@allotropia.de> Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
* external: update pdfium to 4450Miklos Vajna2021-11-113-7/+8
| | | | | | | | | | | Change-Id: I93b9a32a82098a7b45e899ef29349c48276aa724 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113067 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit d56414fddd0796e63d2d3ae63260de7c6952dc70) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124992 Tested-by: Michael Stahl <michael.stahl@allotropia.de> Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
* external: update pdfium to handle redact annotationsMiklos Vajna2020-12-035-22/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | external: update pdfium to 4203 (cherry picked from commit 4488be8a9279be0bd0aebd476589a49d2b95da6e) Update one mention of pdfium-4137.tar.bz2 ...left behind by 4488be8a9279be0bd0aebd476589a49d2b95da6e "external: update pdfium to 4203" (cherry picked from commit ba4b3d5f7a0fe8d0d985e98897e041d59093d8b0) external: update pdfium to 4260 (cherry picked from commit f19381e46930bb496e7331754843920933fb4be2) external: update pdfium to 4306 (cherry picked from commit fe531957e3dcd42927cf15ab31d04473433d81f9) Conflicts: include/vcl/pdf/PDFAnnotationSubType.hxx Change-Id: Ic10cf99fa412f8f0b3475e82d0a1839a7f04bd08 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105913 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> (cherry picked from commit b4f50e78e9cd391964128bd0d1446d4dca110cef) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107063 Tested-by: Michael Stahl <michael.stahl@cib.de> Reviewed-by: Michael Stahl <michael.stahl@cib.de>
* xmlsecurity: pdf incremental updates that are non-commenting are invalidMiklos Vajna2020-09-101-0/+15
| | | | | | | | | | | | | | | | | | | | | I.e. it's OK to add incremental updates for annotation/commenting purposes and that doesn't invalite existing signatures. Everything else does. (cherry picked from commit 61834cd574568613f0b0a2ee099a60fa5a8d9804) [ Also disable a pdfium assert on Windows, only on this branch, where it fails during CppunitTest_xmlsecurity_pdfsigning for reasons unclear to me. ] Conflicts: include/vcl/filter/PDFiumLibrary.hxx vcl/source/pdf/PDFiumLibrary.cxx Change-Id: I4607c242b3c6f6b01517b02407e9e7a095e2e069 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102325 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
* external: update pdfium from 3963 to 4137Miklos Vajna2020-09-107-70/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a combination of 6 commits, which brings pdfium to the same version as libreoffice-7-0. This is the 1st commit message: external: update pdfium to 4021 (cherry picked from commit 1cb70721ba00dd6c6958f0a10e39aa5c1866ec96) This is the commit message #2: external/pdfium: C++20 comparison operator fix Missing const leads to overload resolution ambiguity when a synthesized candidate of operator == for a reversed-argument rewrite conflicts with the actual operator ==, due to the asymmetric const-ness of the implicit object parameter and the RHS parameter: > In file included from workdir/UnpackedTarball/pdfium/core/fxge/cfx_font.cpp:7: > In file included from workdir/UnpackedTarball/pdfium/core/fxge/cfx_font.h:11: > llvm/inst/include/c++/v1/vector:1369:27: error: use of overloaded operator '!=' is ambiguous (with operand types 'std::__1::__vector_base<unsigned char, FxAllocAllocator<unsigned char> >::allocator_type' (aka 'FxAllocAllocator<unsigned char>') and 'std::__1::__vector_base<unsigned char, FxAllocAllocator<unsigned char> >::allocator_type') > if (__base::__alloc() != __c.__alloc()) > ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ > llvm/inst/include/c++/v1/vector:1359:5: note: in instantiation of member function 'std::__1::vector<unsigned char, FxAllocAllocator<unsigned char> >::__move_assign' requested here > __move_assign(__x, integral_constant<bool, > ^ > workdir/UnpackedTarball/pdfium/core/fxge/cfx_font.cpp:384:24: note: in instantiation of member function 'std::__1::vector<unsigned char, FxAllocAllocator<unsigned char> >::operator=' requested here > m_FontDataAllocation = std::vector<uint8_t, FxAllocAllocator<uint8_t>>( > ^ > workdir/UnpackedTarball/pdfium/core/fxcrt/fx_memory_wrappers.h:74:8: note: candidate function > bool operator!=(const FxAllocAllocator& that) { return false; } > ^ > workdir/UnpackedTarball/pdfium/core/fxcrt/fx_memory_wrappers.h:73:8: note: candidate function > bool operator==(const FxAllocAllocator& that) { return true; } > ^ > workdir/UnpackedTarball/pdfium/core/fxcrt/fx_memory_wrappers.h:73:8: note: candidate function (with reversed parameter order) (cherry picked from commit 6e0461d576d9f386e458f98f3c57f0ba385aacb4) This is the commit message #3: pdfium: don't patch out the COMPONENT_BUILD check, define it So next time we update, no need to adapt a failing patch. (cherry picked from commit 9b4ab9bda41a818832c721933986c9c6e07a6e6c) This is the commit message #4: make update_pch also consider files in <module>/src/**/inc With --enable-pch=full there's not much difference between a "public" header in <module>/inc and a private one in <module>/src/somewhere/inc . And since the script searches recursively, this apparently helps to find even more headers for lower pch levels. [ Just the pdfium part. ] (cherry picked from commit 69e0d871ec1de2260f9213d3113464155eac173c) Change-Id: I8483d0aa5b4fea5a59107c20a8aa5f1ef694af0a This is the commit message #5: external: update pdfium to 4083 (cherry picked from commit 9054c36d4ea3bee25fb9a47a96a0ea2cd07148c3) This is the commit message #6: external: update pdfium to 4137 (cherry picked from commit 1ffe59ef31186e36ad0aa7bbcdd32e407ee8d26c) Change-Id: Ib7c12461e04fa97bf55ee967e8d6c9bcf92fdf4a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102373 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
* external: update pdfium to 3963Miklos Vajna2019-11-132-37/+19
| | | | | | | | | Also simplify visibility.patch.1. Change-Id: I8b4ed78b314a1a1f7d31467f782877f056429cc2 Reviewed-on: https://gerrit.libreoffice.org/82548 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
* do not require $(SRCDIR) in every gb_Library_set_precompiled_headerLuboš Luňák2019-09-231-1/+1
| | | | | | | Change-Id: I7b3a22584bb2e4d501f509ffcd80929feed23a4c Reviewed-on: https://gerrit.libreoffice.org/79360 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
* external: update pdfium to 3896Miklos Vajna2019-09-113-37/+20
| | | | | | | Change-Id: I9d47d9afed47e01657b42fbfdb06e7fc91a150c8 Reviewed-on: https://gerrit.libreoffice.org/78806 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
* external: update pdfium to 3849Miklos Vajna2019-07-174-71/+82
| | | | | | | Change-Id: I616f57bd9de72b078500a290bf9ff89c71773f26 Reviewed-on: https://gerrit.libreoffice.org/75736 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
* disable warnings in external libsLuboš Luňák2019-05-241-9/+1
| | | | | | | | | | As in, really disable, so that they do not even show. This moreover avoids tons of D9025 warnings from MSVC about overriding -W4 with -w. Change-Id: Ia2e72fd72d883d91bdd89e467ee42f259e2ae033 Reviewed-on: https://gerrit.libreoffice.org/72899 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
* pdfium: re-enable PCHMiklos Vajna2019-05-212-4/+2
| | | | | | | Change-Id: I5987fcc04396e4e22640d6b09b52fa7b08460369 Reviewed-on: https://gerrit.libreoffice.org/72687 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
* external: update pdfium to 3794Miklos Vajna2019-05-215-24/+64
| | | | | | | Change-Id: Ie4c42943445813c7c50bf06cb710cedf2a61f3a9 Reviewed-on: https://gerrit.libreoffice.org/72619 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
* add PCH for pdfiumLuboš Luňák2019-05-193-0/+487
| | | | | | | | | | | | It's an external library, but it's a large C++ lib and it's built using gbuild, so this helps too. Here with Clang it cuts build time from ~2:40 to ~1:25 (and about halves the CPU user time). Hopefully it also helps to reduce the build time for Windows gerrit builds. Change-Id: Ieef0ea28e0fe1fd216592fca70410075d95ddc54 Reviewed-on: https://gerrit.libreoffice.org/72517 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
* Cut down on -pthread/-lpthread proliferationStephan Bergmann2019-04-251-1/+0
| | | | | | | | | | | | | | | | | | | | | Building against libstdc++ effectively always requires -pthread anyway (as various standard C++ headers require it, see the comment added to solenv/gbuild/platform/unxgcc.mk), so many explicit uses of -pthread/-lpthread can be removed. Doing a (partial) test build on Linux with Clang -stdlib=libc++ suggests that libc++ indeed doesn't need -pthread as libstdc++ does. The remaining uses of -pthread/-lpthread are mostly in configure.ac for the various BSDs (which somebody else might want to clean up now), and related to external projects. I tried to be careful to remove -pthread/-lpthread from makefiles only when C++ object files are involved (so -pthread will now be included on the link command line by default). Change-Id: I936e082839cb9a434bd273ce5a1f187a4245dfa1 Reviewed-on: https://gerrit.libreoffice.org/71291 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* pdfium: avoid problems with SetForm using WIN32_LEAN_AND_MEANMiklos Vajna2019-04-032-57/+1
| | | | | | | | | | So that it does not get defined to SetFormA() or SetFormW() and still requires no patching. Change-Id: I4364b02306633733d8536ebd8d7d42273dfeef74 Reviewed-on: https://gerrit.libreoffice.org/70150 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
* external: update pdfium to 3730Miklos Vajna2019-03-132-66/+62
| | | | | | | Change-Id: Iaaac797812b2addd1e5693dbb4338fc1c506a26d Reviewed-on: https://gerrit.libreoffice.org/69134 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
* external: update pdfium to 3667Miklos Vajna2019-01-162-15/+0
| | | | | | | Change-Id: Ie4f0cc8f06432e182ce7ffcae5269075d12658ef Reviewed-on: https://gerrit.libreoffice.org/66408 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
* external: update pdfium to 3613Miklos Vajna2018-11-194-11/+35
| | | | | | | Change-Id: I99bd67f45796eb85635543a5e4563bb7477cf63e Reviewed-on: https://gerrit.libreoffice.org/63547 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
* pdfium: remove not needed FPDFImageObj_GetBitmapBgra() patchMiklos Vajna2018-10-102-60/+0
| | | | | | | | | | | Last usage was removed in commit 45c753aff6468b9761e68bc0bf48ab161cd0cba6 (svx: pdfium's FPDFImageObj_GetBitmapBgra() is not needed after all, 2018-09-28). Change-Id: I2412fa24859ad5bcd3ced634d3c4f41d2f35aebe Reviewed-on: https://gerrit.libreoffice.org/61599 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* pdfium: update to 3550Miklos Vajna2018-09-1911-750/+29
| | | | | | | | | Allows dropping all the backports, so only one custom API patch remains. Change-Id: I13dc4f62be86d0859862cbd95bb14e07bbcf53d6 Reviewed-on: https://gerrit.libreoffice.org/60697 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* pdfium: replace FPDFFormObj_GetMatrix patch with backportMiklos Vajna2018-09-126-182/+99
| | | | | | | Change-Id: Ic819fb1097986437cae99f4769bd93f20b6db44a Reviewed-on: https://gerrit.libreoffice.org/60358 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* pdfium: replace FPDFTextObj_CountChars/GetTextProcessed patches with backportMiklos Vajna2018-09-057-248/+169
| | | | | | | Change-Id: I9c198ff0cd31de064fcc4a3bb0ed92066f38e4c5 Reviewed-on: https://gerrit.libreoffice.org/60007 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* pdfium: replace FPDFTextObj_GetFontName() patch with backportMiklos Vajna2018-08-295-81/+100
| | | | | | | Change-Id: I36d86e7ccca66b09f2f49e401d77deb52fbf742a Reviewed-on: https://gerrit.libreoffice.org/59738 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* pdfium: replace FPDFFormObj_GetSubObject() with backportMiklos Vajna2018-08-158-101/+145
| | | | | | | Change-Id: If5fc2fb328320f6cad608bebbc704ced3d69cee8 Reviewed-on: https://gerrit.libreoffice.org/59006 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* pdfium: replace FPDFFormObj_CountSubObjects() with backportMiklos Vajna2018-08-086-36/+93
| | | | | | | Change-Id: Ie7aaf6790c29818236f38b90409860dedecb3cb3 Reviewed-on: https://gerrit.libreoffice.org/58711 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* pdfium: replace FPDFTextObj_GetColor() patch with backportMiklos Vajna2018-08-019-193/+141
| | | | | | | | | | | Upstream already got FPDFPageObj_GetFillColor() and FPDFPageObj_GetStrokeColor(), so what was necessary is just a FPDFText_GetTextRenderMode() to find out which one to use. Change-Id: I2f31fcadee8a4377b890e01ea62ed96bce275f2b Reviewed-on: https://gerrit.libreoffice.org/58381 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins
* pdfium: replace FPDFTextObj_GetFontSize() patch with backportMiklos Vajna2018-07-276-38/+77
| | | | | | | Change-Id: I2a4bdcf506720f266344378cdcc71975de4293e0 Reviewed-on: https://gerrit.libreoffice.org/58146 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* pdfium: update to 3471Miklos Vajna2018-07-189-449/+46
| | | | | | | | | | Allows dropping 4 API patches + the one that allows building against system ICU. Change-Id: Ib5c63ba7daf51b320c07b24486f7398bf71bcfbf Reviewed-on: https://gerrit.libreoffice.org/57588 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* pdfium: replace FPDFTextObj_GetMatrix() patch with backportMiklos Vajna2018-07-1213-644/+166
| | | | | | | | | Also remove unused FPDFTextObj_GetUnicode() and FPDFTextObj_GetText(). Change-Id: I4b1f88f878f2754ff790b67d286a9d5366acc641 Reviewed-on: https://gerrit.libreoffice.org/57292 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* pdfium: replace FPDFPath_GetMatrix() patch with backportMiklos Vajna2018-07-054-105/+145
| | | | | | | Change-Id: Ibf358e42f6411777819d0f46a4fe93c9b5ed9594 Reviewed-on: https://gerrit.libreoffice.org/56975 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* pdfium: replace FPDFPath_GetDrawMode() patch with backportMiklos Vajna2018-06-283-42/+100
| | | | | | | Change-Id: I86c7c0f73a21f670676716d7c22f519ed82da145 Reviewed-on: https://gerrit.libreoffice.org/56544 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* pdfium: replace FPDFPath_GetStrokeWidth() patch with backportMiklos Vajna2018-06-224-100/+64
| | | | | | | Change-Id: I43b8eb81b720e83eba887600116b01026e018af9 Reviewed-on: https://gerrit.libreoffice.org/56220 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* svx: set the font name of imported PDF textAshod Nakashian2018-06-072-0/+70
| | | | Change-Id: I79dde3c8983a70311de2d2a46093fac2722fb372
* svx: update PDFium patch and codeAshod Nakashian2018-06-072-0/+138
| | | | Change-Id: I07c6a7c65d5631b70da64927a35d7a3b371eff25
* svx: cleanup pdfium importerAshod Nakashian2018-06-072-0/+131
| | | | Change-Id: Id925ba7734a2c73270e40f19d3fc50552441c34e
* svx: import processed PDF textAshod Nakashian2018-06-072-0/+149
| | | | | | | | | | | | | | Some PDFs don't include spaces in the text. Instead, they rely on the explicit positioning of each character to render visually separated words. Latex seems to be prone to this approach, though not exclusively. Luckily, PDFium does process text and inserts "generated" spaces where necessary, which is what we retrieve and use as the text string while importing. Change-Id: Ic21fe6c8416ecaba66f06b6260f1d6b040ff12af
* svx: correctly possition form objects from PDFAshod Nakashian2018-06-072-0/+76
| | | | | Change-Id: I7d216ca61b8a10219628877db7dd593a4987ef60 (cherry picked from commit 81f16107c1b0b5315537f38a9830cf967e4abb68)
* svx: support importing forms from PDFsAshod Nakashian2018-06-072-0/+97
| | | | | | | Still missing the context matrix transformations. Change-Id: Id9457c6475463127d3bc444f36fa373a6ec8fcb6 (cherry picked from commit 08e2c68e99151c70d06581261bbc137f80967d9e)
* svx: support color text for imported PDFsAshod Nakashian2018-06-072-0/+136
| | | | | Change-Id: I01cba9456b37bd7a63c823bbe332d686f7ede389 (cherry picked from commit 26e37f98b08ce59a0feb93a8d2a8fbc982cfc103)
* svx: correct the positioning of PDF Paths and the stroke widthAshod Nakashian2018-06-072-0/+104
| | | | | Change-Id: I5b150721cc1b61b028f282062c1466ef6a67fcae (cherry picked from commit 37a40d8025ac70f84937de2b1d0f596d08088cbd)
* svx: improved text importing from PDFAshod Nakashian2018-06-072-0/+63
| | | | | Change-Id: I9a2fc2c8511655c1aa362c1a03a5e82ae3ba697e (cherry picked from commit d057cf3d9184cc5d96af9c957411911f5e788f4d)
* svx: improve path importing from PDFAshod Nakashian2018-06-072-0/+116
| | | | | Change-Id: I8e63b2a35d841e065ef32fea95c0a5f22ca6f049 (cherry picked from commit 819d11b7ae198a6a8e864852a3654ddbed389ecb)
* svx: support Paths in PDFs while importingAshod Nakashian2018-06-072-0/+55
| | | | | Change-Id: Idba294cf5a3a8dd00988f94786715b110039e000 (cherry picked from commit b1083c119832c32d722a4e81415ef7a02c23d4aa)
* svx: support PDF text colorAshod Nakashian2018-06-072-0/+131
| | | | | Change-Id: I7fa675c6560504e4fc7917e19cac3cceb2700d8e (cherry picked from commit 3c02b52fdad9c5a34d4bfb7623e04c4e85875a89)
* svx: import PDF images as BGRAAshod Nakashian2018-06-072-0/+59
| | | | | | | This makes it trivial to support all sort of odd bit-format and 8-bit paletted images. Change-Id: I4555794eccd0ee2906f9a39bd93957ad3775432c
* svx: more accurate PDF text importingAshod Nakashian2018-06-072-0/+174
| | | | | Change-Id: If37119510cbc091dc86cb5f699984186167745c7 (cherry picked from commit 7dc905d1e9b561bb71f58881190bb6f590d09d80)
* svx: import PDF text using PDFiumAshod Nakashian2018-06-072-0/+179
| | | | Change-Id: I7c75477f5257931f5182b8d65e898857526bf555
* pdfium: don't need two copies of freetype on android eitherChristian Lohmaier2018-05-161-1/+1
| | | | Change-Id: I581575e2b13482d16aca284bfa502ed164b8c9d0