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 0EA93923C for ; Sat, 11 Feb 2012 00:25:42 +0000 (UTC) Received: (qmail 80414 invoked by uid 500); 11 Feb 2012 00:25:41 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 80395 invoked by uid 500); 11 Feb 2012 00:25:41 -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 80387 invoked by uid 99); 11 Feb 2012 00:25:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2012 00:25:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ilija.pavlic@gmail.com designates 74.125.83.48 as permitted sender) Received: from [74.125.83.48] (HELO mail-ee0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2012 00:25:33 +0000 Received: by eekd4 with SMTP id d4so1390950eek.21 for ; Fri, 10 Feb 2012 16:25:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=WGWWL9Gc8rq9gPZ2oIboDstX3Y5699oCAW979rdZkXA=; b=sczO5QgByxNh7nkQlna34CK6qH1D4RKqZ6/h52IFba/ZiAQjDImaH3K3X/7QM/t4Yc Zn8tjjHI6GQew/I3rfnJoX18kyjI1KFgAkJfYS4xcP82Or+icsktskyHY+BuCvPCs02U c54aF2WllelwiTbYXyEC0XwfwkHs0YVGhwr38= Received: by 10.213.2.74 with SMTP id 10mr685076ebi.23.1328919911594; Fri, 10 Feb 2012 16:25:11 -0800 (PST) Received: from ipavlic-mbp.lan (cpe-188-129-92-242.dynamic.amis.hr. [188.129.92.242]) by mx.google.com with ESMTPS id n56sm28280164eeh.6.2012.02.10.16.25.09 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Feb 2012 16:25:10 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1251.1) Subject: Re: Incorrect Default K value for CCITTFaxDecode From: Ilija Pavlic In-Reply-To: Date: Sat, 11 Feb 2012 01:25:08 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <6FE11BDD-B59E-4D96-BE91-8224A2E7F77E@gmail.com> References: To: users@pdfbox.apache.org X-Mailer: Apple Mail (2.1251.1) Hi Jamie, You might also consider adding the issue to Jira = (https://issues.apache.org/jira/browse/PDFBOX). BR, Ilija. On 10. 2. 2012., at 20:28, Jamie Dougal wrote: > Hi, >=20 > We are trying to import a PDF that is a CCITT Fax PDF. For some of = our > files we are importing, DecodeParams does not specify a K value. >=20 > in org.apache.pdfbox.filter.CCITTFaxDecodeFilter, line 85 int k =3D > decodeParms.getInt(COSName.K); >=20 > following that through we find that getInt() without a default value > specified defaults to -1. According to the Adobe PDF specification > however, the default K value is 0. >=20 > So i believe that line 85 should read: > int k =3D decodeParams.getInt(COSName.K, 0); >=20 > --=20 > Jamie Dougal > CANdata Systems Ltd. > 416-493-9020 x2417 > Direct: 416-855-2417