Commit Graph

1605 Commits

Author SHA1 Message Date
BobLd
366fc4fe04 Fix out of range exception in AnnotationProvider 2024-12-31 11:54:58 +01:00
BobLd
b6474dda4c Improve UnwrapIndexedColorSpaceBytes 2024-12-31 11:09:57 +01:00
BobLd
50dca593da Do not throw exception when lenient parsing in ON in CrossReferenceParser and fix #959 2024-12-28 12:29:28 +01:00
BobLd
7ec4e692a9 Fix "Nightly Release" pipeline following csproj changes 2024-12-15 10:58:38 +00:00
GrabzIt
952a07ef41 Fix for IndexOutOfRangeException exception
Fixes issue: https://github.com/UglyToad/PdfPig/issues/954
2024-12-12 19:21:16 +00:00
Kizaemon
a2ae1f16d6 New GetText() option: NegativeGapAsWhitespace
When parsing PDF files with tables containing multiple lines in a cell or "merged" cells, the separate words can appear out of horizontal order. This option can better predict the spaces between the words.
2024-12-09 20:39:25 +00:00
BobLd
97ae62ce6f
Update additional glyph list to latest from PDFBox (#948) 2024-11-27 19:52:23 +00:00
BobLd
9ad51067b0
Handle odd ligatures names and fix #945 (#946) 2024-11-27 19:44:17 +00:00
BobLd
20804245d0
Handle alternate Unicode name representation cXXX and fix #943 (#944) 2024-11-24 20:24:36 +00:00
BobLd
bcc8ccecbe
Stop treating Warnings as Errors (#941) 2024-11-23 18:23:22 +00:00
madelson
7db347e9f7
Enable trimming and AOT (#939)
* Enable trimming and AOT analysis for all none-test projects

* Try annotating various XmlSerializer related functions with RequiresUnreferencedCode

* fix remaining AOT warnings

* fix attribute warning message

---------

Co-authored-by: Richard Webb <richard.webb@helpsystems.com>
2024-11-20 07:42:37 +00:00
madelson
8ca539942d
Optimize cross reference object offset validation by avoiding nested loop
* Optimize cross reference object offset validation by avoiding nested loops

* Address https://github.com/UglyToad/PdfPig/pull/935#discussion_r1839585652
2024-11-13 19:47:50 +00:00
BobLd
132ada7fac Upgrade tests project NuGet packages 2024-11-02 10:07:48 +00:00
BobLd
d3bf63fdbf Move Paths, GetAnnotations() and GetOptionalContents() outside of ExperimentalAccess and mark Experimental class and reference as obsolete 2024-10-30 19:22:13 +00:00
BobLd
40af401364 Default page number to 0 in ExplicitDestination when the Dest has no page number and fix #736
Some checks failed
Build and test / build (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
Nightly Release / tests (push) Has been cancelled
Nightly Release / Check latest commit (push) Has been cancelled
Nightly Release / build_and_publish_nightly (push) Has been cancelled
2024-10-25 21:28:11 +01:00
BobLd
e10609e4e1 Use pdfScanner in ReadVerticalDisplacements and fix #693 and return 0 in CMap on exception in ReadByte() if useLenientParsing is true and fix #692
Some checks failed
Build and test / build (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
2024-10-19 00:29:42 +01:00
Arnaud TAMAILLON
ea95a7ae7a Support decrypting V4/R4 files with AESV2 and no Length property
Some checks failed
Build and test / build (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
2024-10-17 20:43:21 +01:00
BobLd
8cee4f480f Introduce ParsingOptions.FilterProvider and BaseFilterProvider and make CcittFaxCompressionType a byte 2024-10-17 20:27:24 +01:00
BobLd
4b5cb4736f Make IFilter implementation classes public 2024-10-17 20:27:24 +01:00
BobLd
c6793da4f4 Reorganise Filters folder 2024-10-17 20:27:24 +01:00
BobLd
e903b6c365 Remove list from FileTrailerParser.GetStartXrefPosition()
Some checks failed
Build and test / build (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
2024-10-15 20:02:45 +01:00
BobLd
f40545b0a5 Add early version of BrowserSystemFontLister
Some checks failed
Build and test / build (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
2024-10-12 16:49:36 +01:00
BobLd
a258090e1c Fix GetTextOrientation by cleanly checking if rotation is divisible by 90 and fix #913
Some checks failed
Build and test / build (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
2024-10-07 20:08:24 +01:00
Eliot Jones
c46722fa26 version 0.1.9
Some checks failed
Build and test / build (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
2024-10-06 15:40:24 +01:00
Eliot Jones
eb9a191e0d remove useless checksum check for truetype font processing
Some checks failed
Build and test / build (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
2024-09-29 18:17:40 +01:00
BobLd
f6566d6007 Fix #878
Some checks are pending
Build and test / build (push) Waiting to run
Run Integration Tests / build (push) Waiting to run
2024-09-29 16:45:33 +01:00
BobLd
5260c4ba3d Fix Separation color space and add tests 2024-09-29 16:45:05 +01:00
BobLd
8ce6bcc2a7 Fix ByteEncodingCMapTable.CharacterCodeToGlyphIndex() to account for glyph mapping length, add test and fix #881 2024-09-29 16:44:43 +01:00
BobLd
ad785328e1 Handle unpacking components for 16 bits per component images and use Span in RemoveStridePadding 2024-09-29 16:44:13 +01:00
BobLd
5c168f9cd0 Handle null token in DirectObjectFinder, handle null state in SetNamedGraphicsState(), add and test and fix #874 2024-09-29 16:43:50 +01:00
BobLd
689c127cd9 Get correct text orientation when base line points are equal and fix #741 2024-09-29 16:43:21 +01:00
Arnaud TAMAILLON
4845f43696
Support reading files with missing white space after xref in lenient mode (#906)
Support missing white space after xref

---------

Co-authored-by: Arnaud TAMAILLON <arnaud.tamaillon@younited-credit.fr>
2024-09-09 07:09:04 +01:00
yjagota
09bddba778
Enabled ClipPaths option to filter letters. (#905)
* Enabled ClipPaths option to filter letters.

* parsingOptions is not passed as  an argument now.
2024-09-08 13:36:26 +01:00
Arnaud TAMAILLON
cd2a85e642 Ensure tests are reusing the previous build and run on release configuration 2024-09-03 05:09:03 +01:00
Arnaud TAMAILLON
abce843923 Fix message 2024-09-03 05:09:03 +01:00
Arnaud TAMAILLON
fc3cd81c96 Support relaxed parsing of missing or garbage-prepended endobj/endtream tokens 2024-09-03 05:09:03 +01:00
Arnaud TAMAILLON
f4d1456489 Support parsing lines after references count in lenient mode 2024-09-02 21:22:56 +01:00
Arnaud TAMAILLON
cf45dcf6ad
Support not finding the Pages dictionary in lenient mode (#897)
* Support not finding the Pages dictionary in lenient mode and support Kids object not referencing a page object in lenient mode

---------

Co-authored-by: Arnaud TAMAILLON <arnaud.tamaillon@younited-credit.fr>
2024-09-01 15:09:48 +01:00
Arnaud TAMAILLON
1bfd6dedb4 Support finding object declarations without endobj on previous object 2024-09-01 13:12:36 +01:00
Arnaud TAMAILLON
bd9702a402 Skip whole " obj" parsing once found 2024-09-01 13:12:36 +01:00
Arnaud TAMAILLON
68e48d04f0 Support decrypting AES data where only IV is present 2024-09-01 10:00:06 +01:00
Arnaud TAMAILLON
4f2a0976e3 Fix parsing of hexadecimal strings with odd number of characters 2024-09-01 09:02:37 +01:00
Arnaud TAMAILLON
05e6a894d0 Fix reading encryption byte strings 2024-09-01 08:54:20 +01:00
Arnaud TAMAILLON
b824fb2b14 Support trailer info to be a dictionary instead of an indirect reference 2024-08-31 09:26:43 +01:00
BobLd
b4649758c6 Restore checking for correct image size in PngFromPdfImageFactory 2024-08-20 19:18:31 +01:00
BobLd
a8684984eb Fix DoubleComparer precision in tests 2024-08-20 19:17:45 +01:00
BobLd
56baa3592b Simplify PdfRectangle width and height computation and fix tests 2024-08-20 19:17:45 +01:00
BobLd
a99c0d25bf Fix GeometryExtensions.Contains() when rectangle area is 0 2024-07-20 21:43:16 +01:00
BobLd
65c644f150 Minor performance optimisations in GeometryExtensions 2024-07-01 18:34:13 +01:00
BobLd
bac00e475b Improve KdTree creation performance 2024-06-27 23:20:16 +02:00