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 7436C200B27 for ; Wed, 22 Jun 2016 17:57:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 727A4160A64; Wed, 22 Jun 2016 15:57:53 +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 BC17F160A24 for ; Wed, 22 Jun 2016 17:57:52 +0200 (CEST) Received: (qmail 55510 invoked by uid 500); 22 Jun 2016 15:57:51 -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 55498 invoked by uid 99); 22 Jun 2016 15:57:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2016 15:57:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2EF97C1308 for ; Wed, 22 Jun 2016 15:57:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.373 X-Spam-Level: X-Spam-Status: No, score=0.373 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7t-jP7_pP5wJ for ; Wed, 22 Jun 2016 15:57:49 +0000 (UTC) Received: from mailout11.t-online.de (mailout11.t-online.de [194.25.134.85]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id F1C455FB60 for ; Wed, 22 Jun 2016 15:57:48 +0000 (UTC) Received: from fwd25.aul.t-online.de (fwd25.aul.t-online.de [172.20.26.130]) by mailout11.t-online.de (Postfix) with SMTP id 44F78425E943 for ; Wed, 22 Jun 2016 17:57:42 +0200 (CEST) Received: from [192.168.2.104] (G-aiZuZDwhcaCmp5AanSldAO9GVU9MhdMR4y6MUYk9j86NDMucUb1R5MaXPMHFSgZ8@[217.231.128.107]) by fwd25.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1bFkX6-1CRZuS0; Wed, 22 Jun 2016 17:57:40 +0200 Subject: Re: Strange file problem with CCITTFactory.createFromFile with tiff files with 'FillOrder=2' To: users@pdfbox.apache.org References: <7c6b0c1a-0026-676a-b7c9-7cb2b46a0591@t-online.de> <37efac0eef35449aba6aaef6bfebe5b3@usw04mx113.tycoelectronics.net> From: Tilman Hausherr Message-ID: <5d7cd20e-883b-122e-9ff4-9deca650740b@t-online.de> Date: Wed, 22 Jun 2016 17:58:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <37efac0eef35449aba6aaef6bfebe5b3@usw04mx113.tycoelectronics.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-ID: G-aiZuZDwhcaCmp5AanSldAO9GVU9MhdMR4y6MUYk9j86NDMucUb1R5MaXPMHFSgZ8 X-TOI-MSGID: b0b5484c-04a1-4374-ae55-0942b0817bf8 archived-at: Wed, 22 Jun 2016 15:57:53 -0000 If you have a windows machine, you could create CCITT Group 3 files compressed TIFF files with IrfanView. I assume that there are similar tools for your OS too. re: rotation, maybe this is this tag: http://www.awaresystems.be/imaging/tiff/tifftags/orientation.html we ignore it. Maybe we should bring an error message. Tilman Am 22.06.2016 um 17:48 schrieb Stahle, Patrick: > Hi Tilman, > > That is what I would like to do. Unfortunately so far all the files I have that exhibit this behavior are proprietary. > We are also running into the same problem that generates ' CCITT Group 3' , and a few others that create a PDF but the PDF imbedded images rotation is all messed up. > > I need to confirm I am not seeing this same issue across the board and isn't some strange personal environmental issue I have.... > > As soon as I can find a Tiff that exhibits this behavior that I have permission to send I will... > > Thanks, > Patrick > > -----Original Message----- > From: Tilman Hausherr [mailto:THausherr@t-online.de] > Sent: Wednesday, June 22, 2016 11:39 AM > To: users@pdfbox.apache.org > Subject: Re: Strange file problem with CCITTFactory.createFromFile with tiff files with 'FillOrder=2' > > Am 22.06.2016 um 17:03 schrieb Stahle, Patrick: >> Hi All, >> >> I am using the latest PDFBox 2.0.2 version. >> >> When I attempt to convert a Tiff file that so happens to have 'FillOrder=2' with the following command: >> DImageXObject ximage = CCITTFactory.createFromFile(document, tiffIn, >> pdfPageNum); >> >> It throws the Exception: >> 'FillOrder 2 is not supported' >> >> Which I may not like, but I understand why that is the case. >> >> But I am also seeing the source tiff file is also getting corrupted and is no longer good tiff file. >> >> As an example: >> >> File listing before command above run - '-rwxrwxr-x. 1 us083485 us083485 229K Jun 22 10:32 ENG_CR_1418637-DBAG_A5.tif' >> File listing after above command has run- '-rwxrwxr-x. 1 us083485 us083485 230K Jun 22 10:42 ENG_CR_1418637-DBAG_A5.tif' >> >> Is this a bug, or am I doing something wrong? > That would be terrible if we'd be at fault, but here's the source code: > > public static PDImageXObject createFromFile(PDDocument document, File file, int number) > throws IOException > { > return createFromRandomAccessImpl(document, new RandomAccessFile(file, "r"), number); > } > > public RandomAccessFile(File file, String mode) throws FileNotFoundException > { > ras = new java.io.RandomAccessFile(file, mode); > } > > so the file is opened for reading only. > > It would be interesting to have a look what's in your file. Please create a copy and then compare it with a good hex editor. > > Tilman > > > > --------------------------------------------------------------------- > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org