Commit Graph
100 Commits
Author SHA1 Message Date
BobLd 3c510c62f2 Add PdfRendererImageFormat 2020-11-23 12:44:23 +00:00
BobLd 68e487d5ff Add IPageImageRenderer 2020-11-23 12:38:44 +00:00
BobLd 95fa002b4a Add Matte constant token. 2020-11-23 11:26:58 +00:00
BobLd 4d86dc399e Make MediaBox public 2020-11-23 11:21:10 +00:00
BobLd 910e22997c Remove CurrentTransformationMatrix from IOperationContext. 2020-11-23 11:13:46 +00:00
BobLd eb85f67b18 Remove CurrentGraphicsState GetCurrentState() from IOperationContext. 2020-11-23 11:11:07 +00:00
BobLd 14465f0198 remove ref to Util.JetBrains.Annotations in IOperationContext. 2020-11-23 10:53:09 +00:00
BobLd d07baa97d5 Remove reference from CurrentSubpath and CurrentPath in IOperationContext and add MoveTo(), BezierCurveTo(), LineTo() and Rectangle(). 2020-11-23 10:49:50 +00:00
BobLd 61d3e94a95 update PointSize description 2020-10-12 16:52:33 +01:00
BobLd cd9ac6ac6c - fix letter's PointSize computation by applying the transform to a rectangle of height fontSize
- add test with rotated letters
2020-10-12 12:59:02 +01:00
BobLd d3b619b6ee Fix Error CS0136 and tidy up code 2020-09-29 13:50:05 +01:00
BobLd 90dacb1fcf Improve UnsupervisedReadingOrderDetector customisation: allows changing the spatial reasoning rule in use and using or not rendering order. 2020-09-26 12:29:24 +01:00
BobLd 8f0f7769a6 fix clipping error when trying to fill a single line; add log; set EvenOdd as default in initiate CurrentClippingPath; add tests 2020-09-22 10:47:34 +01:00
BobLd 46b183f564 add IntersectsWith(PdfRectangle, PdfLine) and Intersect(PdfRectangle, PdfLine) 2020-09-15 11:41:24 +01:00
BobLd d29cc52973 add test that fails on linux: LinuxSystemFontLister cannot find the 'TimesNewRomanPSMT' font 2020-09-12 17:11:55 +01:00
BobLd 4ca020fc34 LinuxSystemFontLister: also check the HOME env variable and explore all sub-directories 2020-09-12 16:59:44 +01:00
BobLd 7b085a8498 update documentation and add note about concave poly issue 2020-09-01 11:18:22 +01:00
BobLd e5ab4eb571 minor corrections 2020-08-31 11:36:17 +01:00
BobLd 77d448c517 better functions documentation 2020-08-30 13:57:02 +01:00
BobLd ce3edcd0cc tidy up code and use EvenOdd as default in PointInPaths() 2020-08-30 13:44:35 +01:00
BobLd f656922d2d add tests for PdfPath.Contains(Rectangle) - EvenOdd 2020-08-29 19:27:12 +01:00
BobLd b9419469ac add PdfSubpath and PdfPath geometry extensions 2020-08-29 17:08:02 +01:00
BobLd a60be8d60a add AdvancedTextExtraction 2020-06-26 12:28:12 +01:00
BobLd 4cda06c2fa make Letter public and flag letter as bold 2020-06-26 10:29:44 +01:00
BobLd fe8bc0e5be Implement DuplicateOverlappingTextProcessor 2020-06-25 15:00:20 +01:00
BobLd 4b88f4adbe correct typo in section numers 2020-06-20 14:27:13 +01:00
BobLd 4f78e58195 remove unnecessary 'inheritdoc' 2020-06-20 14:24:29 +01:00
BobLd 924c0138e0 fix Docstrum's GetTranslatedPoint() to handle dXj=0 2020-06-20 14:19:23 +01:00
BobLd 091c17bdf8 Merge branch 'master' of https://github.com/UglyToad/PdfPig 2020-06-20 13:30:30 +01:00
BobLd 4758820db5 Merge branch 'master' of https://github.com/UglyToad/PdfPig 2020-06-20 12:29:39 +01:00
BobLd 8ef70d9a9d Merge branch 'master' of https://github.com/BobLd/PdfPig 2020-06-18 18:31:29 +01:00
BobLd 7a393383de Merge branch 'master' of https://github.com/UglyToad/PdfPig 2020-06-17 22:56:41 +01:00
BobLd 33f92cd11c handle page rotation by updating initial TransformationMatrix 2020-06-02 16:12:24 +01:00
BobLd 6e773446df simplify double cast 2020-06-01 14:55:45 +01:00
BobLd 2d9a4e5adb fix CurrentTransformationMatrix multiplication order in ProcessFormXObject 2020-06-01 14:00:17 +01:00
BobLd 958beada48 Merge branch 'master' of https://github.com/UglyToad/PdfPig 2020-06-01 13:54:01 +01:00
BobLd 4312aa470e minor optimisations 2020-05-30 13:03:59 +01:00
BobLd 3ac26bb1bc fix bbox for TextLine and TextBlock 2020-05-30 13:03:59 +01:00
BobLd 14454184ad update RecursiveXYCutTests 2020-05-30 13:03:59 +01:00
BobLd 6d31ef80a7 add RecursiveXYCutTests 2020-05-30 13:03:59 +01:00
BobLd aa0e75d768 update DocstrumBoundingBoxesTests 2020-05-30 13:03:59 +01:00
BobLd 208e1dd8f2 add DocstrumBoundingBoxesTests 2020-05-30 13:03:59 +01:00
BobLd 75e9046c16 add DlaHelper for tests and correct minor typos 2020-05-30 13:03:59 +01:00
BobLd 05d96cd9c4 add documents for tests 2020-05-30 13:03:59 +01:00
BobLd 465cf3f072 update word rotated bbox with previous PdfRectangle constructor order 2020-05-30 13:03:59 +01:00
BobLd dacf816a86 add summary doc to Clipper 2020-05-30 13:03:59 +01:00
BobLd f883b56e72 completely rework DocstrumBoundingBoxes, now handle rotated text 2020-05-30 13:03:59 +01:00
BobLd a16f377d5a update DefaultPageSegmenter to use DlaOptions 2020-05-30 13:03:59 +01:00
BobLd 1438fec741 update RecursiveXYCut to use DlaOptions 2020-05-30 13:03:59 +01:00
BobLd 5362a335f5 update XYLeaf with word separator 2020-05-30 13:03:59 +01:00
BobLd 79b78f486a add ReadingOrderHelper 2020-05-30 13:03:59 +01:00
BobLd ec613d337f correct Word bounding box 2020-05-30 13:03:59 +01:00
BobLd 8f1ab2022f update NearestNeighbourWordExtractor to use DlaOptions, stop ordering words 2020-05-30 13:03:59 +01:00
BobLd 43a68693ba allow oriented bounding box for TextBlock 2020-05-30 13:03:59 +01:00
BobLd 5b0b0a6db3 allow oriented bounding box for TextLine 2020-05-30 13:03:59 +01:00
BobLd bb94348127 add text Separator in TextBlock and TextLine 2020-05-30 13:03:59 +01:00
BobLd 5f75205e41 rename TextDirection into TextOrientation 2020-05-30 13:03:59 +01:00
BobLd 33ee66af42 add PageSegmenterOptions abstract class 2020-05-30 13:03:59 +01:00
BobLd dd546dcfc8 update IPageSegmenter with DlaOptions 2020-05-30 13:03:59 +01:00
BobLd 3cf7c45994 add DlaOptions abstract class 2020-05-30 13:03:59 +01:00
BobLd a00660cd6e update nn word extractor for new clustering type 2020-05-30 13:03:59 +01:00
BobLd 78da925263 add AlmostEqualsToZero() and AlmostEquals(). 2020-05-30 13:03:59 +01:00
BobLd 08300f6a3a use IReadOnlyList<PdfPoint> i/o PdfPoint[] in KdTree 2020-05-30 13:03:59 +01:00
BobLd ca4111ec1b better parameters for FindIndexNearest 2020-05-30 13:03:59 +01:00
BobLd d2c2a2f592 add angle bounding functions 2020-05-30 13:03:59 +01:00
BobLd 404d6621de return grouped elements i/o grouped indexes in Clustering.NearestNeighbours 2020-05-30 13:03:59 +01:00
BobLd eccfb35397 Merge branch 'master' of https://github.com/UglyToad/PdfPig 2020-05-23 18:26:19 +01:00
BobLd 78d57ad5f9 Add italic-bold test 2020-05-23 16:26:39 +01:00
BobLd 40afe977a3 check for ItalicAngle != 0 2020-05-23 16:26:39 +01:00
BobLd 496a9bc6c7 Merge branch 'master' of https://github.com/UglyToad/PdfPig 2020-05-22 13:46:31 +01:00
BobLd bb33741552 Fix KdTree.FindNearestNeighbours(k) returning the pivot itself 2020-05-10 15:49:00 +01:00
BobLd 1b51eba496 Merge branch 'master' of https://github.com/UglyToad/PdfPig 2020-04-28 22:11:56 +01:00
BobLd a53d87a6f5 Fix KdTree.FindNearestNeighbours(k) returning the pivot itself 2020-04-28 22:01:50 +01:00
BobLd f91acefcfa Set ClipPaths to false if no ParsingOptions given (consistent behaviour) 2020-04-27 17:21:52 +01:00
BobLd 1a3edabd1f Set ClipPaths to false if no ParsingOptions given (consistent behaviour) 2020-04-27 12:51:02 +01:00
BobLd ae82c30a31 Merge branch 'master' of https://github.com/UglyToad/PdfPig 2020-04-25 10:10:08 +01:00
BobLd c2de52423e Make NearestNeighbours public 2020-04-25 08:40:43 +01:00
BobLd d4210cd5d1 Make clustering algos public and use shorter names 2020-04-25 08:40:43 +01:00
BobLd 0a6ec3946b NearestNeighbourWordExtractor:
- Improve results by using PointSize
- Make 'filterFunction' public for ad hoc GetWords()
- Allow text in different direction

