Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4C979200C29 for ; Tue, 28 Feb 2017 19:54:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4B04E160B7C; Tue, 28 Feb 2017 18:54:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4902F160B59 for ; Tue, 28 Feb 2017 19:54:35 +0100 (CET) Received: (qmail 13840 invoked by uid 500); 28 Feb 2017 18:54:34 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 13828 invoked by uid 99); 28 Feb 2017 18:54:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2017 18:54:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9D3FDC1A74 for ; Tue, 28 Feb 2017 18:54:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.542 X-Spam-Level: *** X-Spam-Status: No, score=3.542 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, HTML_OBFUSCATE_10_20=1.162, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LPYtCQODeAP2 for ; Tue, 28 Feb 2017 18:54:31 +0000 (UTC) Received: from mail-ot0-f173.google.com (mail-ot0-f173.google.com [74.125.82.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2BD975F4E5 for ; Tue, 28 Feb 2017 18:54:31 +0000 (UTC) Received: by mail-ot0-f173.google.com with SMTP id w44so14133183otw.2 for ; Tue, 28 Feb 2017 10:54:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=QzWceYkbOxjS7/4kWY8gIFb+sIpZxgfoZYNVLLsd79Q=; b=koF0KpyZ8VnpC3XuvtUSS1nvZNtYmvLxSOVi4TuTLdq0IYv1Cr85rO75iKg74wEzzn qXY9GRUH6dECFT7wfnnLrJ+fT10onYVMYsVLQ9Welg0F43C2vFWxDUZtl49poFmvgy0g ykJgeiMLNIaWvVlEmyciMbZkCm1tPmZdJAI9nPAsQR6pezDowkcgQ6HHnlUe7WrE6G4Y 72Yp9GC9M0fiSjCtkccxgR0urUYvr5WTTUE5akqanq+qSdkgX0CDxPvWdejKjMGpYeUb yxRqkgd00d5BIczm9He27MyqOaj7gDyM3sOPSEcQ+DUUAwEVROcgPghIoHgl9G9Wm4ij klJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=QzWceYkbOxjS7/4kWY8gIFb+sIpZxgfoZYNVLLsd79Q=; b=oxdLgDTEXp+tyHJqOKf0Brh+IHYQWLAfwy4J4QRzKKViS5hfjEv3ASVbysmP+5UkFR e28fE/peBEBHIglLGt3tn64EWmnpim9zDtCc0qOdQQZNI+0Y2XlKPba6RylIDNAoElxS yFKCIClaK+TkaWaCQpOI6uRYN9SOCj8NXdFvtb7mfYmHvl1BovclEklUcFRgqBzIYjL6 SxvouAAAybLJqoGF4D0LT4Rt3PgI8u8FqhJbcMODF6d7sIOlKqfBId0w3Pak4E/abtJN Dh0RocZG4XhH5alevcVvrvZ568CMkS+mU5KOQcZH0MxvEP8kN/9SnKPJezRyNXbNg7sQ WPNA== X-Gm-Message-State: AMke39mBUY2dIbSG0OES7m2v6esntxvqwMa0PV5gWH1Tn2dF9ux1wlsVxJMyDmIsqP9zQDs2yP+Oz1/7uwjIjg== X-Received: by 10.157.44.209 with SMTP id e17mr1822591otd.172.1488308069507; Tue, 28 Feb 2017 10:54:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.43.49 with HTTP; Tue, 28 Feb 2017 10:54:28 -0800 (PST) In-Reply-To: <8f3c66e5-d9d7-451c-fef7-c418bece93fc@t-online.de> References: <8f3c66e5-d9d7-451c-fef7-c418bece93fc@t-online.de> From: "jorgeeflorez ." Date: Tue, 28 Feb 2017 13:54:28 -0500 Message-ID: Subject: Re: (JAI) Image I/O Tools are not installed To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary=001a113e2130cca92c05499bb92c archived-at: Tue, 28 Feb 2017 18:54:36 -0000 --001a113e2130cca92c05499bb92c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I verified the pom and it ended up being a silly thing: test After I remove this from all jai dependencies I get what it is supposed... [JPG, JPEG 2000, tiff, bmp, PCX, gif, WBMP, PNG, RAW, JPEG, PNM, tif, TIFF, jpeg, wbmp, jbig2, jpg, JPEG2000, BMP, pcx, GIF, png, raw, JBIG2, pnm, TIF, jpeg2000, jpeg 2000] It was my fault. I just copied the dependencies from https://svn.apache.org/viewvc/pdfbox/trunk/parent/pom.xml?view=3Dmarkup and forgot to remove the scope. I am sorry. Thank you all for your help. Best regards. Jorge Fl=C3=B3rez 2017-02-28 13:45 GMT-05:00 Tilman Hausherr : > Am 28.02.2017 um 19:23 schrieb jorgeeflorez .: > >> Hi Tilman, >> >> this is what I get: >> >> [JPG, jpg, bmp, BMP, gif, GIF, WBMP, png, PNG, wbmp, jpeg, JPEG] >> > > Then it's really not there... JBIG2 is also missing. I'd suspect some > problem with your build... try > - do a clean build > - verify that your pom is ok re: syntax > - run the tool both in and outside of your IDE > - have a look what is in your manifest / in your class path, i.e. what is > really there? Look in the directories. You can look at jar files with any > zip tool, e.g. 7zip. > - post the fill pom file. > > Tilman > > > > >> >> 2017-02-28 13:04 GMT-05:00 Tilman Hausherr : >> >> Am 28.02.2017 um 18:56 schrieb jorgeeflorez .: >>> >>> Hi Maruan, >>>> >>>> thank you for your reply. Yes, I already had a look at that page, from >>>> that >>>> I took the dependencies I put in the pom I showed in my mail. >>>> >>>> I am getting the error even when the suggested dependencies are set. >>>> >>>> It's very weird, I use the same dependencies and it works. >>> >>> Please include >>> >>> |System.out.println(Arrays.toString(ImageIO.getReaderFormatNa=E2=80=8C= =E2=80=8Bmes()));| >>> >>> in your code at the start, what do you get? >>> >>> Tilman >>> >>> >>> >>> >>> Regards. >>>> >>>> Jorge Fl=C3=B3rez >>>> >>>> 2017-02-28 11:43 GMT-05:00 Maruan Sahyoun : >>>> >>>> Hi, >>>> >>>>> please take a lookt at https://pdfbox.apache.org/2.0/dependencies.htm= l >>>>> under Optional Components/JAI Image I/O >>>>> >>>>> Hope that helps. >>>>> >>>>> Best regards >>>>> >>>>> Maruan >>>>> >>>>> >>>>> Am 28.02.2017 um 17:19 schrieb jorgeeflorez . < >>>>> jorgeeduardoflorez@gmail.com>: >>>>> >>>>> Hi all, >>>>>> >>>>>> I am getting some errors with version 2.0.4. In a small maven projec= t >>>>>> I >>>>>> >>>>>> set >>>>> >>>>> up, when I try to render a page from a PDF file, I get this in consol= e: >>>>>> >>>>>> ERROR [main] (PDFStreamEngine.java:866) - Cannot read JPEG2000 image= : >>>>>> >>>>>> Java >>>>> >>>>> Advanced Imaging (JAI) Image I/O Tools are not installed >>>>>> >>>>>> This is the pom for the project: >>>>>> >>>>>> UTF-8>>>>> >>>>>> sourceEncoding> >>>>> >>>>> 1.8 >>>>>> 1.8 >>>>>> >>>>>> >>>>>> >>>>>> org.apache.pdfbox >>>>>> pdfbox >>>>>> 2.0.4 >>>>>> >>>>>> >>>>>> org.apache.pdfbox >>>>>> pdfbox-tools >>>>>> 2.0.4 >>>>>> >>>>>> >>>>>> junit >>>>>> junit >>>>>> 4.12 >>>>>> test >>>>>> >>>>>> >>>>>> commons-logging >>>>>> commons-logging >>>>>> 1.2 >>>>>> >>>>>> >>>>>> commons-io >>>>>> commons-io >>>>>> 2.4 >>>>>> test >>>>>> >>>>>> >>>>>> org.bouncycastle >>>>>> bcprov-jdk15on >>>>>> 1.55 >>>>>> >>>>>> >>>>>> org.bouncycastle >>>>>> bcmail-jdk15on >>>>>> 1.55 >>>>>> >>>>>> >>>>>> org.bouncycastle >>>>>> bcpkix-jdk15on >>>>>> 1.55 >>>>>> >>>>>> >>>>>> log4j >>>>>> log4j >>>>>> 1.2.17 >>>>>> >>>>>> >>>>>> >>>>>> com.levigo.jbig2 >>>>>> levigo-jbig2-imageio >>>>>> 1.6.5 >>>>>> test >>>>>> >>>>>> >>>>>> com.github.jai-imageio >>>>>> jai-imageio-core >>>>>> 1.3.1 >>>>>> test >>>>>> >>>>>> >>>>>> com.github.jai-imageio >>>>>> jai-imageio-jpeg2000 >>>>>> 1.3.0 >>>>>> test >>>>>> >>>>>> >>>>>> >>>>>> I added the dependencies you suggest (I think) in >>>>>> https://pdfbox.apache.org/2.0/dependencies.html. >>>>>> >>>>>> After some debugging I came up with this stack trace: >>>>>> >>>>>> org.apache.pdfbox.filter.MissingImageReaderException: Cannot read >>>>>> >>>>>> JPEG2000 >>>>> >>>>> image: Java Advanced Imaging (JAI) Image I/O Tools are not installed >>>>>> at org.apache.pdfbox.filter.Filter.findImageReader(Filter.java: >>>>>> 128) >>>>>> at org.apache.pdfbox.filter.JPXFilter.readJPX(JPXFilter.java:87= ) >>>>>> at org.apache.pdfbox.filter.JPXFilter.decode(JPXFilter.java:57) >>>>>> at org.apache.pdfbox.cos.COSInputStream.create( >>>>>> >>>>>> COSInputStream.java:69) >>>>> >>>>> at org.apache.pdfbox.cos.COSStream.createInputStream( >>>>>> >>>>>> COSStream.java:162) >>>>> >>>>> at >>>>>> org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream= . >>>>>> >>>>>> java:235) >>>>> >>>>> at >>>>>> org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject. >>>>>> >>>>>> (PDImageXObject.java:160) >>>>> >>>>> at >>>>>> org.apache.pdfbox.pdmodel.graphics.PDXObject. >>>>>> >>>>>> createXObject(PDXObject.java:70) >>>>> >>>>> at >>>>>> org.apache.pdfbox.pdmodel.PDResources.getXObject(PDResources >>>>>> .java:409) >>>>>> at >>>>>> org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process= ( >>>>>> >>>>>> DrawObject.java:53) >>>>> >>>>> at >>>>>> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator( >>>>>> >>>>>> PDFStreamEngine.java:829) >>>>> >>>>> at >>>>>> org.apache.pdfbox.contentstream.PDFStreamEngine.processStrea >>>>>> mOperators( >>>>>> >>>>>> PDFStreamEngine.java:486) >>>>> >>>>> at >>>>>> org.apache.pdfbox.contentstream.PDFStreamEngine. >>>>>> >>>>>> processStream(PDFStreamEngine.java:460) >>>>> >>>>> at >>>>>> org.apache.pdfbox.contentstream.PDFStreamEngine. >>>>>> >>>>>> processPage(PDFStreamEngine.java:150) >>>>> >>>>> at org.apache.pdfbox.rendering.PageDrawer.drawPage( >>>>>> >>>>>> PageDrawer.java:189) >>>>> >>>>> at >>>>>> org.apache.pdfbox.rendering.PDFRenderer.renderImage( >>>>>> >>>>>> PDFRenderer.java:145) >>>>> >>>>> at >>>>>> org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI( >>>>>> >>>>>> PDFRenderer.java:94) >>>>> >>>>> It is trying to get a reader for "JPEG2000" and can't find it. Am I >>>>>> >>>>>> missing >>>>> >>>>> something to make it work? or should I think that the pdf file has so= me >>>>>> "unusual" image inside it? >>>>>> >>>>>> Thanks in advance for your help. >>>>>> >>>>>> Best Regards. >>>>>> >>>>>> Jorge Fl=C3=B3rez >>>>>> >>>>>> --------------------------------------------------------------------= - >>>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >>>>> For additional commands, e-mail: users-help@pdfbox.apache.org >>>>> >>>>> >>>>> >>>>> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > > --001a113e2130cca92c05499bb92c--