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 2ACE218763 for ; Mon, 10 Aug 2015 12:59:25 +0000 (UTC) Received: (qmail 43561 invoked by uid 500); 10 Aug 2015 12:59:10 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 43539 invoked by uid 500); 10 Aug 2015 12:59:10 -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 43528 invoked by uid 99); 10 Aug 2015 12:59:10 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2015 12:59:10 +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 D44B9C0484 for ; Mon, 10 Aug 2015 12:59:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.989 X-Spam-Level: ** X-Spam-Status: No, score=2.989 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id crg8PPal4vZC for ; Mon, 10 Aug 2015 12:59:08 +0000 (UTC) Received: from mail.ilsos.net (mail.ilsos.net [199.15.3.29]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id E9C3A261CD for ; Mon, 10 Aug 2015 12:59:03 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.15,645,1432616400"; d="scan'208,217";a="43193985" Received: from webmail.ilsos.net ([10.0.1.200]) by smtp.ilsos.net with ESMTP; 10 Aug 2015 07:58:57 -0500 Received: from EXCDB.ILSOS.ORG ([::1]) by EXCHC1.ILSOS.ORG ([::1]) with mapi id 14.03.0224.002; Mon, 10 Aug 2015 07:58:56 -0500 From: "Kirk, Kenneth" To: "users@pdfbox.apache.org" Subject: Rendering PDImageXObject Thread-Topic: Rendering PDImageXObject Thread-Index: AdDTbFEWYD1LVYRIS8KVrVVVSmL40A== Date: Mon, 10 Aug 2015 12:58:56 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.254.151] Content-Type: multipart/alternative; boundary="_000_DC902F4011063E4394F5F7D12175834756FAE6D0EXCDBILSOSORG_" MIME-Version: 1.0 --_000_DC902F4011063E4394F5F7D12175834756FAE6D0EXCDBILSOSORG_ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable I have a situation that maybe someone has already solved in a more efficien= t manner. When converting a tiff image to PDF I use the drawImage method o= f the PDPageContentStream. The tiff image has a resolution of 200 DPI whic= h is 1700x2200. When PDFRenderer renders this image from the resulting PDF= page it does so at the PDF default of 72 DPI which logically translates t= o page 23 inches by 30 inches when applied to the original iamge size of 17= 00x2200. Since I don't know after the fact what DPI a image object on PDF = page was drawn at I came up with down scaling the image at PDF creation tim= e to 72 DPI. I'm sure there must a better way one of you computer science = PHDs have come up with. ************************************************ Disclaimer - This email and any files transmitted with it are confidential = and contain privileged or copyright information. You must not present this = message to another party without gaining permission from the sender. If you= are not the intended recipient you must not copy, distribute or use this e= mail or the information contained in it for any purpose other than to notif= y the Office of the Illinois Secretary of State. = If you have received this message in error, please notify the sender immedi= ately, and delete this email from your system. Any views expressed in this = message are those of the individual sender, except where the sender specifi= cally states them to be the views of the Office of the Illinois Secretary o= f State. = ************************************************ --_000_DC902F4011063E4394F5F7D12175834756FAE6D0EXCDBILSOSORG_--