Make Letter.PointSize public and add warning (needed for NNWordExtractor)
Remove Page.GetPointSize(Letter letter)
2020-04-20 13:09:35 +01:00
BobLd 8eb50517dd Merge branch 'master' of https://github.com/UglyToad/PdfPig 2020-04-20 00:08:09 +01:00
BobLd 25c8560a96 Merge branch 'master' of https://github.com/UglyToad/PdfPig 2020-04-19 10:51:00 +01:00
BobLd 9d4bd69d79 Merge branch 'master' of https://github.com/UglyToad/PdfPig 2020-04-18 20:17:20 +01:00
BobLd 93c19d72ec improve mbr by removing PdfPoints creation 2020-04-18 11:09:49 +01:00
BobLd ab94746252 Improve default RecursiveXYCut dominant font width and height functions 2020-04-13 10:25:34 +01:00
BobLd 395c5a7fd9 Improve default RecursiveXYCut dominant font width and height functions 2020-04-12 19:49:30 +01:00
BobLd 3833fff28f Merge branch 'master' of https://github.com/UglyToad/PdfPig 2020-04-12 16:13:00 +01:00
BobLd b462c3bea4 update PublicApiScannerTests 2020-04-12 10:15:12 +01:00
BobLd 88c5aeebd5 Make DateFormatHelper public 2020-04-12 10:15:12 +01:00
BobLd 416d980a5c update PublicApiScannerTests 2020-04-10 15:33:37 +01:00
BobLd 48ad309ede Make DateFormatHelper public 2020-04-10 14:38:59 +01:00
BobLd 60595e1341 Check if current path is null for path construction operators 2020-04-05 17:58:57 +01:00
BobLd 9a2a72ea2e remove clipping to fix CanGetArtifact() test 2020-04-05 17:58:57 +01:00
BobLd 270b1b5ef5 add comment about bezier curves/polylines when clipping 2020-04-05 17:58:57 +01:00
BobLd e2b03c3075 implement clipping using Clipper (Boost Software License) 2020-04-05 17:58:57 +01:00
BobLd a759a99389 Move ClipPaths option from GetPage() to ParsingOptions 2020-04-05 17:58:57 +01:00
BobLd c14646fcc0 Fix Mode() 2020-04-05 17:58:57 +01:00
BobLd ec2dcdc9f4 Check if CurrentSubpath is null in CloseSubpath() 2020-04-05 17:58:57 +01:00
BobLd 16a17f3b8d update IsClosed() with Move 2020-04-05 17:58:57 +01:00
BobLd d804a63905 update comments 2020-04-05 17:58:57 +01:00
BobLd b923a42f9e Check if CurrentSubpath null before CloseSubpath 2020-04-05 17:58:57 +01:00