branch develop updated (0182a496 -> 3fb61756)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git from 0182a496 - fixes #10081 : Contenu du PDF en JPEG2000 new 3fb61756 - fixes #10081 : JPEG2000 The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 3fb6175680b4e64fcd4278d84bc497651b7edf1f Author: jcouteau <couteau@codelutin.com> Date: Mon Sep 10 11:37:43 2018 +0200 - fixes #10081 : JPEG2000 Summary of changes: faxtomail-service/pom.xml | 4 +-- .../services/service/EmailServiceTest.java | 40 ++++++++++++++++++++++ faxtomail-ui-swing/pom.xml | 4 +-- pom.xml | 8 ++--- 4 files changed, 48 insertions(+), 8 deletions(-) -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git commit 3fb6175680b4e64fcd4278d84bc497651b7edf1f Author: jcouteau <couteau@codelutin.com> Date: Mon Sep 10 11:37:43 2018 +0200 - fixes #10081 : JPEG2000 --- faxtomail-service/pom.xml | 4 +-- .../services/service/EmailServiceTest.java | 40 ++++++++++++++++++++++ faxtomail-ui-swing/pom.xml | 4 +-- pom.xml | 8 ++--- 4 files changed, 48 insertions(+), 8 deletions(-) diff --git a/faxtomail-service/pom.xml b/faxtomail-service/pom.xml index 383116df..95cd9be1 100644 --- a/faxtomail-service/pom.xml +++ b/faxtomail-service/pom.xml @@ -234,8 +234,8 @@ </dependency> <dependency> - <groupId>edu.ucar</groupId> - <artifactId>jj2000</artifactId> + <groupId>com.github.jai-imageio</groupId> + <artifactId>jai-imageio-jpeg2000</artifactId> <scope>runtime</scope> </dependency> diff --git a/faxtomail-service/src/test/java/com/franciaflex/faxtomail/services/service/EmailServiceTest.java b/faxtomail-service/src/test/java/com/franciaflex/faxtomail/services/service/EmailServiceTest.java index 0b8947a6..0ffb7f7b 100644 --- a/faxtomail-service/src/test/java/com/franciaflex/faxtomail/services/service/EmailServiceTest.java +++ b/faxtomail-service/src/test/java/com/franciaflex/faxtomail/services/service/EmailServiceTest.java @@ -421,6 +421,46 @@ public class EmailServiceTest extends AbstractFaxToMailServiceTest { Assert.assertTrue(compareImagePixels(in, pageImage)); } + + // @Test + /** + * Test that generatedPdfPages are always in order + */ +// public void testGeneratedPDFPageOrder() throws IOException { +// File pdf = new File("src/test/resources/pdf/10004.pdf"); +// File image = new File("src/test/resources/pdf/10004-page1.png"); +// +// +// //Pre-generate PDF rendering +// PDDocument pdDocument = PDDocument.load(pdf); +// PDFRenderer renderer = new PDFRenderer(pdDocument); +// BufferedImage pageImage = renderer.renderImage(0, 1.5f); +// +// //Get properly generated image +// BufferedImage in = ImageIO.read(image); +// +// Assert.assertTrue(compareImagePixels(in, pageImage)); +// } + + @Test + /** + * Test that Imaging (JAI) Image I/O Tools is present so that pdf generation is correct + */ + public void test10075() throws IOException { + File pdf = new File("src/test/resources/pdf/10075.pdf"); + + try { + //Pre-generate PDF rendering + PDDocument pdDocument = PDDocument.load(pdf); + PDFRenderer renderer = new PDFRenderer(pdDocument); + renderer.renderImage(0, 1.5f); + } catch (Error eee) { + Assert.fail(eee.getMessage()); + } + } + + + private final int ALPHA = 24; private final int RED = 16; private final int GREEN = 8; diff --git a/faxtomail-ui-swing/pom.xml b/faxtomail-ui-swing/pom.xml index 10218cd8..da597b38 100644 --- a/faxtomail-ui-swing/pom.xml +++ b/faxtomail-ui-swing/pom.xml @@ -286,8 +286,8 @@ </dependency> <dependency> - <groupId>edu.ucar</groupId> - <artifactId>jj2000</artifactId> + <groupId>com.github.jai-imageio</groupId> + <artifactId>jai-imageio-jpeg2000</artifactId> <scope>runtime</scope> </dependency> diff --git a/pom.xml b/pom.xml index addcc929..7e2e538a 100644 --- a/pom.xml +++ b/pom.xml @@ -791,11 +791,11 @@ <artifactId>jbig2-imageio</artifactId> <version>3.0.0</version> </dependency> - + <dependency> - <groupId>edu.ucar</groupId> - <artifactId>jj2000</artifactId> - <version>5.3</version> + <groupId>com.github.jai-imageio</groupId> + <artifactId>jai-imageio-jpeg2000</artifactId> + <version>1.3.0</version> </dependency> <dependency> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
participants (1)
-
codelutin.com scm