BobLd
7c4f5e2424
Introduce StackDepthGuard class to check for stack depth in CoreTokenScanner and fix #1217
Build, test and publish draft / build (push) Has been cancelled
Build and test [MacOS] / build (push) Has been cancelled
Run Common Crawl Tests / build (0000-0001) (push) Has been cancelled
Run Common Crawl Tests / build (0002-0003) (push) Has been cancelled
Run Common Crawl Tests / build (0004-0005) (push) Has been cancelled
Run Common Crawl Tests / build (0006-0007) (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
Nightly Release / Check if this commit has already been published (push) Has been cancelled
Nightly Release / tests (push) Has been cancelled
Nightly Release / build_and_publish_nightly (push) Has been cancelled
2025-12-23 16:24:04 +01:00
Jason Nelson
6d54355754
Spanify filters
2024-04-12 07:42:19 +01:00
Jason Nelson
f62929eb7c
Spanify work 1 ( #812 )
...
* Add GetString(ReadOnlySpan<byte>) polyfill
* Add ArrayPoolBufferWriter
* Use Utf8.IsValid & char.IsAsciiHexDigit on NET8.0+
* Optimize HexTokenizer
* Eliminate various Tuple allocations
* Eliminate List allocation in CrossReferenceTable
* Eliminate various allocations in Ascii85Filter
* Spanify HexToken
* Spanify Palette
* Spanify various Cmap & font methods
* Spanify Type1Charstring classes
* Spanify PdfDocEncoding.TryConvertBytesToString
* Spanify OctalHelpers.FromOctalDigits
* Add missing braces
* React to HexToken.Byte type changes
* Cleanup
* [Tests] React to span changes
* Add ArgumentNullException check back to Type1CharstringDecryptedBytes
* Remove unsafe code
* Seal HexToken
* Avoid allocation when passing an empty span
2024-04-01 09:18:01 +01:00
Jason Nelson
321f321e53
Replace obsolete netcoreapp test target with net471
2024-03-16 07:40:17 +00:00
Jason Nelson
1d2777d59a
[Tests] Enable implict usings
2024-03-16 07:40:17 +00:00
BobLd
3bdc9498de
Use double for pdf version instead of decimal
2024-02-14 21:09:16 +00:00
Eliot Jones
6f59bed9a2
use pdfdocencoding when parsing strings
2023-06-04 16:40:43 +01:00
Fred Natzke
29adece983
Original #516 fix causes Tests to fail. Alternative to use pagesByNumber?.Count in Catalog for discovered pages. Some other unrelated tests failed due to source using single rather than two character newlines. Changed to test string itself for '\r' rather than environment is Unix
2022-11-30 11:10:52 +10:00
Eliot Jones
2576c3d838
#443 fix bug in new calculated offset which caused xref issue
2022-04-24 13:19:32 -04:00
Eliot Jones
2a68670896
#443 handle case where file version comment token included in string by tokenization
...
instead just brute force the raw content
2022-04-24 12:37:26 -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
693a3d5958
use offset to file header to correct cross references
...
if the %pdf version header comment is offset from the start of the file the cross reference offsets will also be wrong by that amount. this change updates the cross reference location logic to use the offset from the located version header.
2020-01-26 15:30:20 +00:00
Eliot Jones
a561c8954e
handle the format header being preceded by nonsense
...
some files seem to have the format header preceded by large amounts of junk but this appears to be valid for chrome and acrobat reader. this change ups the amount of nonsense to be read prior to the version header.
also makes parsing of the version header culture invariant which may be related to #85 .
2020-01-25 16:53:41 +00:00
Eliot Jones
a6541f1cfc
fix test references
...
update references for unit tests to reference new core and fonts projects. all tests except the public api scanner tests now run successfully.
2020-01-04 22:56:41 +00:00
Eliot Jones
d98b8b43c1
small performance tweaks and remove package license expression
...
package license url is deprecated in favour of package license expression but nuget doesn't seem to support expressions properly for published packages yet so we'll keep the deprecated url for the time being. having both url and expression causes the build to fail.
small obvious performance improvements for file header passing and getting the encoding information using the existing reverse name to code map.
2019-08-18 13:47:01 +01:00
Eliot Jones
ec62542b64
change the project name to something silly
2018-01-10 19:49:32 +00:00