Commit Graph

1049 Commits

Author SHA1 Message Date
Eliot Jones
1d36098ec5
Merge pull request #240 from BobLd/type1-flex
Correct letter bbox for Type1 font/flexpoints - Fix #217
2021-01-20 08:26:51 -04:00
BobLd
a7a021531c
Merge pull request #263 from BobLd/pdfrectangle-width-fix
Use Euclidean distance in PdfRectangle's width and height
2021-01-16 10:31:35 +00:00
Eliot Jones
901e4d1ac9
Merge pull request #259 from plaisted/master
PdfMerger: Fix indirect object lookup dict
2021-01-15 09:35:15 -04:00
Eliot Jones
ad3e30e19c
Merge pull request #254 from Poltuu/pdfmerger_stream_apis
Pdfmerger stream apis
2021-01-15 09:34:45 -04:00
BobLd
980c6e2316 Use Euclidean distance in PdfRectangle's width and height 2021-01-15 11:20:45 +00:00
Plaisted
8b7fb5274f PdfMerger: Correcting indirect object lookup dict to use dictionary compatible key 2021-01-14 13:57:28 -06:00
romain v
5dbee43dbb Adds output stream support in pdfmerger methods 2021-01-14 09:33:48 +01:00
romain v
a1abf99afc PdfMerger favors streams instead of byte[]
Also, adds api similar to PdfDocument regarding streams
2021-01-14 09:33:05 +01:00
Romain V
19e831b656
fix stackoverflow on pdfmerger (#252)
Obj Ref1
 Kids: [Ref2]

Obj Ref2
 Parent: Ref1
2021-01-08 21:35:19 +00:00
Wesley Moret
7239396665
Allow to have empty code space, fixes #256 (#257) 2021-01-08 20:50:33 +00:00
Wesley Moret
19ac38bf8b
[Improved] PdfMerger: Allow to select the pages when merging documents (#248)
* PdfMerger: Allow to select the pages when merging documents

Supersede #245

* Impose artificial limit in the amount of page, that a node can contain

Plus, Use IReadOnlyList instead of IReadOnlyCollection
2021-01-05 00:31:37 +00:00
Eliot Jones
eabe6b4662
Merge pull request #246 from InusualZ/merger-stackoverflow
Fix #199
2020-12-23 10:54:01 -04:00
Eliot Jones
f3b2960211
Merge pull request #249 from InusualZ/token-write-string
Fix TokenWriter::WriteString not escaping properly special characters
2020-12-23 10:52:58 -04:00
InusualZ
e9c8fbbbaa Fix TokenWriter::WriteString not escaping properly special characters 2020-12-20 19:34:13 +00:00
InusualZ
4e4377c5d4 Address Merger test issue and removed dead code. 2020-12-14 17:39:16 +00:00
InusualZ
d676755f55 Fix #199
In large file brute forcing the search of a specific token can be quite difficult. Detecting duplicated token can be made in a more performance way.
2020-12-09 17:26:41 +00:00
BobLd
04874c25f5 - implement flexpoints
- deactivate SetCurrentPointCommand() - need more investigation
- make SbwCommand static
- add data.pdf and test
2020-12-01 14:57:47 +00:00
Eliot Jones
237fd96f9e version 0.1.4 2020-11-29 14:02:42 -04:00
BobLd
6e69160b4e
Merge pull request #237 from BobLd/operationcontext-refactor
Using `byte[]` for `IPageImageRenderer` and keeping the point on `ModifyCurrentTransformationMatrix.cs` in mind.
2020-11-27 11:29:45 +00:00
BobLd
2b60474e11 IPageImageRenderer returns byte[] instead of MemoryStream. 2020-11-27 11:18:29 +00:00
Eliot Jones
cbd6eebecc up brute force range to 10mib #233
previously this was 1mib but the search range was exceeded in a file with over 1 million bytes of xref table.
2020-11-26 21:23:40 -04:00
Eliot Jones
7fdc8e2e86 allow indirect references for type0 font encoding #238 2020-11-26 21:11:53 -04:00
BobLd
52eb935182 Clean IOperationContext documentation. 2020-11-23 13:40:43 +00:00
BobLd
54f7f7a84a Update PublicApiScannerTests with new public methods 2020-11-23 12:53:35 +00:00
BobLd
69e23be450 Improve documentation for PdfSubpath.Rectangle(...). 2020-11-23 12:47:01 +00:00
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
Eliot Jones
ccd7d81ae3 #234 handle missing first index for differences array 2020-11-22 13:07:05 -04:00
Eliot Jones
fa5e37dc8c handle presence of endobj markers in object stream #235 2020-11-22 12:51:38 -04:00
Eliot Jones
09a85d0497 treat arial mt as standard 14 font #236 2020-11-22 12:49:47 -04:00
Eliot Jones
d8e0263ec7 #215 support filling rectangles on pdf builder 2020-11-17 17:00:13 -04:00
Eliot Jones
ad0fb4ec5b version 0.1.3 2020-11-15 12:08:37 -04:00
Eliot Jones
d959a30bf0
Merge pull request #229 from BobLd/fix-point-size
Fix Letter's PointSize computation
2020-10-13 09:27:40 +01: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
Eliot Jones
034e9a9ec3
Merge pull request #222 from BobLd/read-order-improv
Improve `UnsupervisedReadingOrderDetector` customisation
2020-09-29 14:22:03 +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
Eliot Jones
9f225cb2c3
Merge pull request #216 from BobLd/pub-clipping
IntersectsWith(rect, line) and Intersect(rect, line)
2020-09-22 21:02:22 +01:00
Eliot Jones
2ec79852cb
Merge pull request #220 from BobLd/fix-clip-line-fill
fix clipping error when trying to fill a single line
2020-09-22 20:36: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
Eliot Jones
e41ae7d3a2
Merge pull request #213 from BobLd/linux-font
fix LinuxSystemFontLister not able to find any font
2020-09-12 19:12:50 +01:00
BobLd
d29cc52973 add test that fails on linux: LinuxSystemFontLister cannot find the 'TimesNewRomanPSMT' font 2020-09-12 17:11:55 +01:00