summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-06-04vcl: fix pdf rendering regressionprivate/Ashod/pdfium_on_masterAshod Nakashian1-1/+2
Reviewed-on: https://gerrit.libreoffice.org/54921 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com> (cherry picked from commit 4a3457907546b4cde3adaf0ba6a6d258fe1b54b7) Change-Id: I6c2c48c033facb317b4ca7ed2af07348d6386b98
2018-06-04pdf: preserve the original page dimensions on importAshod Nakashian3-17/+39
Also allow for rendering PDFs to images at custom resolution, instead of hard-coded (old hard-coded value of 96 dpi is now default arguments). Reviewed-on: https://gerrit.libreoffice.org/54786 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com> (cherry picked from commit 40478fae4fe73319c5f336c69c6f5f5b0fed9991) Change-Id: Ia5b52f72d6ce7130a2debc7c6f86504aa041bdc8
2018-06-04sd: make the imported PDF page exactly as originalAshod Nakashian1-31/+6
i.e. no borders or larger page than rendered PDF Reviewed-on: https://gerrit.libreoffice.org/54764 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com> (cherry picked from commit 570c9afc48526c1a85d17d2d9c7c235cba4104ed) Change-Id: I1f356cceeec1d5d9f1728f0e29160fdd9241a221
2018-06-04sd: render the correct PDF page on swapping inAshod Nakashian4-15/+16
Reviewed-on: https://gerrit.libreoffice.org/54746 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com> (cherry picked from commit 4b244589762ad43be15fa637b5d5d12340ccc668) Change-Id: I81225e228d9cf2b9849110715dbfdeb59f2805dd
2018-06-04Introduce a LO_IMPORT_USE_PDFIUM envvar to force PDFium for PDF import.Jan Holesovsky1-1/+1
Change-Id: Ibb7734430b955dad4aefec22260ba8694ccb9183 (cherry picked from commit 6b73da7bee4d3d60af6ff1ee01039f7183e57680)
2018-06-04sd: disable pdf import testsAshod Nakashian1-3/+3
Change-Id: Iaee679d2ff322c67d081185588103d5685fa970a (cherry picked from commit 978f52ff31d08d9da3c9c1b52064c433c956d9f6)
2018-06-04svx: set the font name of imported PDF textAshod Nakashian2-5/+52
Change-Id: I79dde3c8983a70311de2d2a46093fac2722fb372 (cherry picked from commit b29879a233e7cdb4162092483752c2f6d13733aa)
2018-06-04svx: update PDFium patch and codeAshod Nakashian3-171/+94
Change-Id: I07c6a7c65d5631b70da64927a35d7a3b371eff25 (cherry picked from commit d4eaa026efde056ad4d429bccaa0b18f0388d6ec)
2018-06-04pdfium: update to 3426Miklos Vajna7-69/+152
Allows dropping the ugly freetype.patch.1. Change-Id: Ifa8a6dac02a49a2c13572e59773261a847efad3f Reviewed-on: https://gerrit.libreoffice.org/54294 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2018-06-04svx: cleanup pdfium importerAshod Nakashian3-432/+29
Change-Id: Id925ba7734a2c73270e40f19d3fc50552441c34e (cherry picked from commit 5217375499e314e909d8e1c2a6a815bda46ca5b0)
2018-06-04svx: transform PDF text rectangles while importingAshod Nakashian2-11/+69
Change-Id: I7675a183bfb691a8783950f33dc34826f91cb768 (cherry picked from commit 02d15d96fe42f7c5e1857f52ab6c0620017ac06f)
2018-06-04svx: support no fill and no stroke paths in PDF importAshod Nakashian1-12/+25
Change-Id: Ida5daa71d469805fd52e08e804fb9fa182d7d008 (cherry picked from commit e25ed0d0690ee8d5f07c98ccbb79868415fef5fb)
2018-06-04svx: support sub-paths in PDF importAshod Nakashian1-10/+25
Change-Id: Ibcfd30383db6846e791aea7609ab196c4f3f2da4 (cherry picked from commit 50bb1d4ab26a00bb2bb866df15ccb5660605fbe2)
2018-06-04svx: import processed PDF textAshod Nakashian3-28/+165
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 (cherry picked from commit da4b44d6afc01de4fb08251732ddcbdbd832b71f)
2018-06-04svx: correctly possition form objects from PDFAshod Nakashian3-17/+139
Change-Id: I7d216ca61b8a10219628877db7dd593a4987ef60 (cherry picked from commit 81f16107c1b0b5315537f38a9830cf967e4abb68)
2018-06-04svx: support importing forms from PDFsAshod Nakashian3-38/+137
Still missing the context matrix transformations. Change-Id: Id9457c6475463127d3bc444f36fa373a6ec8fcb6 (cherry picked from commit 08e2c68e99151c70d06581261bbc137f80967d9e)
2018-06-04sd: support breaking any PDF pageAshod Nakashian3-10/+11
(cherry picked from commit 971ada2fe6cb1ccd91ead7e0f34624ace92f3b7d) Change-Id: Ifa5f58163bef209a988fc0f88e2b609b1973e0d4
2018-06-04svx: path line width is given as full thickness in PDFAshod Nakashian1-0/+1
Change-Id: I728d962ea65ad1671e3b4c76034d396bee84228e (cherry picked from commit 70b3203a9a22f7235a6a5d3f1e5449566997adc5)
2018-06-04svx: support color text for imported PDFsAshod Nakashian2-39/+137
Change-Id: I01cba9456b37bd7a63c823bbe332d686f7ede389 (cherry picked from commit 26e37f98b08ce59a0feb93a8d2a8fbc982cfc103)
2018-06-04svx: more accurate PDF imported text sizeAshod Nakashian2-5/+12
Change-Id: I22880afdd9d36d9096003d86bba15098b465e0b3 (cherry picked from commit d583d4635f165a788c12ef336a25377239049253)
2018-06-04svx: correct the positioning of PDF Paths and the stroke widthAshod Nakashian2-14/+67
Change-Id: I5b150721cc1b61b028f282062c1466ef6a67fcae (cherry picked from commit 37a40d8025ac70f84937de2b1d0f596d08088cbd)
2018-06-04svx: improved text importing from PDFAshod Nakashian2-46/+61
Change-Id: I9a2fc2c8511655c1aa362c1a03a5e82ae3ba697e (cherry picked from commit d057cf3d9184cc5d96af9c957411911f5e788f4d)
2018-06-04svx: improve path importing from PDFAshod Nakashian2-14/+125
Change-Id: I8e63b2a35d841e065ef32fea95c0a5f22ca6f049 (cherry picked from commit 819d11b7ae198a6a8e864852a3654ddbed389ecb)
2018-06-04svx: support Paths in PDFs while importingAshod Nakashian3-3/+131
Change-Id: Idba294cf5a3a8dd00988f94786715b110039e000 (cherry picked from commit b1083c119832c32d722a4e81415ef7a02c23d4aa)
2018-06-04svx: support PDF text colorAshod Nakashian2-11/+87
Change-Id: I7fa675c6560504e4fc7917e19cac3cceb2700d8e (cherry picked from commit 3c02b52fdad9c5a34d4bfb7623e04c4e85875a89)
2018-06-04svx: more informative loggingAshod Nakashian2-15/+14
Change-Id: Ia9f2fa1fbb24ad3466bd082b778244f451c90745 (cherry picked from commit bd2092d664550e24965773289cd9de00e05225ff)
2018-06-04svx: import PDF images as BGRAAshod Nakashian2-4/+48
This makes it trivial to support all sort of odd bit-format and 8-bit paletted images. Change-Id: I4555794eccd0ee2906f9a39bd93957ad3775432c (cherry picked from commit 5ca54d5fa9fec264431d5d1f712b351b4b199fd6)
2018-06-04svx: refactor PDF text importingAshod Nakashian2-61/+59
Change-Id: Ibe8d794c1d457936c9272bb664a5478d78654dd4 (cherry picked from commit e84047e4ebce65ae7b7fc3ebf1f6897aaa332650)
2018-06-04svx: more accurate PDF text importingAshod Nakashian2-6/+193
Change-Id: If37119510cbc091dc86cb5f699984186167745c7 (cherry picked from commit 7dc905d1e9b561bb71f58881190bb6f590d09d80)
2018-06-04svx: import PDF text using PDFiumAshod Nakashian5-57/+259
(cherry picked from commit 07cd74846d41779b5a315a081cdfb1db6b5e18a3) Change-Id: I7c75477f5257931f5182b8d65e898857526bf555
2018-06-04Revert "pdfium: update to 3426"Ashod Nakashian7-152/+69
Temporarily revert the PDFium upgrade to fix build (a number of PDFium patches will follow this commit, which only apply on the previous PDFium version). This will be re-applied after a number of commits. This reverts commit 56195a4d0bbb21edeed1cea7a45283141c733f18.
2018-06-04svx: import PDF images at correct possition and scaleAshod Nakashian2-34/+98
Change-Id: Idb447b99143ad326294f2748f4d5154432fc328a (cherry picked from commit 8071e92e264eb905dfc1b68bd4ac77453e6f2cf5)
2018-06-04svx: import images from PDFAshod Nakashian2-78/+126
(cherry picked from commit 22aa48947834905c0ebc42b222b7cfc7ce566a2c) Change-Id: If0765aac9f47df73f1021664e13afa15ebf0f9ee
2018-06-04svx: support importing PDF imagesAshod Nakashian3-1/+106
(cherry picked from commit 6e00acca4ffe130f41d19313e5b310ae6da6358d) Change-Id: Id4524a30b8f9fa4228c4acb4bf8714700da3017c
2018-06-04svx: support breaking PDFs imported as imagesAshod Nakashian8-17/+1181
(cherry picked from commit 825ca67423eef8567edbc938fc8b65dab45781a9) Change-Id: I990c2b3c3055fbffddedc407c34beb5824277b38
2018-06-04vcl: svx: preserve the imported PDF page number in GraphicAshod Nakashian6-8/+44
(cherry picked from commit dbbf8641e9e66c106cf74637ea9e94b56fd588c0) Change-Id: I1bb3fa7d44d5f92df2bb8c4ed4b85ccd984c2617
2018-06-04svx: sd: cosmeticsAshod Nakashian5-41/+39
Change-Id: Ic82e0b20b6e0f0ecdd308969c85c887ef84d2340 (cherry picked from commit 9510d017af8f36953bd17ac4ae4ab7768684665c)
2018-06-04svx: share PDF stream when saving imported PDF as imagesAshod Nakashian3-1/+13
(cherry picked from commit 23642eead069133d794bb1ac5cf9e7042d18d876) Change-Id: I05dd9ccb8f61c795212f8c587ee0a69c3cd75cf6
2018-06-04sd: import PDFs as images using Pdfium new SdPdfFilterAshod Nakashian23-78/+350
LOK now opens PDFs as images using Pdfium, which has a superior accuracy and support to poppler, the default pdf reader. (cherry picked from commit 0e8f4f45b44935c7c8002d606b97a48e60e37b23) (cherry picked from commit 42733c51385b6518678a8d5483c234909db2af40) Change-Id: Ifbbecf7f048f001836fb98886705cba47e6bed4e
2018-06-04vcl: support rendering multiple PDF pages to bitmapAshod Nakashian1-1/+7
Reviewed-on: https://gerrit.libreoffice.org/51255 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> (cherry picked from commit d7c0cc3908a7624aa159549ab1561b511d6fae28) Change-Id: Id42ecabcad90dde84475a01e5df4ed94f221f5ce
2018-06-04vcl: refresh font cache only on real changeAshod Nakashian1-1/+1
GTK3 emits way too many style-updated, which triggers font cache updates. The avoidance of unecessary font cache updates was first implemented in 29c55564. Unfortuantely, it seems that the current font was never set as last-seen font, so checking for font style changes would have worked, leaving the code seemingly suffering the original issue of way too many font cache updates. Change-Id: I01a47d4d7fb033e335b1a49ffa6e1bb98f7fd28d
2018-06-03firebird: adapt asan.patch to GCC, which lacks __has_featureMichael Stahl2-3/+20
Also apply sanitizer.patch, because why not. Also tweak configure to check for dlsym() instead of dlopen(); the situation described in commit 037584cfe5e58bf6807fb0188d245042baa8c1c0 still holds on Fedora 27. Change-Id: I446fa3e991aec06452f135ab8365702a397c441a Reviewed-on: https://gerrit.libreoffice.org/55247 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2018-06-03editeng: work around spurious GCC 7 -Werror=return-typeMichael Stahl1-1/+1
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5) Change-Id: I3da508fba7757ffd823ed05f5c3d82bb8a300267 Reviewed-on: https://gerrit.libreoffice.org/55251 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2018-06-03use prebuilt opens___.ttf in oss-fuzz configurationCaolán McNamara1-1/+1
Change-Id: I4bbea7e1af34bd5c30e3830ecb58af2b6a3a09d4
2018-06-03stray debug codeCaolán McNamara1-8/+0
Change-Id: Idc779be7522d7b3875be73aad2e703fc87d8c9bf
2018-06-03upload libepubgen 0.1.1David Tardon8-1227/+5
Change-Id: Ib294f412055ef23a6ca5608675bc924dacae56f4 Reviewed-on: https://gerrit.libreoffice.org/55248 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2018-06-03uitest logger: ListboxSelect and ListboxFocus loggingSaurav Chirania1-1/+7
Change-Id: I5a38adaeea3c2e64366563bd449d8bf06d9161a3 Reviewed-on: https://gerrit.libreoffice.org/55112 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-06-03uitest logger: support for buttons, dialog, command and key loggingSaurav Chirania5-4/+46
This patch adds logging faclity for radiobuttons, checkboxes and button clicks. It modifies the logging for UNO commands and dialogs execution for consistency with other log statements. It also makes key logging more informative by printing the details of the object on which the user is typing. Change-Id: I911d0dfb64dacfde64193f0aea21f7d837dbf9da Reviewed-on: https://gerrit.libreoffice.org/54745 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-06-03Fix tdf#100937: LO Freezed when I insert a very long text in...Matteo Casalin1-1/+1
... the Description box The issue was triggered by ImpVclMEdit::Resize initially calling TextEngine::SetMaxTextWidth() with a negative width (due to an initial empty area, further "reduced" to take into account a vertical scroll bar) and then with positive values in following iterations. I preferred to consider such negative widths a no-op instead of extending them to the "maximum" possible width. Change-Id: I756652a30c23ebe6674e481e7d8d6e0d8ba45e75
2018-06-03Improve 1a2ee0ecd5b0cff52922c1d261f7d03a57a52ca0Matteo Casalin1-3/+4
Change-Id: I50f369f28c3b97ba7fed494cb238b7756920abc6