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 16586108C8 for ; Thu, 19 Dec 2013 15:47:23 +0000 (UTC) Received: (qmail 70552 invoked by uid 500); 19 Dec 2013 15:46:32 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 70281 invoked by uid 500); 19 Dec 2013 15:46:22 -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 70186 invoked by uid 99); 19 Dec 2013 15:46:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 15:46:13 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andyphillips404@gmail.com designates 209.85.223.179 as permitted sender) Received: from [209.85.223.179] (HELO mail-ie0-f179.google.com) (209.85.223.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 15:46:05 +0000 Received: by mail-ie0-f179.google.com with SMTP id x13so1535388ief.38 for ; Thu, 19 Dec 2013 07:45:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=xY3s3SsHZVyow+MN4uF7+RlfAMbC4+jvHPCjf1rgiZQ=; b=CvbvzRJmb/lsbo2VU/ofL85iglcgXCzHo912SH0ymVaXw2FwJwlWPFU+prZWroYgg5 DkcrGu/95PC/PkoPJeJnqmHfzrOUJjeRHzcixEXpvcPjW+ITajh6SbQvmSQsNa1on6Iz DSSJr6LogbmMJNG7FZVs7WEh0Qqq1q4fPKIgat70XYARzeFF6noLGr44DsFVh8AJiZY2 O2Wav/E3VVlStmMXoQKWPBQweFznSQETJZn5m5mpIcNMIJnn1gyZTfhhM2qEga4B1/vu h8xzcVMRi2ezIbn3tfqacbE5bxX2XGaET5l5ihyV/AfTvU8lIDqYNQJObIeiULzimGH3 sC6A== X-Received: by 10.42.35.5 with SMTP id o5mr1631540icd.8.1387467944743; Thu, 19 Dec 2013 07:45:44 -0800 (PST) Received: from andrews-mbp.generac.com (66-162-235-30.static.twtelecom.net. [66.162.235.30]) by mx.google.com with ESMTPSA id f5sm5943450igc.4.2013.12.19.07.45.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Dec 2013 07:45:43 -0800 (PST) From: Andrew Phillips Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Get original byte array / byte stream from PDF Message-Id: <1CC98F26-9DD7-406B-98CD-FBAFDD781B66@gmail.com> Date: Thu, 19 Dec 2013 09:45:40 -0600 To: users@pdfbox.apache.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) X-Mailer: Apple Mail (2.1822) X-Virus-Checked: Checked by ClamAV on apache.org Hope someone can point me in the right direction, i am wondering if = there is a way to get the original byte stream from the pdf i got using = PDDocument.load(URL)? I want to save a snapshot of the original PDF = without downloading it twice, or downloading it to a temporary location = then loading into PDDocument and loading again to a byte stream? Thanks! Andy P=