Commit Graph

40 Commits

Author SHA1 Message Date
Philip Helger
de1800ecf7 Updated to Java 17 + version bumps 2026-03-16 21:13:44 +01:00
Detlef Sander
c01c366016 fixes feature secure processing not working 2025-10-22 10:49:55 +02:00
langfr
6958f2813c Correction for "Re-Initialize the HTML-template on language change." 2025-06-02 13:52:26 +01:00
langfr
020fd03052 Re-Initialize the HTML-template on language change.
Handle templates in an language based map for switching language.
2025-05-23 15:16:06 +01:00
jstaerk
5a39e50bcf remving disabling unsupported features 2025-04-14 09:58:07 +02:00
Jochen Staerk
3f22945492 Merge pull request #776 from W25X80/feature_resource_leaks
Fix potential resource leaks in core file processing classes
2025-03-25 19:17:55 +01:00
Dominik Röschke
8127b177fb Added XEE Protection features (that were missing according to Stackoverflow) 2025-03-18 08:43:00 +01:00
Ivan Pereverziev
7fa2d70128 Fix resource leaks in core file processing classes
- Add try-with-resources for FileInputStream in ZUGFeRDVisualizer
- Fix unclosed InputStream in ZUGFeRDInvoiceImporter with try-with-resources
- Add explicit close() call for XMLWriter in ZUGFeRDValidator
- Properly close DataInputStream in ZUGFeRDExporterFromPDFA
- Fix resource management in Main.convertInputStreamToString
2025-03-13 11:26:35 +01:00
jstaerk
2bcedad471 working on #774 2025-03-12 13:43:12 +01:00
Timon Färber
327c6d8a38 feat: unable to perform XML-oriented attacks 2025-01-31 18:58:31 +01:00
Kemal Taskin
012c915b98 Merge branch 'master' of https://github.com/taskinkemal/mustangproject 2025-01-06 15:00:22 +01:00
Sebastian Sieber
db8ba8e647 Refactor ZUGFeRDVisualizer 2024-12-19 14:46:42 +01:00
Kemal Taskin
dd4feaa334 Refactor and override toPDF method to accept xml string and return byte array 2024-12-03 14:13:55 +01:00
Kemal Taskin
66bb3c4341 Improve toFOP method: Parameterize the input stream and the EStandard input 2024-11-06 11:06:23 +01:00
jstaerk
f7aa490457 corrected example 2024-10-01 21:07:29 +02:00
jstaerk
ae30a7a1b7 also work with ubl credit notes again 2024-09-29 15:07:26 +02:00
jstaerk
721ea4b694 closes #481, moved bytearraysearcher to library 2024-09-29 14:50:39 +02:00
jstaerk
be8c0be850 have a test, start to also handle UBL input 2024-09-28 12:21:16 +02:00
jstaerk
0b43024e8f closes #455 2024-08-27 14:28:32 +02:00
Jochen Staerk
234a43ff77 Merge pull request #438 from matmen/visualization-performance
refactor(ZUGFeRDVisualizer): improve PDF visualization performance
2024-08-08 14:10:10 +02:00
Jochen Staerk
399d12195d Merge pull request #400 from mkilian/pdf-gen-a-3b
ZUGFeRDVisualizer.toPDF(): generate PDF/A-3b.
2024-08-02 15:59:10 +02:00
Mathis Mensing
e2ff39e10f refactor(ZUGFeRDVisualizer): improve PDF visualization performance 2024-07-31 16:04:51 +02:00
jstaerk
5b00818817 closes #416 2024-07-18 18:55:41 +02:00
Philip Helger
0f5ff080d8 Replace java.util Logging with SLF4J 2024-07-10 11:28:22 +02:00
Philip Helger
4ae6fd9ef0 Additional cleanup 2024-07-09 19:23:24 +02:00
Philip Helger
12a3abde66 Cleansing 2024-07-09 18:37:53 +02:00
Matthias Kilian
3ca078a10c ZUGFeRDVisualizer.toPDF(): generate PDF/A-3b.
PDF/A-1b doesn't support embedded files, but when converting e.g. an XRechnung with an
attached document, the visualizer tries (and fails) to attach it to the generated PDF.
2024-06-27 13:19:46 +02:00
Philip Helger
22b76141c2 Updated to Jakarta + PDFBox 3.x 2024-06-18 18:22:57 +02:00
Heavenfighter
18be7adb07 allow embedd fonts from jar-file for pdf creation
fonts can now added in fop configuration via classpath notation. Also added FreeSans.ttf
2024-05-30 16:02:46 +02:00
jstaerk
9bfc1ef7fe attempt to be able to convert to pdf 2023-08-14 11:07:13 +02:00
jstaerk
3e81c7036f creating pdf/a files using this config file:<fop version="1.0">
<!-- Strict user configuration -->
  <strict-configuration>true</strict-configuration>

  <!-- Strict FO validation -->
  <strict-validation>true</strict-validation>

  <!-- Base URL for resolving relative URLs -->
  <base>./</base>

  <!-- Font Base URL for resolving relative font URLs -->
  <font-base>./</font-base>

  <!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
  <source-resolution>72</source-resolution>
  <!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
  <target-resolution>72</target-resolution>

  <!-- default page-height and page-width, in case
       value is specified as auto -->
  <default-page-settings height="11in" width="8.26in"/>

  <!-- etc. etc..... -->

  <renderers>
   <renderer mime="application/pdf">
   <fonts>
       <font kerning="no" embed-url="file:///C:/Users/jstaerk/temp/timesbd.ttf" embedding-mode="subset">
           <font-triplet name="Times" style="normal" weight="bold" />
       </font>
       <font kerning="no" embed-url="file:///C:/Users/jstaerk/temp/timesbd.ttf" embedding-mode="subset">
           <font-triplet name="SourceSerifPro" style="normal" weight="normal" />
       </font>
   </fonts>
   </renderer>
</renderers>

</fop>
2023-07-26 20:23:56 +02:00
jstaerk
2a4ab932fa create html, not pdf 2023-04-17 11:38:22 +02:00
jstaerk
118ad35279 updated visualization 2023-04-17 11:23:16 +02:00
jstaerk
c6d786363d support ubl creditnotes 2023-04-14 15:27:07 +02:00
jstaerk
5d61b25500 also convert ubl 2023-04-13 21:19:31 +02:00
jstaerk
a824b7ea89 resolve codelists 2023-04-13 21:01:02 +02:00
jstaerk
2d9b68d9ab support languages 2023-04-13 17:05:53 +02:00
jstaerk
e142a81959 have tests for visualization and ubl convert. Insist in UTF-8 as charset in more cases. 2021-02-02 08:05:10 +01:00
Jochen Stärk
db4c86315a removing localization marks and potential bom(?) 2020-08-20 17:15:00 +02:00
Jochen Stärk
fed2d08dc9 Removed server. Moved libraryBasic to library and libraryExtended to validator to prevent confusion with profiles. 2020-05-24 10:45:04 +02:00