We are using docx4j (and we have bought it). We use it to make some PDF (medical prescription, etc...).
Currently, we have 40 users and we need to put the JVM to 4Go because it took too many space in memory and slow down the application in some way.
We are using :
- Code: Select all
<!-- Docx4j -->
<dependency>
<groupId>org.docx4j</groupId>
<artifactId>docx4j</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>org.docx4j</groupId>
<artifactId>docx4j-ImportXHTML</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>org.docx4j</groupId>
<artifactId>docx4j-export-fo</artifactId>
<version>3.3.0</version>
</dependency>
We using DOCX file template (with one logo image), and we replace variables and then convert it to PDF.
Any clue to optimize the use of memory ?