Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: itext/itext-pdfsweep-dotnet
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.0.0
Choose a base ref
...
head repository: itext/itext-pdfsweep-dotnet
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: develop
Choose a head ref

Commits on Sep 28, 2021

  1. Copy the full SHA
    8380409 View commit details

Commits on Oct 4, 2021

  1. [RELEASE] Merge master into

    iText-CI committed Oct 4, 2021
    Copy the full SHA
    d0e63e7 View commit details
  2. Copy the full SHA
    94676fe View commit details

Commits on Nov 15, 2021

  1. Remove logging dependency

    DEVSIX-6046
    ar3em committed Nov 15, 2021
    Copy the full SHA
    cf6dbf0 View commit details

Commits on Dec 22, 2021

  1. Update dependencies

    iText-CI committed Dec 22, 2021
    Copy the full SHA
    deac544 View commit details

Commits on Jan 5, 2022

  1. Add missing copyright headers and update copyright year

    DEVSIX-6228
    
    Original commit hash: [fc4787c]
    Evgeniy Prudnikov authored and iText-CI committed Jan 5, 2022
    Copy the full SHA
    e2201b1 View commit details

Commits on Feb 10, 2022

  1. Add missing javadocs

    DEVSIX-6349
    
    Autoported commit.
    Original commit hash: [c46afb5]
    ars18wrw authored and iText-CI committed Feb 10, 2022
    Copy the full SHA
    25215e5 View commit details

Commits on Mar 24, 2022

  1. Update dependencies

    iText-CI committed Mar 24, 2022
    Copy the full SHA
    9cb4c9d View commit details

Commits on May 20, 2022

  1. Update port-hash

    Change commons-imaging dependency to version 1.0-alpha1 instead of 1.0-SNAPSHOT
    
    Autoported commit.
    Original commit hash: [845a843]
    Manual files:
    pom.xml
    iText-CI authored and yulian-gaponenko committed May 20, 2022
    Copy the full SHA
    37ae81b View commit details

Commits on Jun 16, 2022

  1. [RELEASE] pdfSweep 3.0.1

    iText-CI committed Jun 16, 2022
    Copy the full SHA
    9b46706 View commit details
  2. Copy the full SHA
    bc50275 View commit details

Commits on Jun 20, 2022

  1. Copy the full SHA
    4435ebd View commit details

Commits on Jun 23, 2022

  1. [RELEASE] Merge master into

    iText-CI committed Jun 23, 2022
    Copy the full SHA
    e6b91e4 View commit details
  2. Copy the full SHA
    3622a69 View commit details

Commits on Jun 28, 2022

  1. Get rid of old tooling in itextcore

    DEVSIX-6890
    introfog committed Jun 28, 2022
    Copy the full SHA
    d8b9f5f View commit details

Commits on Jul 28, 2022

  1. Update autoported files

    f74b62a7b25bc3b6e2e6a169ec570456cb03532c
    iText-CI committed Jul 28, 2022
    Copy the full SHA
    9132ab0 View commit details

Commits on Oct 11, 2022

  1. Update dependencies

    iText-CI committed Oct 11, 2022
    Copy the full SHA
    5aa744c View commit details

Commits on Oct 14, 2022

  1. Create an automated test for rectangles drawn with zero-width line

    The test contans wrong cmp file. It must be replaced after the bug is fixed.
    
    DEVSIX-7136
    
    Autoported commit.
    Original commit hash: [71b02a0]
    vitali.prudnikovich authored and iText-CI committed Oct 14, 2022
    Copy the full SHA
    b815a31 View commit details
  2. Add missing copyright headers

    Autoported commit.
    Original commit hash: [86e6288]
    iText-CI committed Oct 14, 2022
    Copy the full SHA
    85aa43c View commit details

Commits on Oct 17, 2022

  1. Update autoported files

    86e6288fe3f937fb43d89de0e3146c989a4be441
    iText-CI committed Oct 17, 2022
    Copy the full SHA
    872dec7 View commit details

Commits on Nov 18, 2022

  1. Check image type before processing image

    DEVSIX-7033
    guustysebie committed Nov 18, 2022
    Copy the full SHA
    ab90a47 View commit details

Commits on Nov 21, 2022

  1. Create test for unsupported image type

    DEVSIX-7033
    
    Autoported commit.
    Original commit hash: [acc7e2d]
    guustysebie authored and iText-CI committed Nov 21, 2022
    Copy the full SHA
    2ecba96 View commit details

Commits on Dec 2, 2022

  1. Copy the full SHA
    ffa7618 View commit details

