Commit Graph

  • 9d15930401 Cleaned up usings, log warning when using user space unit other than 1, removed comment mvantzet 2023-03-15 22:31:31 +01:00
  • a07fdb8d45 Follow suggestion by @BobLd, added 2 more test cases for if we want to support more lenient page size parsing in the future. mvantzet 2023-03-14 12:33:21 +01:00
  • 048caedd64 Reverted change of ModifiedDate (from string to DateTimeOffset) since according to the PDF reference guide this field can contain anything. mvantzet 2023-03-14 12:01:24 +01:00
  • 9ff095c516 Fix typo mvantzet 2023-03-13 18:15:33 +01:00
  • ea77156eb8 Changes for annotation positions: - Pass in the initial matrix to the annotation provider, so that it can return the correct rectangles / quad points. - Made a change / extensions to the Annotation class: - ModifiedDate is now a DateTimeOffset instead of unparsed string. If the string is invalid, ModifiedDate is set to the default value. - Added lookup for the "appearance streams"; all the annotations should have a "N" (normal) appearance, and optionally have a "R" (roll-over/hover) and "D" (down/click) appearance. Did not expose the actual stream objects, but added a flag indicating the existence of "R" / "D". At some point we can consider doing something with the appearances. - Changed signature of GetInitialMatrix / ContentStreamProcessor constructor from PdfRectangle back to what it was earlier, namely MediaBox and CropBox, to prevent accidentally mixing the two up in the caller. mvantzet 2023-03-13 18:15:24 +01:00
  • a439b43246 Added integration test for cropped document, and a cropped+rotated document with an annotation as well. Added annotations to visual verification test (blue outlines). mvantzet 2023-03-13 18:08:20 +01:00
  • 17681472cc Also apply optimizations (set sin/cos to integers) for e.g. -270 degrees. mvantzet 2023-03-13 17:50:58 +01:00
  • 0413f3f1bf Fix related to page sizes / rotation / coordinate transformations (issue 560): mvantzet 2023-03-09 16:42:09 +01:00
  • 3a0a6e1411 Resolving page sizes did not work when the page orientation was landscape, or when side lengths were not integer or off by one. Added unit tests. mvantzet 2023-03-09 16:09:14 +01:00
  • c56705d4ff Implement pdf functions and add type 0, 2 and 4 function tests BobLD 2023-03-01 15:17:05 +00:00
  • 65ff0cb54e Fix for issue #550 Fred Natzke 2023-03-01 12:29:45 +10:00
  • 65e3c77a5c Merge branch 'UglyToad:master' into master DGdev91 2023-02-23 02:40:00 +01:00
  • 999f9ee7dc Merge pull request #551 from fnatzke/Issue549 Eliot Jones 2023-02-18 10:50:44 +00:00
  • 761bce8591 Merge pull request #539 from mvantzet/ExtendLetterProperties Eliot Jones 2023-02-18 10:48:47 +00:00
  • 5a7ed7c9eb PdfMerger: Make possible to override document informations for output document DGdev91 2023-02-17 00:13:18 +01:00
  • 1759c235f0 PdfMerger: Add optional parameter to set desired PDF/A standard DGdev91 2023-02-16 16:00:12 +01:00
  • 3d6a14bea6 Add enums for PDF/A-3 a and PDF/A-3 b compliance DGdev91 2023-02-16 15:09:26 +01:00
  • 3a848c090c Fix for Issue#549. Skip over Jpg segments rather than use bruce force to find segment start marker Fred Natzke 2023-02-16 15:55:42 +10:00
  • 88aaddcf26 Merge pull request #541 from fnatzke/Fix540 Eliot Jones 2023-01-16 15:25:35 -05:00
  • 324de1da67 Fix 540 Copy page with inline image. Fred Natzke 2023-01-16 14:27:04 +10:00
  • 2acca32987 Added integration test to see if we can detect the presence of invisible text (text rendering mode = Neither), visible text, the presence of images and the presence of paths. Certain combinations thereof potentially must be run through OCR. mvantzet 2023-01-13 14:11:13 +01:00
  • 06253966e4 Added Letter properties RenderingMode, StrokeColor, FillColor and added those as mandatory constructor arguments. Kept property Color, which contains either StrokeColor (if rendering mode is Stroke) or FillColor (for all other rendering modes). In PdfPageBuilder opted for default text rendering mode "Fill" which seems like a sensible default. mvantzet 2023-01-13 12:35:25 +01:00
  • 65bc754f5b remove ci unsupported syntax Eliot Jones 2023-01-08 15:38:05 -05:00
  • d5b196ff44 remove unsupported syntax Eliot Jones 2023-01-08 14:18:09 -05:00
  • d2944e14e5 change alpha version for nightly builds Eliot Jones 2023-01-08 12:01:48 -05:00
  • 57e9acbc12 post merge tidy up Eliot Jones 2023-01-08 12:00:35 -05:00
  • 7b891edb69 Merge pull request #526 from fnatzke/Issue455-Issue_extracting_unicode_from_CJK_file Eliot Jones 2023-01-08 11:53:32 -05:00
  • 37e31c40ae Merge pull request #522 from fnatzke/master Eliot Jones 2023-01-08 11:52:15 -05:00
  • 982f36647a Merge pull request #525 from mvantzet/ITokenWriter Eliot Jones 2023-01-08 11:49:56 -05:00
  • 210c0dde50 Issue451_Type2CharStrings parsing/intepretation error Fred Natzke 2022-12-26 17:08:03 +10:00
  • 68d55150d2 Fix #350 Escape text in writer for ShowText operator for slash and open and close round brackets. Fred Natzke 2022-12-26 14:04:02 +10:00
  • 8b32a4d958 TYpe0Font better description of conversion to unicode. Fred Natzke 2022-12-24 10:53:55 +10:00
  • 4ba2a29aa0 Fix #455 extracting unicode from CJK file Fred Natzke 2022-12-23 16:53:37 +10:00
  • 94c62e1b65 Forgot to commit this updated test, to allow ITokenWriter and PdfTextRemover to be public. mvantzet 2022-12-21 09:35:29 +01:00
  • 371e148c63 Remove unreachable code mvantzet 2022-12-20 21:31:35 +01:00
  • 6ef6c4d780 Added a PdfTextRemover utility that uses a NoTextTokenWriter, to output PDFs without text contents. Also added unit tests to test: - If we can use a custom ITokenWriter with PdfDocumentBuilder - If removing text works. mvantzet 2022-12-20 21:31:15 +01:00
  • 9273a43965 Merge branch 'master' of https://github.com/mvantzet/PdfPig into ITokenWriter mvantzet 2022-12-20 11:08:13 +01:00
  • 6125c00089 Make it possible to inject a custom ITokenWriter in PdfDocumentBuilder. mvantzet 2022-12-20 10:50:41 +01:00
  • 2bcac59917 Minor cleanup of some texts. Fred Natzke 2022-12-20 14:22:37 +10:00
  • 7b441a3b0a Standard14WritingFontTests Add tests of invalid characters for each standard font Fred Natzke 2022-12-20 14:17:02 +10:00
  • 8f13e2f11c Fix #375 Add checkmark from ZapfDingbats using unicode character. Letters extracted have unicode values. Fred Natzke 2022-12-17 17:39:15 +10:00
  • 3594231c67 Introduce ITokenWriter / non-static TokenWriter class. This is the first step in making it possible to override methods in the token writer, for example to filter streams when writing using PdfDocumentBuilder. mvantzet 2022-12-15 18:01:10 +01:00
  • 620fa9b8cc Fix #514 Print Character with ZapfDingbats font Fred Natzke 2022-12-13 14:22:30 +10:00
  • c8874c5984 #483 make skip missing fonts even more resilient to nonsense files v0.1.7 Eliot Jones 2022-12-11 16:18:09 -05:00
  • 2aed996319 Merge pull request #517 from fnatzke/master Eliot Jones 2022-12-09 09:39:55 -05:00
  • 060c7bc728 Merge pull request #521 from eliotjones-roger/rotation-support-for-page-builder Eliot Jones 2022-12-09 09:08:27 -05:00
  • 6764d81958 Merge pull request #520 from mjolivet-lucca/master Eliot Jones 2022-12-09 08:56:22 -05:00
  • 95df15996b add ability to rotate page by number of degrees, make builder fluent Eliot Jones 2022-12-09 08:44:56 -05:00
  • 998e768bba [ADD] adding non regression unit test to cover PR 473 Mathieu jolivet 2022-12-08 14:38:19 +01:00
  • f5fe39b285 Issue 512 revisited. Use of hashset to avoid reprocessing same token in infinite loop. Fred Natzke 2022-12-07 17:27:34 +10:00
  • 9ef07b0176 Fix Issue 519 Break infinite loop parsing kid token list containing parent Fred Natzke 2022-12-06 16:29:09 +10:00
  • 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 Fred Natzke 2022-11-30 11:10:52 +10:00
  • a7f64ec64b Fix Issue 516. Page Dictionary Count field has incorrect page count. Compare with PageTree children count. Fred Natzke 2022-11-30 09:25:23 +10:00
  • afe473e10e Fix for Issue#512: Unable to open PDF. BruteForceSearcher::GetLastEndOfFileMarker() minimumEndOffset out by 1. Fred Natzke 2022-11-29 17:31:23 +10:00
  • 9c9c7c99ea ci new namespace file scope unsupported Eliot Jones 2022-10-09 16:01:20 -04:00
  • e2246a88bb #482 add skip missing fonts option and pass parsing options to content stream processor Eliot Jones 2022-10-09 13:44:05 -04:00
  • c643facee0 #481 skip resource entry if null token Eliot Jones 2022-10-09 13:06:04 -04:00
  • 2f9a9ace9a Merge pull request #473 from grinay/master Eliot Jones 2022-08-13 16:02:44 -04:00
  • 19962af011 Fix page number order. For case when root nod has reference to page the order will be incorrect. The case if root node has reference [2 0 R 3 0 R 10 0 R] Where 2 0 R is intermediate node containing page 1,2,3 grinay 2022-07-29 18:27:56 +08:00
  • 545d1a0793 Merge branch 'master' of github.com:UglyToad/PdfPig Eliot Jones 2022-07-02 18:09:22 -04:00
  • 3cd81297c1 handle infinity symbol encountered in edge-case files Eliot Jones 2022-07-02 18:09:11 -04:00
  • fc71a91dfa Merge pull request #463 from Jonowa/master Eliot Jones 2022-06-21 08:00:14 -04:00
  • f2188729a3 #453 handle messed up number format Eliot Jones 2022-06-17 20:35:21 -04:00
  • ae83861c5f Correct value of cc in DrawEllipsis Jörg Nowak 2022-06-09 07:49:50 +02:00
  • 21dfa3e985 Add DrawTriangle, DrawCircle and DrawEllipsis Jörg Nowak 2022-06-08 13:20:06 +02:00
  • b5d90d1725 allow indirect references in xref streams as an attempt to fix #457 xref-stream-indirect-457 Eliot Jones 2022-05-29 16:26:56 -04:00
  • 559f3af5f3 Merge pull request #459 from BobLd/master Eliot Jones 2022-05-24 08:15:04 -04:00
  • 5eed9fd1bc Fix #458 Check if stack has element and invert sorting order in GrahamScan(), add tests BobLD 2022-05-22 23:53:46 +01:00
  • ddab53e456 remove stray debugging code Eliot Jones 2022-05-10 10:14:36 -04:00
  • 4e490d63be #444 handle invalid tounicode map objects in tt fonts Eliot Jones 2022-05-02 16:17:05 -04:00
  • 03692cf42f set version to alpha of 0.1.7 for future nightly builds Eliot Jones 2022-04-25 10:06:46 -04:00
  • 5597a8f38c version 0.1.6 v0.1.6 Eliot Jones 2022-04-25 09:22:47 -04:00
  • 2576c3d838 #443 fix bug in new calculated offset which caused xref issue Eliot Jones 2022-04-24 13:19:32 -04:00
  • 8ca0ed3842 #443 make xref parsing more tolerant for near misses Eliot Jones 2022-04-24 13:07:30 -04:00
  • 2a68670896 #443 handle case where file version comment token included in string by tokenization Eliot Jones 2022-04-24 12:37:26 -04:00
  • 801a395ba4 #418 skip operands if missing symbols Eliot Jones 2022-04-22 16:32:59 -04:00
  • 26f028c421 #437 actually use code written for multi-part xref tables and fix bug Eliot Jones 2022-04-22 16:32:38 -04:00
  • a12fc0ce34 #441 option to replace tabs and whitespace with space character in generated text Eliot Jones 2022-04-22 16:31:53 -04:00
  • cbd02a270f don't throw if no information dictionary if lenient parsing Eliot Jones 2022-04-14 20:46:36 -04:00
  • 49ce5c7eb7 Merge pull request #440 from UglyToad/diacritics-stuff Eliot Jones 2022-04-14 20:29:53 -04:00
  • eb0758f050 only combine when it forms part of the same byte sequence Eliot Jones 2022-04-14 20:22:49 -04:00
  • b5b15ee593 add handling for combining diacritics Eliot Jones 2022-04-14 20:14:09 -04:00
  • 4bcbb0655c include reference to public api changes for 0.1.6 Eliot Jones 2022-04-14 19:29:08 -04:00
  • 10680299cb Merge pull request #432 from BobLd/master Eliot Jones 2022-04-14 19:20:59 -04:00
  • 09a623d2d3 support writing non-sequential xref tables Eliot Jones 2022-04-10 12:35:25 -04:00
  • 3195422376 remove preview static local function by moving to class scope Eliot Jones 2022-04-10 12:06:12 -04:00
  • 2d34e46122 remove not-required compiler directive Eliot Jones 2022-04-10 11:52:33 -04:00
  • 9cffd501fa Merge pull request #435 from theolivenbaum/master Eliot Jones 2022-04-10 11:50:02 -04:00
  • c2ecb7853b fix bug with floating point type 2 charstring calculation #425 Eliot Jones 2022-04-04 17:23:39 -04:00
  • fb033bc87e remove old build status badge Eliot Jones 2022-04-04 08:17:35 -04:00
  • d2864f761a Merge pull request #436 from UglyToad/net6-target-framework Eliot Jones 2022-04-04 07:39:15 -04:00
  • e402a07105 add net 6 support in actions Eliot Jones 2022-04-03 15:22:39 -04:00
  • 3ab0883cf3 fix bug with handling of more than 256 bytes Eliot Jones 2022-04-03 15:20:42 -04:00
  • 347259eaa5 #433 address breaking change in aes api in net 6 Eliot Jones 2022-04-03 15:13:45 -04:00
  • 9be57c6948 use precision in assert for letter bounding box tests Eliot Jones 2022-04-03 15:00:38 -04:00
  • d7898d851c add net 6 as a target framework and dual target tests Eliot Jones 2022-04-03 14:48:50 -04:00
  • 6b08547481 use windows 2019 now 2016 is deprecated Eliot Jones 2022-04-03 14:26:37 -04:00
  • 6a32d041a4 naughty local tests, go away Eliot Jones 2022-04-02 15:59:08 -04:00
  • 2fd46571b3 #434 ensure companion stream is added to cross reference on building Eliot Jones 2022-04-02 15:58:22 -04:00
  • 75a9665ff6 refactor ProcessPagesNode not to use a recursive algorithm rafael-aero 2022-03-28 22:49:48 +02:00