Commit Graph

99 Commits

Author SHA1 Message Date
Jason Nelson
e01bf5e849 Spanify IInputBytes 2024-04-12 07:42:19 +01:00
Jason Nelson
6d54355754 Spanify filters 2024-04-12 07:42:19 +01:00
BobLd
2d6cb1aa0c Properly implement Quadtratic and Cubic bezier-curves and use Quadtratic in CalculatePath to fix #625 2024-04-05 11:33:59 +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
907181d5ce Bump .net4.7 target to .net4.7.1 and eliminate System.ValueTuple depedency 2024-03-15 13:10:25 +00:00
Jason Nelson
c2541b815a Use HashCode.Combine 2024-03-15 13:10:25 +00:00
Jason Nelson
834fb350a3 Use Array.Empty 2024-03-15 13:10:25 +00:00
Jason Nelson
4653671b2d Set LangVersion to 12 2024-03-15 13:10:25 +00:00
Jason Nelson
6da9c90042 Add .NET 8.0 target 2024-03-15 13:10:25 +00:00
Jason Nelson
8e0500e833 Drop unsupported .NET frameworks 2024-03-15 13:10:25 +00:00
BobLd
ac0276f1bf Use double in fonts instead of decimals and tidy up remaining decimals 2024-03-06 20:53:11 +00:00
BobLd
a6eb6c952c Make OtherEncodings Iso88591 readonly 2024-02-15 06:52:26 +00:00
BobLd
4537ec3f02 Add TransformationMatrix.Transform(double, double) 2023-11-18 16:46:23 +00:00
BobLd
c6e2de1b0c Make all structs readonly when possible 2023-10-18 23:44:11 +01:00
BobLd
fe0e4db419 Properly handle page rotation for crop box and media box and fix #665 2023-10-18 21:27:56 +01:00
Eliot Jones
129e69fdf9 Merge pull request #638 from UglyToad/pdfdocencoding
Implement PdfDocEncoding for reading string tokens
2023-06-05 22:01:25 +01:00
Eliot Jones
2be4c69c16 set nightly release version
also toggles class back to public for nightly
versions #538
2023-06-05 21:37:34 +01:00
Eliot Jones
16ac297d10 version 0.1.8 2023-06-05 21:36:00 +01:00
Eliot Jones
6f59bed9a2 use pdfdocencoding when parsing strings 2023-06-04 16:40:43 +01:00
Eliot Jones
35ff13732e remove completely out of support net 4.5 2023-05-17 20:20:05 +01:00
Eliot Jones
a5c91f00d9 remove invalid constructor 2023-03-17 22:32:22 +01:00
BobLD
cc6e2d302f Implement TryGetPath and TryGetNormalisedPath for fonts 2023-03-17 20:28:21 +00:00
mvantzet
76ce251a6e Merge branch 'UglyToad:master' into PageSizesAndRotation 2023-03-17 19:35:55 +01:00
mvantzet
17681472cc Also apply optimizations (set sin/cos to integers) for e.g. -270 degrees. 2023-03-13 17:50:58 +01:00
BobLD
c56705d4ff Implement pdf functions and add type 0, 2 and 4 function tests 2023-03-08 18:59:16 +00:00
Eliot Jones
d2944e14e5 change alpha version for nightly builds 2023-01-08 12:01:48 -05:00
Eliot Jones
57e9acbc12 post merge tidy up 2023-01-08 12:00:35 -05:00
Fred Natzke
620fa9b8cc Fix #514 Print Character with ZapfDingbats font 2022-12-13 14:22:30 +10:00
BobLD
5eed9fd1bc Fix #458 Check if stack has element and invert sorting order in GrahamScan(), add tests 2022-05-24 07:47:55 +01:00
Eliot Jones
03692cf42f set version to alpha of 0.1.7 for future nightly builds 2022-04-25 10:06:46 -04:00
Eliot Jones
5597a8f38c version 0.1.6 2022-04-25 09:22:47 -04:00
Eliot Jones
d7898d851c add net 6 as a target framework and dual target tests 2022-04-03 14:48:50 -04:00
Jacob O'Toole
715e73ace8 Add SetTextRenderingMode method to PdfPageBuilder 2022-02-15 11:46:58 +00:00
Eliot Jones
a538aaf0de bump version so that nightly builds for pre-release have correct version 2022-01-10 12:40:47 +00:00
Eliot Jones
4c36f84a0d version 0.1.5 2021-09-17 11:16:43 -04:00
Eliot Jones
16d26effc5 0.1.5-alpha002 2021-05-09 13:05:54 -04:00
Eliot Jones
b930924b9b 0.1.5-alpha001 2021-02-28 13:55:25 -04:00
BobLd
980c6e2316 Use Euclidean distance in PdfRectangle's width and height 2021-01-15 11:20:45 +00:00
Eliot Jones
237fd96f9e version 0.1.4 2020-11-29 14:02:42 -04:00
BobLd
69e23be450 Improve documentation for PdfSubpath.Rectangle(...). 2020-11-23 12:47:01 +00:00
Eliot Jones
ad0fb4ec5b version 0.1.3 2020-11-15 12:08:37 -04: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
58ecfbf963 0.1.3-alpha001 2020-09-04 13:19:03 +01:00
BobLd
b9419469ac add PdfSubpath and PdfPath geometry extensions 2020-08-29 17:08:02 +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
f3f7533507 add string culture in core code #190 2020-07-26 13:53:34 +01:00
Eliot Jones
98af575ee3 version 0.1.2 2020-07-04 16:55:14 +01:00
Eliot Jones
5fb04582a7 0.1.2-alpha003 2020-06-20 12:54:31 +01:00
Eliot Jones
256c2833ab 0.1.2-alpha002 2020-05-10 16:36:14 +01:00
BobLd
bb33741552 Fix KdTree.FindNearestNeighbours(k) returning the pivot itself 2020-05-10 15:49:00 +01:00