Commits on Dec 6, 2022

  1. Introduce static methods for text <-> glyph space conversions

    DEVSIX-5385
    
    Autoported commit.
    Original commit hash: [8fe8f4b]
    guustysebie authored and iText-CI committed Dec 6, 2022
    Copy the full SHA
    f87a303 View commit details

Commits on Dec 7, 2022

  1. Add bouncy-castle-adapter-dependency

    DEVSIX-7037
    Eugene Bochilo authored and AnhelinaM committed Dec 7, 2022
    Copy the full SHA
    c4893d7 View commit details

Commits on Dec 28, 2022

  1. Update copyright notice to 2023

    DEVSIX-6437
    guustysebie committed Dec 28, 2022
    Copy the full SHA
    d058b93 View commit details

Commits on Jan 3, 2023

  1. Update copyright notice to 2023

    DEVSIX-6437
    guustysebie committed Jan 3, 2023
    Copy the full SHA
    21f9c4b View commit details

Commits on Jan 4, 2023

  1. [RELEASE] pdfSweep 3.0.2

    iText-CI committed Jan 4, 2023
    Copy the full SHA
    2d65055 View commit details
  2. Copy the full SHA
    7a50598 View commit details

Commits on Feb 20, 2023

  1. Replace "itext7" to simple "itext"

    DEVSIX-7365
    
    Autoported commit.
    Original commit hash: [e2d1bf9]
    Manual files:
    CONTRIBUTING.md
    README.md
    introfog committed Feb 20, 2023
    Copy the full SHA
    23ddc1f View commit details

Commits on Mar 23, 2023

  1. Update company copyrights in file headers

    DEVSIX-7431
    Andrei Stryhelski committed Mar 23, 2023
    Copy the full SHA
    e9e798c View commit details

Commits on Apr 26, 2023

  1. Update company copyright in .nuspec file

    DEVSIX-7229
    AnhelinaM committed Apr 26, 2023
    Copy the full SHA
    f23b84e View commit details
  2. [RELEASE] pdfSweep 4.0.0

    iText-CI committed Apr 26, 2023
    Copy the full SHA
    229ceb7 View commit details
  3. Copy the full SHA
    917775f View commit details
  4. Copy the full SHA
    9f49b25 View commit details

Commits on Apr 29, 2023

  1. Copy the full SHA
    caa4efa View commit details

Commits on May 31, 2023

  1. Add partitioned sharpen config file

    DEVSIX-7479
    iText-CI authored and glenner003 committed May 31, 2023
    Copy the full SHA
    427d04b View commit details

Commits on Jul 4, 2023

  1. Replace itext7 to itext in product ids

    DEVSIX-7589
    AnhelinaM committed Jul 4, 2023
    Copy the full SHA
    5e9ff14 View commit details

Commits on Jul 20, 2023

  1. Update dependencies

    iText-CI committed Jul 20, 2023
    Copy the full SHA
    15a45d4 View commit details

Commits on Oct 17, 2023

  1. [RELEASE] pdfSweep 4.0.1

    iText-CI committed Oct 17, 2023
    Copy the full SHA
    e2a5fab View commit details
  2. Copy the full SHA
    08b9c1e View commit details
  3. Copy the full SHA
    691a192 View commit details

Commits on Oct 20, 2023

  1. Copy the full SHA
    53dd2be View commit details

Commits on Dec 20, 2023

  1. NPE on fully filtered Image with imageMask=true

    DEVSIX-5217
    
    Autoported commit.
    Original commit hash: [4b8721e]
    Dmitry Radchuk authored and iText-CI committed Dec 20, 2023
    Copy the full SHA
    42f264a View commit details

Commits on Jan 18, 2024

  1. Update copyright notice 2024

    DEVSIX-7291
    guustysebie committed Jan 18, 2024
    Copy the full SHA
    653ffee View commit details
  2. Update port-hash

    Update copyright notice 2024
    
    DEVSIX-7291
    
    Autoported commit.
    Original commit hash: [0da184b]
    Manual files:
    src/main/java/com/itextpdf/pdfcleanup/util/CleanUpCsCompareUtil.java
    src/main/java/com/itextpdf/pdfcleanup/util/CleanUpImageUtil.java
    src/test/java/com/itextpdf/pdfcleanup/CleanUpCsCompareUtilTest.java
    iText-CI authored and guustysebie committed Jan 18, 2024
    Copy the full SHA
    61ec0ef View commit details

Commits on Jan 30, 2024

  1. [RELEASE] pdfSweep 4.0.2

    iText-CI committed Jan 30, 2024
    Copy the full SHA
    f3892ee View commit details
  2. Copy the full SHA
    bdc7436 View commit details

