Commit Graph

37 Commits

Author SHA1 Message Date
BobLd
0da7bbf3d4 Replace System.Drawing by SkiaSharp in Tests 2024-01-14 20:09:57 +00:00
BobLd
8a82500427 Improve KdTree memory allocation using ArraySegments 2023-07-23 15:35:26 +02:00
BobLd
2dabaf1348
Update System.Drawing.Common version in Tests (#584) 2023-03-26 19:42:35 +01:00
Fred Natzke
3a848c090c Fix for Issue#549. Skip over Jpg segments rather than use bruce force to find segment start marker 2023-02-16 15:55:42 +10:00
Eliot Jones
d7898d851c add net 6 as a target framework and dual target tests 2022-04-03 14:48:50 -04:00
Kasper Frank
1ea412179f Make unit tests behave cross platform 2021-06-02 11:07:51 +02:00
Kasper Frank
bd968ff074 Improves support for indexed colorspace images. Also adds rudimentary unit tests of PngFromPdfImageFactory. 2021-05-05 11:14:52 +02:00
Eliot Jones
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
BobLd
05d96cd9c4 add documents for tests 2020-05-30 13:03:59 +01:00
Eliot Jones
9abe9f4b2f #158 add strong naming to the solution 2020-04-04 16:59:51 +01:00
BobLd
0d786a1265 Add tests for KdTree, MathExtensions and Distances
Add reference to DLA project
Make KdTree public
Fix mode computation for multimodal
2020-03-24 19:52:01 +00:00
Eliot Jones
0fcc4e54c8 add istestproject setting to all projects
indicates which projects are test projects to the test runner.
2020-02-27 12:35:40 +00:00
Eliot Jones
bbde38f656 move tokenizers to their own project
since both pdfs and Adobe Type1 fonts use postscript type objects, tokenization is needed by the main project and the fonts project
2020-01-05 10:40:44 +00:00
Eliot Jones
d09b33af4d move tokens to new project 2020-01-05 10:07:01 +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
4d697e3669 allow the user to supply multiple passwords for decryption
previously the only way to test if a password was correct was to supply a single password and throw if the value was incorrect. this was slow. now parsing options supports a list of passwords as well as a single password option (which is equivalent to a list with a single item). these passwords are all tested at the same time and an exception is only thrown once all passwords are tested.
2019-12-20 15:11:05 +00:00
Eliot Jones
df3cb43cfc update coverage libraries 2019-11-27 16:16:11 +00:00
Eliot Jones
283e1d38fa
use azure pipelines instead of appveyor for builds
* trial azure pipelines

[skip ci]

* use vs2017

* build pr commits

* include codecov and update test nuget

* add codecov call

* add publish test results step

* include coverlet package for test coverage and allow coverlet dynamic public types

* add azure pipelines badge and remove appveyor badge

* add nuget pack step

* use build configuration variable for nuget pack and move after build

* fix path to package to pack

* change nuget to dotnet pack

* remove old codecov related tools
2019-07-09 21:21:11 +01:00
Richard Webb
10dcbd0cc4 Add a unit test for reading document information 2019-07-06 22:18:18 +01:00
Eliot Jones
f3c8220ec4 add test coverage for invalid document from #33 2019-06-08 16:58:20 +01:00
Eliot Jones
55a0e6b646 move large strings from code files to avoid wrong language detected on github 2018-12-29 11:55:19 +00:00
Eliot Jones
47e49c4044 #9 fix bug with truetype fonts and start adding support for cid fonts using compact font format 2018-12-28 22:34:47 +00:00
Eliot Jones
06bee446d8 #21 create first actual pdf document based on minimal example. writer for tokens. bump language version 2018-11-28 21:54:06 +00:00
Eliot Jones
9f783ddef0 add some more tests for truetype and tokens 2018-11-25 13:06:54 +00:00
Eliot Jones
530410c996 #6 improve organisation of cff related classes. add failing font test for cff font file. fix bugs with cff parsing 2018-11-18 13:53:43 +00:00
Eliot Jones
0f68dfeb19 #10 move tokens to the root namespace for discoverability. upgrade xunit versions. there is a bug with test discovery for stringtokenizertests 2018-11-16 20:00:12 +00:00
Eliot Jones
d8bf977842 add tests for another type 1 font file 2018-11-15 21:36:52 +00:00
Eliot Jones
7e1bcf6f64 bug fixes for reading from type 1 fonts. test all pages in documents. use content rather than embedded resources for #4 2018-11-15 19:52:42 +00:00
Eliot Jones
d8a4f0f521 create command classes for each of the commands in type 1 charstrings 2018-10-29 22:05:18 +00:00
Eliot Jones
53f693bc77 add tests to visually verify the output for glpyh bounding boxes and use advance widths for empty glyphs in truetype fonts 2018-04-15 12:47:08 +01:00
modest-as
fe3f627f9c merge from upstream 2018-04-13 00:32:12 +01:00
modest-as
05da4d0726 more work on boundaries and unit tests 2018-04-13 00:18:38 +01:00
Eliot Jones
08f11343d3 more integration tests 2018-04-12 23:32:51 +01:00
Eliot Jones
e063ac45fe add support for parsing pfb files in type 1 fonts and an extra integration test 2018-04-12 22:34:38 +01:00
Eliot Jones
7af2b1bcb9 start adding code and tests for reading metrics of type 1 fonts 2018-04-11 22:51:31 +01:00
Eliot Jones
4443cde229 add very hacky parsing for type 1 font files in order to read the encoding 2018-01-14 18:59:03 +00:00
Eliot Jones
ec62542b64 change the project name to something silly 2018-01-10 19:49:32 +00:00