Commit Graph
100 Commits
Author SHA1 Message Date
Eliot Jones c77e2f7952 port png transparency fixes from biggustave changes #346 2021-08-14 14:47:23 -04:00
Eliot Jones 50dc67c2ca nightly push action rework v5
include alpha in the generate nightly package version
i don't know which logic nuget uses to detect pre-release
so it's safer to include alpha in the nightly build version.
2021-08-14 13:21:27 -04:00
Eliot Jones 235f789e4f nightly push action rework v4
probably safer to move the dependent job into the
same action file. of course there's probably a way to
separate them but there's also no way to test for certain
2021-08-14 13:20:08 -04:00
Eliot Jones fcdd08a21c nightly push action rework v3
i think you need to use the double brackets and scope
to the action secrets to access the api key. who knows
it's not like there's any validation or debugging or testing
capability because the entire field of devops has soup for
brain 🧌
2021-08-14 13:17:09 -04:00
Eliot Jones 661d37de0e nightly push action rework v2
very poor documentation for a dependent needs
action/job. looks like it might be repository dispatch
or it must be included in the main file.
2021-08-14 13:10:23 -04:00
Eliot Jones 165bc74c53 try creating a nightly push to nuget script v1
this is intended to create nightly build with package
versions of the form x.y.z-yyyyMMdd.sha and
push them to nuget automatically, only where there
are new changes per day. since devops is a nightmare
and entirely untestable we will have to go through 20
iterations to actually get this to work
2021-08-14 13:01:46 -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
Eliot Jones 72db3bf244 Merge pull request #351 from plaisted/master
AddPage fixes for streams and page dict inheritance
2021-08-04 07:52:22 -04:00
Eliot Jones b3a361e2f2 performance tweak and test case for #334 2021-06-10 16:31:16 -04:00
Eliot Jones 8163163dfc Merge branch 'master' of github.com:UglyToad/PdfPig into master 2021-06-10 16:03:31 -04:00
Eliot Jones ea4889778d support specifying number of documents for console runner 2021-06-02 13:45:12 -04:00
Eliot Jones 672e665d44 Merge pull request #332 from kasperdaff/xplat-unit-tests
Make unit tests behave cross platform
2021-06-02 07:21:25 -04: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
Eliot Jones e353fc69e8 ignore console runner launchsettings
since the console runner is used to run through a test directory stored
locally its value will be different for each developer. we'll ignore it
to avoid it getting committed accidentally
2021-05-30 13:20:55 -04: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
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
Eliot Jones beedb96326 Merge pull request #328 from d-franklin/master
Fixes null reference exception
2021-05-15 12:21:59 -04: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
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
Eliot Jones a85bcb4ec1 Merge pull request #324 from kasperdaff/ccitt-fax-filter
Port of PDFBox's CCITTFaxFilter
2021-05-09 11:52:46 -04:00
Eliot Jones 45efdf3699 Merge pull request #323 from kasperdaff/unpack-indices
Improves support for indexed colorspace images.
2021-05-05 16:06:59 -04:00
Eliot Jones d7f7fb5fd0 Merge pull request #321 from UglyToad/decrypted-string-encoding-support
correctly detect encrypted string encoding when decrypting #313
2021-04-30 13:29:51 -04:00
Eliot Jones c7c4adf441 correctly detect encrypted string encoding when decrypting #313 2021-04-30 10:22:50 -04:00
Eliot Jones c2f2916c04 Merge pull request #318 from kasperdaff/indexed-color-space-table-in-string-token
The palette of an indexed color space can be stored in a StringToken
2021-04-29 06:55:36 -04:00
Eliot Jones d1a6debfb6 Merge pull request #316 from kasperdaff/master
CMYK has four color components
2021-04-26 09:24:32 -04:00
Eliot Jones 9ae0a5ec15 allow stream filters to contain indirect references to name tokens 2021-04-25 16:22:22 -04:00
Eliot Jones c74ca5fda8 Merge pull request #312 from Poltuu/null_token
fix null token handling in document creation
2021-04-02 12:06:41 -04:00
Eliot Jones ea9c2f045c change console runner to target net core 2.1 2021-03-02 12:24:50 -04:00
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 #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
Eliot Jones 560e8ae858 don't throw when reading corrupt truetype name table #292 2021-02-21 12:27:11 -04:00
Eliot Jones becc772242 check for offsets exceeding file length for xref parsing #293 2021-02-21 12:04:17 -04:00
Eliot Jones 25cc3c8634 Merge pull request #279 from plaisted/edit-docs-v2
Add pages from PdfDocument to PdfDocumentBuilder
2021-02-14 09:58:08 -04: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
Eliot Jonesandromain v 6f49b2e29e Fix buggy font (#283)
* Adds checksum on font file reading

* fix name table parsing on broken table

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

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 #258

* 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 #243 2021-02-07 12:22:07 -04: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 #277 from UglyToad/checkbox-checked-state-tolerance
allow a checkbox to not declare a value and only be checked by appearance #267
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 #267
in the example document in issue #267 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 #250 from InusualZ/edit-pdf
[New Feature] PdfPageBuilder: Allow to copy pages from another document
2021-02-06 09:50:09 -04:00
Eliot Jones 660ac5f486 Merge pull request #269 from plaisted/builderpool
Remove locks / SB pooling during CoreTokenScanner parsing
2021-01-20 08:28:37 -04:00
Eliot Jones 1d36098ec5 Merge pull request #240 from BobLd/type1-flex
Correct letter bbox for Type1 font/flexpoints - Fix #217
2021-01-20 08:26:51 -04:00
Eliot Jones 901e4d1ac9 Merge pull request #259 from plaisted/master
PdfMerger: Fix indirect object lookup dict
2021-01-15 09:35:15 -04:00
Eliot Jones ad3e30e19c Merge pull request #254 from Poltuu/pdfmerger_stream_apis
Pdfmerger stream apis
2021-01-15 09:34:45 -04:00
Eliot Jones eabe6b4662 Merge pull request #246 from InusualZ/merger-stackoverflow
Fix #199
2020-12-23 10:54:01 -04:00
Eliot Jones f3b2960211 Merge pull request #249 from InusualZ/token-write-string
Fix TokenWriter::WriteString not escaping properly special characters
2020-12-23 10:52:58 -04:00
Eliot Jones 237fd96f9e version 0.1.4 2020-11-29 14:02:42 -04:00
Eliot Jones cbd6eebecc up brute force range to 10mib #233
previously this was 1mib but the search range was exceeded in a file with over 1 million bytes of xref table.
2020-11-26 21:23:40 -04:00
Eliot Jones 7fdc8e2e86 allow indirect references for type0 font encoding #238 2020-11-26 21:11:53 -04:00
Eliot Jones ccd7d81ae3 #234 handle missing first index for differences array 2020-11-22 13:07:05 -04:00
Eliot Jones fa5e37dc8c handle presence of endobj markers in object stream #235 2020-11-22 12:51:38 -04:00
Eliot Jones 09a85d0497 treat arial mt as standard 14 font #236 2020-11-22 12:49:47 -04:00
Eliot Jones d8e0263ec7 #215 support filling rectangles on pdf builder 2020-11-17 17:00:13 -04:00
Eliot Jones ad0fb4ec5b version 0.1.3 2020-11-15 12:08:37 -04:00
Eliot Jones d959a30bf0 Merge pull request #229 from BobLd/fix-point-size
Fix Letter's PointSize computation
2020-10-13 09:27:40 +01:00
Eliot Jones 034e9a9ec3 Merge pull request #222 from BobLd/read-order-improv
Improve `UnsupervisedReadingOrderDetector` customisation
2020-09-29 14:22:03 +01:00
Eliot Jones 9f225cb2c3 Merge pull request #216 from BobLd/pub-clipping
IntersectsWith(rect, line) and Intersect(rect, line)
2020-09-22 21:02:22 +01:00
Eliot Jones 2ec79852cb Merge pull request #220 from BobLd/fix-clip-line-fill
fix clipping error when trying to fill a single line
2020-09-22 20:36:24 +01:00
Eliot Jones e41ae7d3a2 Merge pull request #213 from BobLd/linux-font
fix LinuxSystemFontLister not able to find any font
2020-09-12 19:12:50 +01:00
Eliot Jones 1502cf60fe Merge pull request #207 from BobLd/pdfpath-ext
Adding Pdfpath/PdfSubpath extensions
2020-09-10 17:28:58 +01:00
Eliot Jones 85ef2daba8 Merge pull request #210 from Poltuu/add_font3_name
ADD : name on type 3 fonts
2020-09-10 13:59:30 +01:00
Eliot Jones 58ecfbf963 0.1.3-alpha001 2020-09-04 13:19:03 +01:00
Eliot Jones 9b7554c973 #203 enable utf16 be strings to be written to the document builder 2020-08-27 09:06:14 +01:00
Eliot Jones f2522f149c add a convenience method for extracting the original rectangle from a subpath 2020-08-22 17:04:14 +01:00
Eliot Jones 04f785aed4 attempt to find bug in #202 due to seemingly empty codespace ranges 2020-08-22 15:38:59 +01:00
Eliot Jones 5ffada46e3 Merge pull request #201 from UglyToad/png-builder-support
Png builder support
2020-08-22 15:37:20 +01:00
Eliot Jones 54f227ea95 add support for extracting grayscale images and inline images 2020-08-22 15:08:59 +01:00
Eliot Jones 6359ba5df1 handle objects without endobj markers #198 2020-08-21 18:15:30 +01:00
Eliot Jones 52104b6580 support conversion of pdf format images to png 2020-08-21 13:12:01 +01:00
Eliot Jones 8860e29191 tidy up png support 2020-08-21 12:11:27 +01:00
Eliot Jones 5ac7a957d0 add initial png support 2020-08-21 10:50:17 +01:00
Eliot Jones 6f26b274c4 Merge pull request #197 from Poltuu/fix_undefined_references
FIX : undefined references is a valid use case.
2020-08-19 17:48:09 +01:00
Eliot Jones b2b85e2f44 Merge pull request #200 from everharder/get-encoding-from-indirectreferencetoken
FIX Error when getting Encoding from an IndirectReferenceToken referencing a Name Token
2020-08-19 17:45:21 +01:00
Eliot Jones dc55fd8011 guess at possible bug in #192
it may be that we try reading a corrupted os/2 table, hard to tell without test document.
2020-07-26 14:36:35 +01:00
Eliot Jones 142c871c47 update editorconfig to override other project defaults 2020-07-26 14:29:18 +01:00
Eliot Jones e42df5b5b5 fix remaining missing culture dependent strings #190 2020-07-26 14:14:37 +01:00
Eliot Jones f3f7533507 add string culture in core code #190 2020-07-26 13:53:34 +01:00
Eliot Jones 48522ae1a5 support indirect name tokens for cidtogidmap in cid fonts #191 2020-07-19 14:36:11 +01:00
Eliot Jones 98af575ee3 version 0.1.2 2020-07-04 16:55:14 +01:00
Eliot Jones 5caf5f2686 Merge pull request #187 from BobLd/dla-example-1
Add AdvancedTextExtraction example
2020-07-01 17:35:49 +01:00
Eliot Jones 7d166131ad Merge pull request #186 from BobLd/dupOverlap
Implement DuplicateOverlappingTextProcessor
2020-07-01 16:09:48 +01:00
Eliot Jones 0f65397f48 Merge pull request #184 from BobLd/docstrum-v2.3
Fix DocstrumBoundingBoxes when dXj=0
2020-06-20 15:27:05 +01:00