Commits on Feb 1, 2024

  1. Get rid of TeamCity.VSTest.TestAdapter

    * New version of TeamCity isn't compatible with the old TeamCity.VSTest.TestAdapter, so deiced to remove it, because new .NET runners are used which override reason of using TeamCity.VSTest.TestAdapter
    introfog committed Feb 1, 2024
    Copy the full SHA
    b9bb9a5 View commit details
  2. Get rid of TeamCity.VSTest.TestAdapter

    * New version of TeamCity isn't compatible with the old TeamCity.VSTest.TestAdapter, so deiced to remove it, because new .NET runners are used which override reason of using TeamCity.VSTest.TestAdapter
    introfog committed Feb 1, 2024
    Copy the full SHA
    dcea4ef View commit details
Showing with 1,883 additions and 1,379 deletions.
  1. +5 −5 CONTRIBUTING.md
  2. +5 −1 Jenkinsfile
  3. +2 −2 README.md
  4. +40 −0 SECURITY.md
  5. +2 −2 doxyfile
  6. +5 −5 itext.tests/itext.cleanup.tests/Properties/AssemblyInfo.cs
  7. +9 −7 itext.tests/itext.cleanup.tests/itext.cleanup.tests.csproj
  8. +23 −38 itext.tests/itext.cleanup.tests/itext/pdfcleanup/BigDocumentAutoCleanUpTest.cs
  9. +31 −35 itext.tests/itext.cleanup.tests/itext/pdfcleanup/BigDocumentCleanUpTest.cs
  10. +19 −38 itext.tests/itext.cleanup.tests/itext/pdfcleanup/CleanUpAnnotationTest.cs
  11. +3 −4 itext.tests/itext.cleanup.tests/itext/pdfcleanup/CleanUpCsCompareUtilTest.cs
  12. +5 −7 itext.tests/itext.cleanup.tests/itext/pdfcleanup/CleanUpImageUtilTest.cs
  13. +5 −5 itext.tests/itext.cleanup.tests/itext/pdfcleanup/CleanUpInvalidPdfTest.cs
  14. +95 −0 itext.tests/itext.cleanup.tests/itext/pdfcleanup/CleanUpPropertiesUnitTest.cs
  15. +16 −35 itext.tests/itext.cleanup.tests/itext/pdfcleanup/CleanUpTaggedPdfTest.cs
  16. +3 −2 itext.tests/itext.cleanup.tests/itext/pdfcleanup/CleanupLicenseEventsTest.cs
  17. +19 −38 itext.tests/itext.cleanup.tests/itext/pdfcleanup/FilteredImagesCacheTest.cs
  18. +168 −0 itext.tests/itext.cleanup.tests/itext/pdfcleanup/OverlapRatioTest.cs
  19. +16 −35 itext.tests/itext.cleanup.tests/itext/pdfcleanup/PdfAutoSweepToolsTest.cs
  20. +108 −42 itext.tests/itext.cleanup.tests/itext/pdfcleanup/PdfCleanUpFilterUnitTest.cs
  21. +13 −8 itext.tests/itext.cleanup.tests/itext/pdfcleanup/PdfCleanUpProcessorUnitTest.cs
  22. +52 −40 itext.tests/itext.cleanup.tests/itext/pdfcleanup/PdfCleanUpToolTest.cs
  23. +16 −35 itext.tests/itext.cleanup.tests/itext/pdfcleanup/PdfCleanUpToolWithInlineImagesTest.cs
  24. +72 −0 itext.tests/itext.cleanup.tests/itext/pdfcleanup/RectangleTest.cs
  25. +3 −2 itext.tests/itext.cleanup.tests/itext/pdfcleanup/TextPositioningTest.cs
  26. +59 −0 itext.tests/itext.cleanup.tests/itext/pdfcleanup/UnsupportedImageTypeTest.cs
  27. +3 −2 itext.tests/itext.cleanup.tests/itext/pdfcleanup/images/CleanUpImageIndexedColorSpaceTest.cs
  28. +5 −5 itext.tests/itext.cleanup.tests/itext/pdfcleanup/images/CleanUpTransformedImageTest.cs
  29. +16 −35 itext.tests/itext.cleanup.tests/itext/pdfcleanup/images/CleanupImageWithColorSpaceTest.cs
  30. +16 −35 itext.tests/itext.cleanup.tests/itext/pdfcleanup/text/CleanUpTextTest.cs
  31. +16 −35 itext.tests/itext.cleanup.tests/itext/pdfcleanup/transparency/MaskedImagesTest.cs
  32. +18 −38 itext.tests/itext.cleanup.tests/itext/pdfcleanup/util/CleanUpImagesCompareTool.cs
  33. BIN ...sts/resources/itext/pdfcleanup/BigDocumentAutoCleanUpTest/cmp_cleanUpAreaCalculationPrecision.pdf
  34. BIN ...leanup.tests/resources/itext/pdfcleanup/BigDocumentAutoCleanUpTest/cmp_redactIPhoneUserManual.pdf
  35. BIN ...tests/resources/itext/pdfcleanup/BigDocumentAutoCleanUpTest/cmp_redactIPhoneUserManualColored.pdf
  36. BIN ...ts/resources/itext/pdfcleanup/BigDocumentAutoCleanUpTest/cmp_redactIPhoneUserManualMatchColor.pdf
  37. BIN ...ext.cleanup.tests/resources/itext/pdfcleanup/BigDocumentAutoCleanUpTest/cmp_redactTonySoprano.pdf
  38. BIN ...s/itext.cleanup.tests/resources/itext/pdfcleanup/BigDocumentCleanUpTest/cmp_bigTaggedDocument.pdf
  39. BIN ...itext.cleanup.tests/resources/itext/pdfcleanup/BigDocumentCleanUpTest/cmp_bigUntaggedDocument.pdf
  40. BIN ...ext.cleanup.tests/resources/itext/pdfcleanup/CleanUpAnnotationTest/cmp_cleanAnnotation_Line01.pdf
  41. BIN ...ext.cleanup.tests/resources/itext/pdfcleanup/CleanUpAnnotationTest/cmp_cleanAnnotation_Link01.pdf
  42. BIN ...ext.cleanup.tests/resources/itext/pdfcleanup/CleanUpAnnotationTest/cmp_cleanAnnotation_Text01.pdf
  43. BIN ...leanup.tests/resources/itext/pdfcleanup/CleanUpAnnotationTest/cmp_cleanAnnotation_highlight01.pdf
  44. BIN ...nup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_differentTextRenderInfo_.000_redact.pdf
  45. BIN ...nup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_differentTextRenderInfo_.001_redact.pdf
  46. BIN ...nup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_differentTextRenderInfo_.100_redact.pdf
  47. BIN ...nup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_differentTextRenderInfo_.200_redact.pdf
  48. BIN ...nup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_differentTextRenderInfo_.300_redact.pdf
  49. BIN ...nup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_differentTextRenderInfo_.400_redact.pdf
  50. BIN ...nup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_differentTextRenderInfo_.500_redact.pdf
  51. BIN ...nup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_differentTextRenderInfo_.600_redact.pdf
  52. BIN ...nup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_differentTextRenderInfo_.700_redact.pdf
  53. BIN ...nup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_differentTextRenderInfo_.800_redact.pdf
  54. BIN ...nup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_differentTextRenderInfo_.900_redact.pdf
  55. BIN ...up.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_differentTextRenderInfo_1.000_redact.pdf
  56. BIN ...xt.cleanup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_redact_aspect_ratio_0_simple.pdf
  57. BIN ...xt.cleanup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_redact_aspect_ratio_1_simple.pdf
  58. BIN ...text.cleanup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_redact_aspect_ratio_simple.pdf
  59. BIN ...t.cleanup.tests/resources/itext/pdfcleanup/OverlapRatioTest/cmp_wo_redact_aspect_ratio_simple.pdf
  60. BIN ...tests/itext.cleanup.tests/resources/itext/pdfcleanup/OverlapRatioTest/differentTextRenderInfo.pdf
  61. BIN ...ts/itext.cleanup.tests/resources/itext/pdfcleanup/OverlapRatioTest/redact_aspect_ratio_simple.pdf
  62. BIN itext.tests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfAutoSweepTest/cmp_tentativeCleanUp.pdf
  63. BIN ....tests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/DirectPropertyObject.pdf
  64. BIN ...ts/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_DirectPropertyObject.pdf
  65. BIN ...tests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_autoCleanPageTest.pdf
  66. BIN ...es/itext/pdfcleanup/PdfCleanUpToolTest/cmp_autoCleanPageWithAdditionalLocationAndPropertyTest.pdf
  67. BIN ...sts/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_autoCleanPageWithAdditionalLocationTest.pdf
  68. BIN ...sts/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_autoCleanWithFalseProcessAnnotationTest.pdf
  69. BIN ...ts/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_autoCleanWithLocationAndStreamParamsTest.pdf
  70. BIN ...itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_cleanUpStreamParamsTest.pdf
  71. BIN itext.tests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_clippingNWRule.pdf
  72. BIN .../itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_complexTextPositioning.pdf
  73. BIN itext.tests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_corruptJpeg.pdf
  74. BIN ...t.tests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_degenerateCases.pdf
  75. BIN itext.tests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_emptyTj01.pdf
  76. BIN ...xt.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_fullyFilteredImageDocument.pdf
  77. BIN ....tests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_helloHelvetica02.pdf
  78. BIN itext.tests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_lineArtsSimple.pdf
  79. BIN itext.tests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_line_chart.pdf
  80. BIN itext.tests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_miterTest.pdf
  81. BIN .../itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_page229-modified-Tc-Tw.pdf
  82. BIN itext.tests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_page229_01.pdf
  83. BIN ...ests/itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/cmp_pathAndIncorrectCM.pdf
  84. BIN .../itext.cleanup.tests/resources/itext/pdfcleanup/PdfCleanUpToolTest/fullyFilteredImageDocument.pdf
  85. BIN itext.tests/itext.cleanup.tests/resources/itext/pdfcleanup/RectangleTest/cmp_zeroWidthLine.pdf
  86. BIN ...t.tests/itext.cleanup.tests/resources/itext/pdfcleanup/UnsupportedImageTypeTest/JpegCmykImage.pdf
  87. BIN ...sts/itext.cleanup.tests/resources/itext/pdfcleanup/UnsupportedImageTypeTest/cmp_JpegCmykImage.pdf
  88. +5 −5 itext/itext.cleanup/Properties/AssemblyInfo.cs
  89. +4 −7 itext/itext.cleanup/itext.cleanup.csproj
  90. +21 −40 itext/itext.cleanup/itext/pdfcleanup/CleanUpExtensions.cs
  91. +122 −40 itext/itext.cleanup/itext/pdfcleanup/CleanUpProperties.cs
  92. +40 −38 itext/itext.cleanup/itext/pdfcleanup/FilteredImagesCache.cs
  93. +28 −38 itext/itext.cleanup/itext/pdfcleanup/LineDashPattern.cs
  94. +131 −0 itext/itext.cleanup/itext/pdfcleanup/PathOffsetApproximationProperties.cs
  95. +24 −35 itext/itext.cleanup/itext/pdfcleanup/PdfCleanUpEventListener.cs
  96. +194 −112 itext/itext.cleanup/itext/pdfcleanup/PdfCleanUpFilter.cs
  97. +15 −35 itext/itext.cleanup/itext/pdfcleanup/PdfCleanUpLocation.cs
  98. +91 −59 itext/itext.cleanup/itext/pdfcleanup/PdfCleanUpProcessor.cs
  99. +40 −70 itext/itext.cleanup/itext/pdfcleanup/PdfCleanUpTool.cs
  100. +17 −35 itext/itext.cleanup/itext/pdfcleanup/PdfCleaner.cs
  101. +35 −41 itext/itext.cleanup/itext/pdfcleanup/TextPositioning.cs
  102. +17 −37 itext/itext.cleanup/itext/pdfcleanup/actions/data/PdfSweepProductData.cs
  103. +15 −35 itext/itext.cleanup/itext/pdfcleanup/actions/event/PdfSweepProductEvent.cs
  104. +18 −38 itext/itext.cleanup/itext/pdfcleanup/autosweep/CommonRegex.cs
  105. +73 −46 itext/itext.cleanup/itext/pdfcleanup/autosweep/CompositeCleanupStrategy.cs
  106. +15 −35 itext/itext.cleanup/itext/pdfcleanup/autosweep/ICleanupStrategy.cs
  107. +21 −41 itext/itext.cleanup/itext/pdfcleanup/autosweep/PdfAutoSweepTools.cs
  108. +39 −35 itext/itext.cleanup/itext/pdfcleanup/autosweep/RegexBasedCleanupStrategy.cs
  109. +9 −2 itext/itext.cleanup/itext/pdfcleanup/exceptions/CleanupExceptionMessageConstant.cs
  110. +3 −2 itext/itext.cleanup/itext/pdfcleanup/logs/CleanUpLogMessageConstant.cs
  111. +3 −3 itext/itext.cleanup/itext/pdfcleanup/util/CleanUpCsCompareUtil.cs
  112. +20 −2 itext/itext.cleanup/itext/pdfcleanup/util/CleanUpHelperUtil.cs
  113. +8 −4 itext/itext.cleanup/itext/pdfcleanup/util/CleanUpImageUtil.cs
  114. +6 −7 pdfSweep.nuspec
  115. +1 −1 port-hash
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing to iText 7 Community
# Contributing to iText Community

