Jonas Jenwald
7cf9de2c17
[api-minor] Change getOutline
to actually return the RGB color of outline items
...
Currently the `C` entry in an outline item is returned as is, which is neither particularly useful nor what the API documentation claims.
This patch also adds unit-tests for both the color handling, and the `F` entry (bold/italic flags).
2016-02-15 13:41:22 +01:00
Jonas Jenwald
98db068079
Reduce the overall indentation level in Catalog_readDocumentOutline
, by using early returns, in order to improve readability
2016-02-14 11:38:43 +01:00
Jonas Jenwald
62b17ad36e
Add a linked load
test for issue 6549
2016-02-12 18:10:07 +01:00
Jonas Jenwald
07e1ad40a2
Replace getAll
with getKeys
in PartialEvaluator_hasBlendModes
to speed up loading of badly generated PDF files (issue 6961)
...
Some bad PDF generators, in particular "Scribus PDF", duplicates resources *a lot* at various levels of the PDF files. This can lead to `PartialEvaluator_hasBlendModes` taking an unreasonable amount of time to complete.
The reason is that the current code is using `Dict_getAll`, which recursively dereferences *all* indirect objects, which can be really slow. This patch instead uses `Dict_getKeys`, and then manually looks up only the necessary indirect objects.
I've added the PDF file as a `load` test. The most important thing here is probably to ensure that the file remains available in the repo, and the comment should help reduced the chance of regressions. (Note that locally, the `load` test times out without this patch, but we cannot really assume that that always happens.)
Fixes 6961.
2016-02-10 17:21:38 +01:00
Tim van der Meij
5bcf4c1895
Destroy workers when they are no longer needed in the unit tests
2016-01-29 12:23:17 +01:00
Jonas Jenwald
1140a34f5c
[api-minor] Change getPageLabels
to always return the pageLabels, even if they are identical to standard page numbering
2016-01-27 13:36:03 +01:00
Jonas Jenwald
15ce96a6eb
Prevent failures in the "scanning for endstream" code, in Parser_makeStream
, by handling the case where 'endstream' is split between contiguous chunks (issue 1536)
2016-01-26 09:03:51 +01:00
Tim van der Meij
58329f7f92
Merge pull request #6803 from Snuffleupagus/page-labels
...
[api-minor] Add support for PageLabels in the API
2016-01-20 22:05:48 +01:00
Yury Delendik
0aa373cdf3
Merge pull request #6891 from Snuffleupagus/issue-6889
...
Map missing glyphs to the `notdef` glyph for TrueType (3, 1) fonts regardless if the 'post' table is defined or not (issue 6889)
2016-01-20 13:14:47 -06:00
Jonas Jenwald
85cf90643f
[api-minor] Add support for PageLabels in the API
2016-01-19 22:49:04 +01:00
Tim van der Meij
1eea0db897
Merge pull request #6822 from Snuffleupagus/urls-in-outline
...
[api-minor] Add support for URLs in the document outline
2016-01-19 22:21:40 +01:00
Jonas Jenwald
0030a82dc3
[api-minor] Add support for URLs in the document outline
...
Re: issue 5089.
(Note that since there are other outline features that we currently don't support, e.g. bold/italic text and custom colours, I thus think we can keep the referenced issue open.)
2016-01-19 21:36:27 +01:00
Jonas Jenwald
d9e21a3523
Merge pull request #6895 from timvandermeij/issue-6854-final
...
Update links to point to the Internet Archive for issue2799 and issue5726
2016-01-18 21:00:14 +01:00
Tim van der Meij
ec066101d8
Merge pull request #6848 from Snuffleupagus/recover-missing-glyf-table
...
[TrueType] Recover from a missing "glyf" table by replacing it with dummy data, utilizing the existing code in `sanitizeGlyphLocations`
2016-01-18 20:28:52 +01:00
Tim van der Meij
10a55087b5
Update links to point to the Internet Archive for issue2799 and
...
issue5726
We remove yo01. The file is not available, it was introduced in
3529658ac5
along with another test file (so we should not need it) and it was
replaced in
6b2c6fc223
,
so it was only in the repository for a very short time.
2016-01-18 15:53:07 +01:00
Jonas Jenwald
4855d4cc9f
Map missing glyphs to the notdef
glyph for TrueType (3, 1) fonts regardless if the 'post' table is defined or not (issue 6889)
2016-01-17 22:58:00 +01:00
Tim van der Meij
57246c15c7
Update links to point to the Internet Archive for issue1597, issue2627 and kdchart
2016-01-17 14:36:17 +01:00
Jonas Jenwald
da75671199
Remove 'issue2537.pdf.link', since it has been replaced with a reduced test-case
...
In PR 4732, Yury replaced the linked test, but apparently the .link file stuck around despite not being needed anymore.
Re: PR 6854.
2016-01-17 14:04:00 +01:00
Jonas Jenwald
f80a6efce3
Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue2829, issue2853, issue2881, issue3062, issue3999
2016-01-17 13:15:42 +01:00
Jonas Jenwald
b4020047bc
Replace the linked test-case for issue 1155 with a reduced one
...
As part of the link cleanup in issue 6854, obtaining this file through the Internet Archive didn't work.
However, given that the file was added in order to test an issue with `CropBox/MediaBox`, a reduced test-case should do just fine instead.
Please refer to issue 1155, and PR 1212.
2016-01-16 16:00:37 +01:00
Tim van der Meij
e54edd1128
Merge pull request #6883 from Snuffleupagus/issue-6854-10
...
Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue2129, issue2139, issue2386, issue2442, issue2531
2016-01-16 14:49:52 +01:00
Jonas Jenwald
92fa439eac
Remove 'tcpdf_033.pdf.link', since it has been replaced with a reduced test-case
...
In PR 1556 Brendan replaced the linked test, but apparently the `.link` file stuck around despite not being needed anymore.
Re: PR 6854.
2016-01-16 12:33:11 +01:00
Jonas Jenwald
2bdffdd7b0
Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue2129, issue2139, issue2386, issue2442, issue2531
2016-01-16 12:10:48 +01:00
Jonas Jenwald
b7fe79c026
Merge pull request #6881 from timvandermeij/issue-6854-4
...
Update links to point to the Internet Archive for issue3384, issue3848, issue3903, issue3925 and issue5592
2016-01-16 12:02:33 +01:00
Jonas Jenwald
d52495a9c8
[TrueType] Recover from a missing "glyf" table by replacing it with dummy data, utilizing the existing code in sanitizeGlyphLocations
...
It seems to be fairly common for OCR software to include incomplete TrueType fonts, notable missing the "glyf" table, in PDF files. Since we currently reject such fonts, the result is that text-selection/copying is broken.
This patch contains a suggested approach to try and use these kind of broken fonts, by using existing code in `sanitizeGlyphLocations` to replace a missing "glyf" table with dummy data.
Fixes 4684.
Fixes 6007.
Fixes 6829.
2016-01-15 21:44:59 +01:00
Tim van der Meij
4155dfeb19
Update links to point to the Internet Archive for issue3384, issue3848, issue3903, issue3925 and issue5592
2016-01-15 21:44:59 +01:00
Tim van der Meij
159eb6d46c
Update links to point to the Internet Archive for issue818, issue919, jai, liveprogramming and mao
2016-01-15 21:26:37 +01:00
Jonas Jenwald
223249fe2c
Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1878, issue1912, issue1936, issue1998, issue2006
2016-01-15 18:22:03 +01:00
Tim van der Meij
7f821f5b78
Merge pull request #6876 from Snuffleupagus/issue-6854-8
...
Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1709, issue1721, issue1729, issue1796, issue1810
2016-01-15 16:38:45 +01:00
Jonas Jenwald
b03703f20c
Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1709, issue1721, issue1729, issue1796, issue1810
2016-01-15 13:55:56 +01:00
Jonas Jenwald
93088ce342
Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1466, issue1629, issue1658, issue1685, issue1687
2016-01-15 13:30:24 +01:00
Tim van der Meij
5336a5363f
Merge pull request #6871 from Snuffleupagus/issue-6854-6
...
Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1233, issue1257, issue1309, issue1317, issue1419
2016-01-15 01:04:40 +01:00
Tim van der Meij
8e58c8bc3d
Merge pull request #6869 from Snuffleupagus/issue-6854-5
...
Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1049, issue1096, issue1127, issue1133, issue1169
2016-01-15 00:50:05 +01:00
Tim van der Meij
e6ff1a4179
Merge pull request #6866 from Snuffleupagus/issue-6854-4
...
Issue 6854 - Update the link locations to point to the Internet Archive for tests: html5checker, hudsonsurvey, ichiji, issue1010, issue1015
2016-01-15 00:24:06 +01:00
Tim van der Meij
04677eea45
Merge pull request #6867 from brendandahl/disable-e10s
...
Disable e10s.
2016-01-14 23:56:44 +01:00
Brendan Dahl
2d27cb1da6
Remove 'use strict'; causing failure and unused prefs.
2016-01-14 13:23:48 -08:00
Jonas Jenwald
01bb6b4e98
Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1233, issue1257, issue1309, issue1317, issue1419
2016-01-14 17:24:26 +01:00
Tim van der Meij
8318c8203c
Merge pull request #6311 from yurydelendik/clean_test_manifest
...
Cleans test manifest from absent files.
2016-01-14 17:13:16 +01:00
Jonas Jenwald
850fa35040
Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1049, issue1096, issue1127, issue1133, issue1169
2016-01-14 12:06:30 +01:00
Jonas Jenwald
ff79c56fa3
Merge pull request #6865 from timvandermeij/hmm
...
Update the linked test case hmm.pdf to point to the intended version
2016-01-14 11:48:32 +01:00
Brendan Dahl
ad8e43a185
Disable e10s.
2016-01-13 15:21:28 -08:00
Jonas Jenwald
86f97d8e64
Issue 6854 - Update the link locations to point to the Internet Archive for tests: html5checker, hudsonsurvey, ichiji, issue1010, issue1015
2016-01-13 18:11:35 +01:00
Yury Delendik
18f0531619
Cleans test manifest from absent files.
2016-01-13 09:40:21 -06:00
Jonas Jenwald
38645f5701
Merge pull request #6864 from timvandermeij/issue6854-2
...
Update links to point to the Internet Archive for ohkubo-SS04, pal-o47, pdf, piperine and preistabelle
2016-01-13 16:33:35 +01:00
Tim van der Meij
17b639bfc5
Update the linked test case hmm.pdf to point to the intended version
...
The test case was changed in 1faca19021
because the original file was not available anymore. However, its hash was also changed, meaning that we do not test the intended version anymore.
This patch makes sure that we test the intented version by reverting to
the original hash and using a link, also pointing to the Internet
Archive, with the original file.
2016-01-13 16:30:26 +01:00
Yury Delendik
51b59bc86f
Merge pull request #6853 from Snuffleupagus/issue-3666-test-link
...
Update the link location for 'issue3666.pdf' to point to the Internet Archive
2016-01-13 08:49:40 -06:00
Tim van der Meij
c6ad1b573b
Update links to point to the Internet Archive for ohkubo-SS04, pal-o47, pdf, piperine and preistabelle
2016-01-13 14:59:21 +01:00
Jonas Jenwald
239846f0d6
Issue 6854 - Update the link locations to point to the Internet Archive for tests: cable, fips197, fit11-talk, geothermal, hmm
2016-01-12 21:35:23 +01:00
Tim van der Meij
7e2f1f43e4
Merge pull request #6860 from Snuffleupagus/issue-6854-2
...
Issue 6854 - Update the link locations to point to the Internet Archive for tests: artofwar, bpl13210, bug766138, bug808084, bug887152
2016-01-12 16:34:00 +01:00
Jonas Jenwald
a20883ac79
Issue 6854 - Update the link locations to point to the Internet Archive for tests: artofwar, bpl13210, bug766138, bug808084, bug887152
2016-01-12 15:51:39 +01:00