Eliot Jones
c77e2f7952
port png transparency fixes from biggustave changes #346
2021-08-14 14:47:23 -04:00
Eliot Jones
53471207df
normalize line endings in ccitt file
2021-08-11 21:12:35 -04:00
Eliot Jones
1b472f6992
handle messed up numbers in content #355
2021-08-11 20:56:06 -04:00
Eliot Jones
a3e316958a
try handling malformed operators where operands are not provided #355
2021-08-08 11:36:43 -04:00
Eliot Jones
2df5ec9b10
handle transparency when adding pdfs in builder #345 #346
2021-08-07 13:49:01 -04:00
Eliot Jones
dd95b38345
handle case where xref has multiple parts with incorrect offset #352
2021-08-06 19:47:54 -04:00
Michael Plaisted
73b7bb61bc
AddPage fixes for streams incorrectly being copied to page dict, add inheritance for media/crop box and rotation
2021-08-02 11:17:49 -05:00
InusualZ
35761adf64
DirectObjectFinder: Throwing exception print the token name that we got
2021-06-27 15:02:20 -04:00
InusualZ
31ca3640d2
Tolerate any white-space bytes after the stream operator.
2021-06-27 15:02:20 -04:00
Eliot Jones
b3a361e2f2
performance tweak and test case for #334
2021-06-10 16:31:16 -04:00
Kasper Frank
1ea412179f
Make unit tests behave cross platform
2021-06-02 11:07:51 +02:00
Eliot Jones
14276d5d16
Merge pull request #331 from kasperdaff/various-image-fixes
...
Various image related fixes and ICCBased (limited), CalGray and CalRGB color spaces support
2021-06-01 08:14:49 -04:00
Kasper Frank
6649a69380
Use scanner for resolving indirect refs when obtaining DictionaryToken values.
2021-05-30 21:58:36 +02:00
Eliot Jones
3869bbb786
Merge pull request #327 from kasperdaff/decodeparm-fix
...
DecodeParameterResolver looks in the wrong array when retrieving filter parameters
2021-05-30 12:24:56 -04:00
Kasper Frank
da821e27e1
Add support for CalGray and CalRGB colorspaces
2021-05-30 14:07:41 +02:00
Kasper Frank
2fa003730a
Add (limited) support for the ICCBased color space
2021-05-27 13:01:51 +02:00
Kasper Frank
a56be02cfd
General support for extraction of images with BitsPerComponent < 8
2021-05-27 13:01:51 +02:00
Kasper Frank
92a00782bf
Add support for named color spaces and indirect references when parsing ColorSpaceDetails
2021-05-27 13:01:51 +02:00
Kasper Frank
449f16edd7
Expose ImageDictionary through IPdfImage to make available when working with InlineImage(s).
2021-05-27 13:01:51 +02:00
Kasper Frank
6fa223c0db
Image data might contain trailing EOL marker
2021-05-27 13:01:51 +02:00
Kasper Frank
07823c8b34
Look for ColorSpace shortname (cs) when parsing colorspace details
2021-05-27 13:01:51 +02:00
Eliot Jones
636936330a
Merge pull request #326 from kasperdaff/ccitt-fax-filter-fixes
...
Fixes for recent CCITT Fax Filter implementation
2021-05-15 12:26:02 -04:00
Daniel Franklin
e49de04c77
Fixes null reference exception
2021-05-12 01:28:09 +07:00
Kasper Frank
21bac62b95
Look in the correct array when resolving decode parameters
2021-05-10 11:58:42 +02:00
Kasper Frank
9f6dd5375d
DecodeParms might be an indirect reference
2021-05-10 09:01:57 +02:00
Eliot Jones
16d26effc5
0.1.5-alpha002
2021-05-09 13:05:54 -04:00
Eliot Jones
97e831c321
handle narrow whitespaces in default text extractor #319
...
where the gap is small but much larger than all previous gaps at this
font size (and still larger than some minimum threshold) then break
the word at this gap boundary.
2021-05-09 12:59:53 -04:00
Kasper Frank
30039aa6d3
Decode fix for CCITTFax Group 3 (1 dimensional version)
2021-05-09 18:45:26 +02:00
Eliot Jones
264cf7b8a8
fix write token for paint shading #325
2021-05-09 12:33:22 -04:00
Eliot Jones
421dd74840
fix bug in encryption handler. couple of code style tweaks
2021-05-09 12:31:51 -04:00
Kasper Frank
eaba3d1c6c
CCITT Fax doesn't have to be image masks
2021-05-07 14:19:42 +02:00
Kasper Frank
65a4c141ba
Consolidate DictionaryToken extension methods
2021-05-07 12:55:36 +02:00
Kasper Frank
f8990a79b8
Add indexed color space for stencils
2021-05-07 12:37:02 +02:00
Kasper Frank
8c6f705d2a
Basic unit tests of CCITT Fax filter decoding
2021-05-07 08:29:47 +02:00
Kasper Frank
9c2cd89de4
Add support for the CCITTFaxDecode filter
2021-05-07 08:29:46 +02:00
Kasper Frank
c285c567e8
Fixes compiler error
2021-05-05 11:35:39 +02:00
Kasper Frank
bd968ff074
Improves support for indexed colorspace images. Also adds rudimentary unit tests of PngFromPdfImageFactory.
2021-05-05 11:14:52 +02:00
Wesley Moret
268947fb5e
Allow to have a metadata stream in the document information entry ( #322 )
2021-05-01 11:44:56 -04:00
Eliot Jones
c7c4adf441
correctly detect encrypted string encoding when decrypting #313
2021-04-30 10:22:50 -04:00
Kasper Frank
b225033916
The palette of an indexed color space can be stored in a StringToken
2021-04-29 10:23:15 +02:00
Kasper Frank
e26a95a337
CMYK has four color components
2021-04-26 14:58:07 +02:00
Eliot Jones
9ae0a5ec15
allow stream filters to contain indirect references to name tokens
2021-04-25 16:22:22 -04:00
romain v
b8135129cb
fix null token handling
...
in document creation
2021-04-02 16:36:04 +02:00
Eliot Jones
12ad8278e3
don't lose object stream offsets when brute-forcing offsets
2021-03-01 14:18:19 -04:00
Eliot Jones
b930924b9b
0.1.5-alpha001
2021-02-28 13:55:25 -04:00
Eliot Jones
6a1fa544d2
default height from font matrix for type 0 fonts when height missing #287
2021-02-28 13:48:23 -04:00
Eliot Jones
13247a5218
#301 add missing arial bold standard14 name
2021-02-28 13:33:07 -04:00
Eliot Jones
7c0fd48afa
#299 #241 add correct fallback cmap for korea1-3 and missing japan cmap
2021-02-28 13:27:16 -04:00
Eliot Jones
89ee5f5358
skip completely null dictionaries #300
2021-02-23 20:07:14 -04:00
Eliot Jones
cc81541ce2
avoid infinite loop in #291 , logic issue is still present for png predictor
2021-02-23 15:04:28 -04:00