We'd love for you to contribute to our source code and to make **iText 7 Community** even better than it is
We'd love for you to contribute to our source code and to make **iText Community** even better than it is
today! Here are the guidelines we'd like you to follow:

- [Question or Problem?](#question)
@@ -15,7 +15,7 @@ today! Here are the guidelines we'd like you to follow:

## <a name="question">Got a Question or Problem?</a>

If you have questions about how to use **iText 7 Community**, please direct these to [Stack Overflow][stackoverflow].
If you have questions about how to use **iText Community**, please direct these to [Stack Overflow][stackoverflow].

If you are a customer with a [support agreement][support], you also have direct access to our JIRA and our developers.

@@ -79,7 +79,7 @@ Before you submit your pull request consider the following guidelines:
* Build your changes locally to ensure all the tests pass.
* Push your changes to your GitHub account.
* Create a pull request in GitHub.
"Head fork" should be your repository, and the "base fork" should be the iText7 official repository.
"Head fork" should be your repository, and the "base fork" should be the iText official repository.
* If we suggest changes then:
* Make the required updates.
* Fix up your commits if needed, with an interactive rebase.
@@ -111,7 +111,7 @@ To ensure consistency throughout the source code, keep these rules in mind as yo

We have guidelines on how our git commit messages should be formatted. This leads to **more
readable messages** that are easy to follow when looking through the **project history**. But also,
we use the git commit messages to **generate the iText 7 Community change log**.
we use the git commit messages to **generate the iText Community change log**.

These guidelines were taken from Chris Beams' blog post [How to Write a Git Commit Message][git-commit].

6 changes: 5 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -6,4 +6,8 @@ def dependencyRegex = "itextcore"
def solutionFile = "itext.cleanup.sln"
def frameworksToTest = "net461"

automaticDotnetBuild(repoName, dependencyRegex, solutionFile, frameworksToTest)
withEnv(
['ITEXT_VERAPDFVALIDATOR_ENABLE_SERVER=true',
'ITEXT_VERAPDFVALIDATOR_PORT=8091']) {
automaticDotnetBuild(repoName, dependencyRegex, solutionFile, frameworksToTest)
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**[pdfSweep][pdfSweep]** is an [iText 7][itext] add on.
**[pdfSweep][pdfSweep]** is an [iText][itext] add on.

This add on will allow you to easily construct e-Sweeps. As of yet, the only supported format is the ZUGFeRD standard. Support for other formats is on the way. Should you want to add support to a format then we invite you to take a look at our [Contribution Guidelines][contributing].
This add on will allow you to easily redact PDF files. Redaction is the process of removing sensitive or confidential information. pdfSweep will remove this data entirely so that it won't be extractable anymore.

The **pdfSweep Community** source code is hosted on [Github][github], where you can also [download the latest releases][latest].

40 changes: 40 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# iText Security Policy

## Reporting a Vulnerability

We are committed to maintaining the security of our software. If you discover a security vulnerability, we encourage you to report it to us as soon as possible.

To report a vulnerability, please visit our [Vulnerability Reporting Page](https://itextpdf.com/report-vulnerability), or email [vulnerability@apryse.com](vulnerability@apryse.com). If you do not receive a response in 2 business days, please follow up as we may not have received your message.

We follow the procedure of Coordinated Vulnerability Disclosure (CVD) and, to protect the ecosystem, we request that those reporting do the same. Please visit the above page for more information, and follow the steps below to ensure that your report is handled promptly and appropriately:

1. **Do not disclose the vulnerability publicly** until we have had a chance to address it.
2. **Provide a detailed description** of the vulnerability, including steps to reproduce it, if possible.
3. **Include any relevant information** such as the version of pdfSweep you are using, your operating system, and any other pertinent details.

## Security Updates and Patches

When a vulnerability is reported, we will:

1. **Investigate and verify** the vulnerability.
2. **Develop and test** a fix for the vulnerability.
3. **Release a patch** as soon as possible.


## Known Vulnerabilities

The iText Knowledge Base has a page for known [Common Vulnerabilities and Exposures](https://kb.itextpdf.com/itext/cves) (CVEs), please check it to ensure your vulnerability has not already been disclosed or addressed.

## Supported product lines

See [Compatibility Matrix](https://kb.itextpdf.com/itext/compatibility-matrix)

## Security Best Practices

To help ensure the security of your applications using pdfSweep, we recommend the following best practices:

1. **Keep pdfSweep up to date** by regularly checking for and applying updates.
2. **Review and follow** our security guidelines for secure usage.
3. **Monitor your applications** for any unusual activity and investigate any anomalies promptly.

Thank you for helping us keep iText secure!
4 changes: 2 additions & 2 deletions doxyfile
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.

PROJECT_NAME = "pdfSweep 3.0.0 API"
PROJECT_NAME = "pdfSweep VERSION_PLACEHOLDER API"

# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
@@ -485,7 +485,7 @@ EXTRACT_PRIV_VIRTUAL = NO
# scope will be included in the documentation.
# The default value is: NO.

EXTRACT_PACKAGE = NO
EXTRACT_PACKAGE = YES

# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be
# included in the documentation.
10 changes: 5 additions & 5 deletions itext.tests/itext.cleanup.tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -5,18 +5,18 @@
[assembly: AssemblyTitle("iText.Cleanup.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("iText Group NV")]
[assembly: AssemblyCompany("Apryse Group NV")]
[assembly: AssemblyProduct("iText")]
[assembly: AssemblyCopyright("Copyright (c) 1998-2021 iText Group NV")]
[assembly: AssemblyCopyright("Copyright (c) 1998-2025 Apryse Group NV")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: ComVisible(false)]

[assembly: Guid("647c862e-d837-4901-8e7b-68f5f8bf8f34")]

[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyInformationalVersion("3.0.0")]
[assembly: AssemblyVersion("5.0.3.0")]
[assembly: AssemblyFileVersion("5.0.3.0")]
[assembly: AssemblyInformationalVersion("5.0.3-SNAPSHOT")]

[assembly: NUnit.Framework.Timeout(300000)]
16 changes: 9 additions & 7 deletions itext.tests/itext.cleanup.tests/itext.cleanup.tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup Label="Configuration">
<SignAssembly>True</SignAssembly>
@@ -23,7 +23,6 @@
<AssemblyName>itext.cleanup.tests</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TeamCity.VSTest.TestAdapter" Version="1.0.0" />
<PackageReference Include="NUnit" Version="3.7.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.8.0" />
</ItemGroup>
@@ -39,11 +38,14 @@
<Reference Include="System.Core" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\itextcore\itext\itext.io\itext.io.netstandard.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.io\itext.io.netstandard.csproj')" />
<PackageReference Include="itext7" Version="7.2.0" Condition="!Exists('..\..\..\itextcore\itext\itext.io\itext.io.netstandard.csproj')" />
<ProjectReference Include="..\..\..\itextcore\itext\itext.kernel\itext.kernel.netstandard.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.kernel\itext.kernel.netstandard.csproj')" />
<ProjectReference Include="..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.netstandard.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.netstandard.csproj')" />
<PackageReference Include="itext7.pdftest" Version="7.2.0" Condition="!Exists('..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.netstandard.csproj')" />
<ProjectReference Include="..\..\..\itextcore\itext\itext.io\itext.io.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.io\itext.io.csproj')" />
<PackageReference Include="itext" Version="9.3.0-SNAPSHOT" Condition="!Exists('..\..\..\itextcore\itext\itext.io\itext.io.csproj')" />
<ProjectReference Include="..\..\..\itextcore\itext\itext.kernel\itext.kernel.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.kernel\itext.kernel.csproj')" />
<ProjectReference Include="..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.csproj')" />
<PackageReference Include="itext.pdftest" Version="9.3.0-SNAPSHOT" Condition="!Exists('..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.csproj')" />
<ProjectReference Include="..\..\..\itextcore\itext\itext.bouncy-castle-adapter\itext.bouncy-castle-adapter.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.bouncy-castle-adapter\itext.bouncy-castle-adapter.csproj')" />
<PackageReference Include="itext.bouncy-castle-adapter" Version="9.3.0-SNAPSHOT" Condition="!Exists('..\..\..\itextcore\itext\itext.bouncy-castle-adapter\itext.bouncy-castle-adapter.csproj')" />

<ProjectReference Include="..\..\itext\itext.cleanup\itext.cleanup.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,44 +1,24 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation with the addition of the
following permission added to Section 15 as permitted in Section 7(a):
FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY
ITEXT GROUP. ITEXT GROUP DISCLAIMS THE WARRANTY OF NON INFRINGEMENT
OF THIRD PARTY RIGHTS
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License for more details.
Copyright (c) 1998-2025 Apryse Group NV
Authors: Apryse Software.
This program is offered under a commercial and under the AGPL license.
For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
AGPL licensing:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program; if not, see http://www.gnu.org/licenses or write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA, 02110-1301 USA, or download the license from the following URL:
http://itextpdf.com/terms-of-use/
The interactive user interfaces in modified source and object code versions
of this program must display Appropriate Legal Notices, as required under
Section 5 of the GNU Affero General Public License.
In accordance with Section 7(b) of the GNU Affero General Public License,
a covered work must retain the producer line in every PDF that is created
or manipulated using iText.
You can be released from the requirements of the license by purchasing
a commercial license. Buying such a license is mandatory as soon as you
develop commercial activities involving the iText software without
disclosing the source code of your own applications.
These activities include: offering paid services to customers as an ASP,
serving PDFs on the fly in a web application, shipping iText with a closed
source product.
For more information, please contact iText Software Corp. at this
address: sales@itextpdf.com
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
@@ -53,6 +33,7 @@ source product.
using iText.Test;

namespace iText.PdfCleanup {
[NUnit.Framework.Category("IntegrationTest")]
public class BigDocumentAutoCleanUpTest : ExtendedITextTest {
private static readonly String inputPath = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
.CurrentContext.TestDirectory) + "/resources/itext/pdfcleanup/BigDocumentAutoCleanUpTest/";
@@ -177,6 +158,7 @@ private void CompareResults(String cmp, String output, String targetDir, String
}
}

//\cond DO_NOT_DOCUMENT
/*
* color matching text redaction
*/
@@ -199,7 +181,9 @@ public virtual Color GetFillColor() {
return fillColor;
}
}
//\endcond

//\cond DO_NOT_DOCUMENT
internal class CustomLocationExtractionStrategy : RegexBasedLocationExtractionStrategy, ICleanupStrategy {
private String regex;

@@ -236,4 +220,5 @@ public virtual ICleanupStrategy Reset() {
return new iText.PdfCleanup.CustomLocationExtractionStrategy(regex);
}
}
//\endcond
}
Original file line number Diff line number Diff line change
@@ -1,44 +1,24 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Authors: iText Software.
Copyright (c) 1998-2025 Apryse Group NV
Authors: Apryse Software.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation with the addition of the
following permission added to Section 15 as permitted in Section 7(a):
FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY
ITEXT GROUP. ITEXT GROUP DISCLAIMS THE WARRANTY OF NON INFRINGEMENT
OF THIRD PARTY RIGHTS
This program is offered under a commercial and under the AGPL license.
For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program; if not, see http://www.gnu.org/licenses or write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA, 02110-1301 USA, or download the license from the following URL:
http://itextpdf.com/terms-of-use/
The interactive user interfaces in modified source and object code versions
of this program must display Appropriate Legal Notices, as required under
Section 5 of the GNU Affero General Public License.
AGPL licensing:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
In accordance with Section 7(b) of the GNU Affero General Public License,
a covered work must retain the producer line in every PDF that is created
or manipulated using iText.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You can be released from the requirements of the license by purchasing
a commercial license. Buying such a license is mandatory as soon as you
develop commercial activities involving the iText software without
disclosing the source code of your own applications.
These activities include: offering paid services to customers as an ASP,
serving PDFs on the fly in a web application, shipping iText with a closed
source product.
For more information, please contact iText Software Corp. at this
address: sales@itextpdf.com
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
@@ -50,6 +30,7 @@ source product.
using iText.Test.Attributes;

namespace iText.PdfCleanup {
[NUnit.Framework.Category("IntegrationTest")]
public class BigDocumentCleanUpTest : ExtendedITextTest {
private static readonly String inputPath = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
.CurrentContext.TestDirectory) + "/resources/itext/pdfcleanup/BigDocumentCleanUpTest/";
@@ -84,6 +65,21 @@ public virtual void BigTaggedDocument() {
CompareByContent(cmp, output, outputPath, "4");
}

[NUnit.Framework.Test]
[LogMessage(iText.IO.Logs.IoLogMessageConstant.CREATED_ROOT_TAG_HAS_MAPPING)]
public virtual void BigTaggedDocumentDynamicOffsetMultiplier() {
String input = inputPath + "chapter8_Interactive_features.pdf";
String output = outputPath + "bigTaggedDocumentDynamicOffsetMultiplier.pdf";
String cmp = inputPath + "cmp_bigTaggedDocument.pdf";
IList<Rectangle> rects = JavaUtil.ArraysAsList(new Rectangle(60f, 80f, 460f, 65f), new Rectangle(300f, 370f
, 215f, 270f));
using (PdfDocument pdfDocument = new PdfDocument(new PdfReader(input), new PdfWriter(output))) {
PdfCleaner.CleanUp(pdfDocument, InitLocations(rects, 131), new CleanUpProperties().SetOffsetProperties(new
PathOffsetApproximationProperties().CalculateOffsetMultiplierDynamically(true)));
}
CompareByContent(cmp, output, outputPath, "4");
}

[NUnit.Framework.Test]
public virtual void TextPositioning() {
String input = inputPath + "textPositioning.pdf";
Loading