Commit Graph

1104 Commits

Author SHA1 Message Date
Eliot Jones
12ad8278e3 don't lose object stream offsets when brute-forcing offsets 2021-03-01 14:18:19 -04:00
Eliot Jones
3437b48925 actions build and test v003
also adds a console runner for testing arbitrary files
2021-02-28 17:03:32 -04:00
Eliot Jones
d5be096130 actions build and test v002 2021-02-28 16:04:50 -04:00
Eliot Jones
50037cdef8 actions build and test v001 2021-02-28 15:56:30 -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 2021-02-28 13:48:23 -04:00
Eliot Jones
13247a5218 add missing arial bold standard14 name 2021-02-28 13:33:07 -04:00
Eliot Jones
7c0fd48afa 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 2021-02-23 20:07:14 -04:00
Eliot Jones
cc81541ce2 avoid infinite loop in , logic issue is still present for png predictor 2021-02-23 15:04:28 -04:00
Eliot Jones
560e8ae858 don't throw when reading corrupt truetype name table 2021-02-21 12:27:11 -04:00
Eliot Jones
becc772242 check for offsets exceeding file length for xref parsing 2021-02-21 12:04:17 -04:00
BobLd
30dbc4cd41
Merge pull request from BobLd/266-layers
Optional content (aka layers collections) partial extraction
2021-02-15 09:27:43 +00:00
BobLd
3b1a7f79ca Add test with no optional content, return IReadOnlyDictionary<>, use pdfScanner in OC constructor 2021-02-14 21:40:40 +00:00
Eliot Jones
25cc3c8634
Merge pull request from plaisted/edit-docs-v2
Add pages from PdfDocument to PdfDocumentBuilder
2021-02-14 09:58:08 -04:00
BobLd
4cd1f60f5b Move GetOptionalContents into Experimental and get optional marked content recursively 2021-02-13 15:01:06 +00:00
Plaisted
4b8925a442 fix missing change 2021-02-10 20:56:51 -06:00
Plaisted
ef0bcd2055 changes for intital InusualZ review 2021-02-10 20:18:03 -06:00
Plaisted
509164447b review changes from Poltuu, test coverage for token replacement 2021-02-10 12:27:12 -06:00
Eliot Jones
68dd3f5a75 add device cmyk support for png conversion 2021-02-08 18:40:28 -04:00
Eliot Jones
c19742a2ae make converter public and add separation color space 2021-02-08 18:40:28 -04:00
Eliot Jones
9fc44f50d2 fix indexing into indexed color space by using table 2021-02-08 18:40:28 -04:00
Eliot Jones
6c293011a2 keep the bytes factory call which was accidentally removed 2021-02-08 18:40:28 -04:00
Eliot Jones
fad06eac27 add full color space details and transformation into full bytes for indexed 2021-02-08 18:40:28 -04:00
Plaisted
e7f96c0b16 add changes from unsaved file 2021-02-08 12:53:02 -06:00
Plaisted
6e1cf89cf9 clean up pagebuilder, switch merger to use pdfdocumentbuilder 2021-02-08 12:37:09 -06:00
Romain V
c008340b2b
fixes NullToken for a font ()
font was in a streamObject, PdfTokenScanner.ParseObjectStream would return a NullToken
DirectObjectFinder.Get would then throw on line 79, even thus it should handle null tokens (i.e. ResourceStore.LoadFontDictionary line 152)
2021-02-08 11:19:39 -04:00
Plaisted
ca0b90523e fix bug where default stream reader wrote header for every object 2021-02-07 10:51:02 -06:00
Plaisted
c6ed29bda4 cleanup stream writing to only write multiple when needed 2021-02-07 10:37:31 -06:00
Eliot Jones
6f49b2e29e
Fix buggy font ()
* Adds checksum on font file reading

* fix name table parsing on broken table

* only warn if checksum invalid, avoid exception with bounds check 

also returns a null object when the object generation number exceeds
ushort.maxvalue since this is the maximum allowed value and this
broke tests attempting to parse all objects in the file from 

* remove potentially problematic document

it might be sensitive data

* use ttf from file to test without including full file

Co-authored-by: romain v <rvergnory@lucca.fr>
2021-02-07 12:23:11 -04:00
Eliot Jones
9d99ac4e9b handle completely null content 2021-02-07 12:22:07 -04:00
BobLd
78e6e582cd Partial optional content extraction: Add page.GetOptionalContents() and add tests. 2021-02-07 12:42:20 +00:00
Plaisted
442fa8fb6d create page tree for builder to help with large pdfs 2021-02-06 20:35:01 -06:00
Plaisted
1db481164c perf improvement for copying lots of pages from large documents 2021-02-06 18:04:13 -06:00
Plaisted
92f9af613f more build system c# version fixes 2021-02-06 15:31:58 -06:00
Plaisted
44ee6d394f cleanup font usage, fix some build system issues with older c# version 2021-02-06 15:13:22 -06:00
Plaisted
7f42ad0af9 refactored previous work to fit pr 2021-02-06 12:24:53 -06:00
Michael Plaisted
75d511440b
Merge pull request from UglyToad/master
Update from source.
2021-02-06 11:08:33 -06:00
Eliot Jones
be9fd4b071 add a couple of missing name tokens for viewports and measurements 2021-02-06 12:15:23 -04:00
Eliot Jones
864da75d64
Merge pull request from UglyToad/checkbox-checked-state-tolerance
allow a checkbox to not declare a value and only be checked by appearance 
2021-02-06 12:13:01 -04:00
Eliot Jones
d3502fdfc0 allow a checkbox to not declare a value and only be checked by appearance
in the example document in issue  the checkbox declares an
appearance state with no corresponding value, as long as the checkbox
defines its appearances dictionary we treat non-off checkboxes as checked
if there is no corresponding value in the checkbox form field dictionary
2021-02-06 11:58:35 -04:00
Eliot Jones
566724043d
Merge pull request from InusualZ/edit-pdf
[New Feature] PdfPageBuilder: Allow to copy pages from another document
2021-02-06 09:50:09 -04:00
Michael Plaisted
72dcb4eb15
Merge pull request from UglyToad/master
update
2021-02-05 15:28:44 -06:00
BobLd
0803daaebb
Merge pull request from PmE8HW0KRfqa/patch-1
fix broken img source on https://uglytoad.github.io/PdfPig/
2021-01-30 09:45:30 +00:00
PmE8HW0KRfqa
3930f8e593
fixed broken img link to rxyc example.png
Is there a reason https://github.com/UglyToad/PdfPig and https://uglytoad.github.io/PdfPig/ have different readme.md files?
2021-01-29 19:10:08 -07:00
Michael Plaisted
1ef6056b21
Merge pull request from UglyToad/master
Updating
2021-01-20 09:15:27 -06:00
Eliot Jones
660ac5f486
Merge pull request from plaisted/builderpool
Remove locks / SB pooling during CoreTokenScanner parsing
2021-01-20 08:28:37 -04:00
Eliot Jones
1d36098ec5
Merge pull request from BobLd/type1-flex
Correct letter bbox for Type1 font/flexpoints - Fix 
2021-01-20 08:26:51 -04:00
Plaisted
a0f0c4d6c7 switch to old syntax for build server 2021-01-19 18:53:44 -06:00
Plaisted
4c807691b7 adding in PlainTokenizer to unpooled SB changes 2021-01-19 18:52:14 -06:00