Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D71B610908 for ; Fri, 9 Aug 2013 18:12:32 +0000 (UTC) Received: (qmail 9181 invoked by uid 500); 9 Aug 2013 18:12:32 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 9161 invoked by uid 500); 9 Aug 2013 18:12:27 -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 9153 invoked by uid 99); 9 Aug 2013 18:12:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 18:12:25 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.138.91.161] (HELO nm1-vm4.bullet.mail.ne1.yahoo.com) (98.138.91.161) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 18:12:17 +0000 Received: from [98.138.90.55] by nm1.bullet.mail.ne1.yahoo.com with NNFMP; 09 Aug 2013 18:11:56 -0000 Received: from [98.138.89.161] by tm8.bullet.mail.ne1.yahoo.com with NNFMP; 09 Aug 2013 18:11:56 -0000 Received: from [127.0.0.1] by omp1017.mail.ne1.yahoo.com with NNFMP; 09 Aug 2013 18:11:56 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 75502.22225.bm@omp1017.mail.ne1.yahoo.com Received: (qmail 36904 invoked by uid 60001); 9 Aug 2013 18:11:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1376071915; bh=rxP/c5CSw1RONEyhXvd6SzktDRFMxP4XJin+sAMX1rQ=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=OKGTc7xtvG/1ba9Y/4lZUwB5zpFqZRXcOyq0QEDcBZFvFMhmaWeMDPirKsTWit3mgYW9Z8fsh+A73vzZDX8/REVeP74vJAaCnX0l3a6ETA4ivaWm1KlyV0IBLbt2hwN+w0himeqyAG6wYIoT0ypTNVwXa//C1dqXmfQvG39Yo3A= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=P13YBmDVUq3Y5X3OhZInUrYJsnJ3afBbXLTl9mxr8X+YROd19HsFhuG13m3CX672gu9VX/yi8SjRMPz5T8w/nekgYmT1BeDemA3GpZCRVTXDawA43vKwAIG1MUGDHxWryfTqgoQwoP5Bz/WvhSSCjww5ii3qrXXQM2AQGo9qxJg=; X-YMail-OSG: HI_q8CgVM1kO2mpqDkpY3NJq_.di2gYUnEhn6v8O8NOOKKJ 9VgdKSftREc3ajm32zRdph1bMeeogsfoBPu0KfvNMGBTmYwwLkioGB6zNlw9 Z3Lj43EyxZCM_XUt.AJfpbDiuRuegvCjHEGJXSGO9YDZxzS29vmQSGT.rbHT Gwg3EpYlbSfvFp9pP.3jlp9Q6qqgub9x.CnJ6Tt0gM4_BDw_3NbOHhJubtqC EDJf7F1WsvSWcmlJXt6U3apdx5DA_IoYB4MltXBvEoi1xVb6H1BmoIWRJ33o ZTce39NcoEAzoXx9XPvOsAyCFL8uP6MKHOvuheqski3GNRnPFnawJcBrleC6 DS3C1Lgu2Gvq91UkIAp9SnOHR9r8vHJiC72irbrWr7aq6jBcB9qgATbgbvPV mYVLyNlfR7QTkWcjEw9nIQZIKETT.ZFwsKJ01InK6b1aXWQmb0YMKRpdIsd3 AYDBqqvG.RKSH7x_6JW1DqNQmmaOAMEOXlFXeG5XbJta6KduJvKD8yRqFlHH zTwgmKxTLMvDxn5Jkh7Eb_FdqbP6eo_Qd4xs.8Ke8XgbXuishxX4DzDqyKPj nm04tk2LQE4JHkH8gnFgreEs9STuebQ7wAgGkmHE- Received: from [70.89.103.36] by web126101.mail.ne1.yahoo.com via HTTP; Fri, 09 Aug 2013 11:11:55 PDT X-Rocket-MIMEInfo: 002.001,SGkgQW5kcmVhcywKCmluIHVzaW5nIFBERkRlYnVnZ2VyIChncmVhdCB0b29sIEJUVykgaSBmb3VuZCB0aGUgZm9sbG93aW5nLgoKbm93IHBsZWFzZSBjb3JyZWN0IG1lIGlmIGknbSBsb29raW5nIGF0IHRoZSB3cm9uZyBkYXRhLAoKaSBoYXZlIGZvdW5kIHRoZSBmaWx0ZXIgdXNlZCBmb3IgdGhlIHdvcmtpbmcgUERGIGZpbGUgaXMgdG8gYmUgRENURGVjb2RlCgphbmQgZm9yIHRoZSBQREYgZmlsZXMgbm90IHdvcmtpbmcgY29ycmVjdGx5LCBpIGhhdmUgZm91bmQgYSBmaWx0ZXIgb2YganB4ZGVjb2RlIGFuZCABMAEBAQE- X-Mailer: YahooMailWebService/0.8.153.572 References: <1375808871.70380.YahooMailNeo@web126104.mail.ne1.yahoo.com> <5201392C.7000608@lehmi.de> Message-ID: <1376071915.10045.YahooMailNeo@web126101.mail.ne1.yahoo.com> Date: Fri, 9 Aug 2013 11:11:55 -0700 (PDT) From: Alain Reply-To: Alain Subject: Re: Having a problem using PDFParser To: "users@pdfbox.apache.org" In-Reply-To: <5201392C.7000608@lehmi.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-1476493434-2075430066-1376071915=:10045" X-Virus-Checked: Checked by ClamAV on apache.org ---1476493434-2075430066-1376071915=:10045 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Andreas,=0A=0Ain using PDFDebugger (great tool BTW) i found the followin= g.=0A=0Anow please correct me if i'm looking at the wrong data,=0A=0Ai have= found the filter used for the working PDF file is to be DCTDecode=0A=0Aand= for the PDF files not working correctly, i have found a filter of jpxdecod= e and jbig2decode=0A=0Ai am using a fresh download of 1.8.2 =0A=0A=0AThanks= =0A=0AAlain=0A=0A=0A=0A________________________________=0A From: Andreas Le= hmkuehler =0ATo: users@pdfbox.apache.org =0ASent: Tuesday= , August 6, 2013 1:58 PM=0ASubject: Re: Having a problem using PDFParser=0A= =0A=0AHi,=0A=0AAm 06.08.2013 19:07, schrieb Alain:=0A> Hi all,=0A>=0A> I h= ave an application that generates a PDF. I download the pdf to the client a= nd i'm using the PDFParser=0A> class to parse the PDF. Here is my code so f= ar.=0A>=0A>=0A>=0A> DocFlavor flavor =3D DocFlavor.SERVICE_FORMATTED.PAGEAB= LE;=0A> PrintRequestAttributeSet patts =3D new HashPrintRequestAttributeSet= ();=0A> PrintService[] ps =3D=0A>=A0 PrintServiceLookup.lookupPrintService= s(flavor, patts);=0A> if (ps.length =3D=3D 0) {=0A>=A0 =A0 =A0 throw new Il= legalStateException("No Printer found");=0A> }=0A>=0A> PrinterJob job =3D P= rinterJob.getPrinterJob();=0A> job.setPrintService(ps[8]);=0A>=0A> PDFParse= r parser =3D new PDFParser(new ByteArrayInputStream(pdfDoc));=0A> parser.pa= rse();=0A> job.setPageable(parser.getPDDocument());=0A> job.print();=0A>=0A= >=0A> My problem is when a scanned image in a PDF format is processed, the = page printed is blank.=0A>=0A> What i found was when a PDF file is created = with PDF version 1.2, the image does display on the print out.=0A> If the P= DF file created under version 1.4, it is blank.=0A>=0A> I was able to test = this from using 2 different scanners, one generates a 1.2 file and the othe= r a 1.4=0A>=0A> Can anyone shed some light on where i should be looking..= =0AI guess it depends on the used image encoding (CCITT, DCT, JBIG2, JPX et= c.),=0Asome are well supported others are not. Do you get some console log = output =0A(complains about unsupported filters)?=0A=0A> Best Regards=0A> Al= ain=0A=0ABR=0AAndreas Lehmk=FChler ---1476493434-2075430066-1376071915=:10045--