Commit Graph

  • bf664c3f0b Use ReadOnlyMemory<byte> in ShowText operators and implement MoveToNextLineShowTextWithSpacing parsing BobLd 2025-06-28 18:04:10 +01:00
  • 6a50160e65 Prevent RunLengthFilter malicious OOM BobLd 2025-06-29 11:17:07 +01:00
  • 73ce5bbb73 Make classes related to page content parsing public BobLd 2025-06-28 13:07:59 +01:00
  • d1d79b0b4c Check ColorSpace token as dictionary and fix issue #1061 BobLd 2025-06-15 20:44:41 +01:00
  • 89abf6de54 Skip creating IndirectReference in CrossReferenceTablePartBuilder when generationNumber is more than 65,535 BobLd 2025-06-01 13:38:30 +01:00
  • 24431b1f9f Optimize internal representation of IndirectReference BobLd 2025-06-01 09:44:46 +01:00
  • 8f9194c9a4 Miscellaneous minor changes BobLd 2025-05-31 22:25:07 +01:00
  • fe3d15d5db Add extension method to get Memory<byte> from MemoryStream, attempting to do it without allocation and update CMapParser BobLd 2025-05-30 11:27:02 +01:00
  • b5b58434e9 Make the Diacritics class public for use in external StreamProcessors BobLd 2025-05-30 08:31:16 +01:00
  • d9b3891eb3 Do not throw if the Mask dictionary contains a ColorSpace key BobLd 2025-05-30 07:40:32 +01:00
  • 4bdb85d1ff Modernise PngPredictor and refactor LzwFilter and FlateFilter to reduce memory allocation BobLd 2025-05-29 18:45:52 +01:00
  • f84f2aceec Improve memory allocation by changing IFilter.Decode() signature to use Memory<byte> instead of ReadOnlyMemory/ReadOnlySpan BobLd 2025-05-29 12:07:37 +01:00
  • 2b54a546d3 Check for infinite recursion in ObjectLocationProvider.TryGetOffset() and fix #1050 BobLd 2025-05-28 20:10:58 +01:00
  • 5b566b53da Only reset missed attempts count if table is found in CrossReferenceParser.Parse() and fix #1047 BobLd 2025-05-27 19:44:31 +01:00
  • ca9f70ffb0 Skip control chars in CoreTokenScanner.MoveNext() and fix #1048 BobLd 2025-05-27 19:30:37 +01:00
  • 67d3dde04a Handle TrueType case in CidFontFactory where the font is CFF, implement missing members in PdfCidCompactFontFormatFont and fix #554 BobLd 2025-05-19 00:04:48 +01:00
  • e4d7805a1f Add test to ensure #822 is fixed BobLd 2025-05-18 22:14:23 +01:00
  • 6911f31b49 Try to repair xref offset by looking for all startxref and fix #1040 BobLd 2025-05-18 14:52:21 +01:00
  • bf7c3c01d0 Fix bug introduced in #1039 BobLd 2025-05-13 18:24:28 +01:00
  • c3c477a2ba Bugfix and optimize GetStartXrefPosition ricflams 2025-05-09 00:01:10 +02:00
  • 4dab2ef239 Add early support for Stencil masking, rename SoftMaskImage property into MaskImage and make sure IsInlineImage is true for InlineImage BobLd 2025-05-11 15:42:51 +01:00
  • 0bed135bad Make sure the value of the ImageMask / Im token is check in ColorSpaceDetailsParser BobLd 2025-05-11 14:10:21 +01:00
  • 47584716ec Add support for MacCatalyst in SystemFontFinder BobLd 2025-04-24 19:05:18 +01:00
  • afdd1f8924 Fix issue #1013 BobLd 2025-04-20 15:40:15 +01:00
  • 580858348b Seal PdfSubpath class and IPathCommand implementations, fix Close.GetHashCode() and fix #1027 BobLd 2025-04-12 13:36:10 +01:00
  • 24902f1839 Update README.md BobLd 2025-04-06 12:06:12 +01:00
  • 87f5735b26 Refactor AesEncryptionHelper and check for sting length when using < net8 BobLd 2025-04-06 11:08:09 +01:00
  • eeac910e44 Fix CanFilterClippedLetters() failing on MacOS because font is not available BobLd 2025-04-06 10:32:37 +01:00
  • 5439c07ef5 Make ExplicitDestinationType a byte a fix CanCreateDocumentWithOutline() failing test BobLd 2025-04-06 10:08:26 +01:00
  • b8bd40e486 Create build_and_test_macos.yml BobLd 2025-04-06 09:41:04 +01:00
  • 4fbcc112d3 Fix bug where FormXObject bbox needs to be normalised BobLd 2025-03-30 21:54:12 +01:00
  • ede77c20f5 Update README.md BobLd 2025-03-30 11:39:47 +01:00
  • 5fb36d452f Handle SoftMask BobLd 2024-09-06 21:17:36 +01:00
  • 74d61bd985 Fix PatternColor Equals() method and fix #1016 BobLd 2025-03-26 19:38:29 +00:00
  • ba8e1e1b45 fix #1017 Matěj Štágl 2025-03-26 00:46:42 +01:00
  • 0754e7f003 Implement clipping in ProcessFormXObject() BobLd 2025-03-23 20:39:22 +00:00
  • 306642a234 Add SetStrokeDetails() and SetFillDetails() to PdfPath and tidy up ContentStreamProcessor BobLd 2025-03-17 21:22:05 +00:00
  • 204f488ebf Improve Jpeg2000Helper to support J2K codec and add test BobLd 2025-03-09 13:55:36 +00:00
  • a4a0fe220a Bump version to 0.1.11-alpha001 BobLd 2025-03-08 13:41:12 +00:00
  • f1f27a63e1 Update run_integration_tests.yml v0.1.10 BobLd 2025-03-08 13:14:53 +00:00
  • d36e9a900f version 0.1.10 BobLd 2025-02-22 13:20:38 +00:00
  • 1b3c7bd355 Better handle integer overflow in DocstrumBoundingBoxes BobLd 2025-03-02 15:39:12 +00:00
  • 67d8f56366 Do not throw exception when lenient parsing in GetExtendedGraphicsStateDictionary() and improve StackDictionary.TryGetValue() to not throw on empty BobLd 2025-03-02 11:43:16 +00:00
  • f26e7d90a3 Pass IFilterProvider to IFilter.Decode() and handle null in PdfExtensions.Resolve() BobLd 2025-02-23 09:19:15 +00:00
  • d973e03206 Resolve image data (implementation from @kasperdaff) BobLd 2025-02-22 20:47:07 +00:00
  • c4a235fb62 Update Microsoft NuGet packages for UglyToad.PdfPig.Package BobLd 2025-02-22 12:54:31 +00:00
  • 7ceeb5bff8 Update Microsoft and SkiaSharp NuGet packages BobLd 2025-02-20 20:22:07 +00:00
  • b9bcfa5997 Make DecodeParameterResolver class public BobLd 2025-02-20 19:40:01 +00:00
  • 5a06e1e1cc Assess if transformedGlyphBounds and use transformedPdfBounds as fallback and fix #987 BobLd 2025-02-18 20:04:33 +00:00
  • 1298356f10 Fix typo in CharacterBoundingBox and small optimisation in TrueTypeFont and seal both classes BobLd 2025-02-18 19:58:38 +00:00
  • 1660c734e2 Add JPX bits per component decoding BobLd 2025-02-08 10:56:33 +00:00
  • fdb8835b37 CcittFaxDecodeFilter: do not check for input length, invert bitmap with ref byte and fix #982 BobLd 2025-02-02 14:09:22 +00:00
  • 5209850af7 Update UnpackComponents() to account for 1bpc + DeviceGray (hack for Jbig2) BobLd 2025-01-20 06:57:47 +00:00
  • b7e2245eca Refactor XObjectFactory BobLd 2025-01-19 20:19:15 +00:00
  • 24b9a99b8a Fix warnings about "type 'K' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'" BobLd 2025-01-19 11:43:47 +00:00
  • c4576e4ffa Do not throw error on Pop when stack size is 1 in lenient mode and fix #973 BobLd 2025-01-19 11:00:43 +00:00
  • 92d3439465 Update UglyToad.PdfPig.ConsoleRunner target framework to net8 BobLd 2025-01-14 21:58:43 +00:00
  • 1ca52f4d70 Update OptionalContentGroupElement.cs simonedd 2025-01-14 13:05:44 +01:00
  • f86cc582ab Execute RemoveStridePadding in place when possible BobLd 2025-01-05 16:38:09 +00:00
  • 53cf4f2ced Properly handle ZapfDingbats font for TrueTypeSimpleFont and add tests BobLd 2025-01-05 17:27:01 +00:00
  • 4430a01e43 Properly handle ZapfDingbats font for Type1FontSimple and Type1Standard14Font and add tests BobLd 2025-01-05 14:18:00 +00:00
  • 585e940acf Always check for additional glyph list and add tests BobLd 2025-01-05 13:56:40 +00:00
  • d1779cc739 Make ColorSpaceDetails.BaseNumberOfColorComponents public to allow for external image factories BobLd 2025-01-04 09:17:44 +00:00
  • 2b14ae03c1 Return a copy of the ArrayPoolBufferWriter buffer in Ascii85, AsciiHex and RunLength filters and fix #964 BobLd 2024-12-31 12:56:38 +00:00
  • 366fc4fe04 Fix out of range exception in AnnotationProvider BobLd 2024-12-31 10:32:00 +00:00
  • b6474dda4c Improve UnwrapIndexedColorSpaceBytes BobLd 2024-09-29 19:28:53 +01:00
  • 50dca593da Do not throw exception when lenient parsing in ON in CrossReferenceParser and fix #959 BobLd 2024-12-28 11:18:09 +00:00
  • 7ec4e692a9 Fix "Nightly Release" pipeline following csproj changes BobLd 2024-12-15 10:56:03 +00:00
  • 952a07ef41 Fix for IndexOutOfRangeException exception GrabzIt 2024-12-12 13:17:48 +00:00
  • a2ae1f16d6 New GetText() option: NegativeGapAsWhitespace Kizaemon 2024-12-08 21:28:47 +09:00
  • 97ae62ce6f Update additional glyph list to latest from PDFBox (#948) BobLd 2024-11-27 19:52:23 +00:00
  • 9ad51067b0 Handle odd ligatures names and fix #945 (#946) BobLd 2024-11-27 19:44:17 +00:00
  • 20804245d0 Handle alternate Unicode name representation cXXX and fix #943 (#944) BobLd 2024-11-24 20:24:36 +00:00
  • bcc8ccecbe Stop treating Warnings as Errors (#941) BobLd 2024-11-23 18:23:22 +00:00
  • 7db347e9f7 Enable trimming and AOT (#939) madelson 2024-11-20 02:42:37 -05:00
  • 8ca539942d Optimize cross reference object offset validation by avoiding nested loop madelson 2024-11-13 14:47:50 -05:00
  • 132ada7fac Upgrade tests project NuGet packages BobLd 2024-11-02 09:59:32 +00:00
  • d3bf63fdbf Move Paths, GetAnnotations() and GetOptionalContents() outside of ExperimentalAccess and mark Experimental class and reference as obsolete BobLd 2024-10-30 19:00:15 +00:00
  • 40af401364 Default page number to 0 in ExplicitDestination when the Dest has no page number and fix #736 BobLd 2024-10-25 21:18:16 +01:00
  • e10609e4e1 Use pdfScanner in ReadVerticalDisplacements and fix #693 and return 0 in CMap on exception in ReadByte() if useLenientParsing is true and fix #692 BobLd 2024-10-18 23:17:00 +01:00
  • ea95a7ae7a Support decrypting V4/R4 files with AESV2 and no Length property Arnaud TAMAILLON 2024-10-16 14:46:13 +02:00
  • 8cee4f480f Introduce ParsingOptions.FilterProvider and BaseFilterProvider and make CcittFaxCompressionType a byte BobLd 2024-10-15 22:51:22 +01:00
  • 4b5cb4736f Make IFilter implementation classes public BobLd 2024-10-15 22:24:27 +01:00
  • c6793da4f4 Reorganise Filters folder BobLd 2024-10-15 22:00:45 +01:00
  • e903b6c365 Remove list from FileTrailerParser.GetStartXrefPosition() BobLd 2024-10-15 19:38:46 +01:00
  • f40545b0a5 Add early version of BrowserSystemFontLister BobLd 2024-10-12 15:33:07 +01:00
  • a258090e1c Fix GetTextOrientation by cleanly checking if rotation is divisible by 90 and fix #913 BobLd 2024-10-07 06:17:00 +01:00
  • c46722fa26 version 0.1.9 v0.1.9 Eliot Jones 2024-10-06 15:40:24 +01:00
  • eb9a191e0d remove useless checksum check for truetype font processing Eliot Jones 2024-09-29 17:06:08 +01:00
  • 1c802bbbe1 remove useless checksum check for truetype font processing remove-debug-logging-for-checksums-in-truetype Eliot Jones 2024-09-29 17:06:08 +01:00
  • f6566d6007 Fix #878 BobLd 2024-09-17 07:02:29 +01:00
  • 5260c4ba3d Fix Separation color space and add tests BobLd 2024-08-26 17:13:48 +01:00
  • 8ce6bcc2a7 Fix ByteEncodingCMapTable.CharacterCodeToGlyphIndex() to account for glyph mapping length, add test and fix #881 BobLd 2024-08-25 11:59:19 +01:00
  • ad785328e1 Handle unpacking components for 16 bits per component images and use Span in RemoveStridePadding BobLd 2024-08-24 20:24:19 +01:00
  • 5c168f9cd0 Handle null token in DirectObjectFinder, handle null state in SetNamedGraphicsState(), add and test and fix #874 BobLd 2024-08-22 21:28:45 +01:00
  • 689c127cd9 Get correct text orientation when base line points are equal and fix #741 BobLd 2024-08-08 13:53:24 +01:00
  • 4845f43696 Support reading files with missing white space after xref in lenient mode (#906) Arnaud TAMAILLON 2024-09-09 08:09:04 +02:00
  • 09bddba778 Enabled ClipPaths option to filter letters. (#905) yjagota 2024-09-08 18:06:26 +05:30
  • cd2a85e642 Ensure tests are reusing the previous build and run on release configuration Arnaud TAMAILLON 2024-09-03 00:14:01 +02:00
  • abce843923 Fix message Arnaud TAMAILLON 2024-09-03 00:06:15 +02:00