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 EEB419B62 for ; Sun, 15 Jan 2012 18:53:38 +0000 (UTC) Received: (qmail 11764 invoked by uid 500); 15 Jan 2012 18:53:38 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 11715 invoked by uid 500); 15 Jan 2012 18:53:38 -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 11707 invoked by uid 99); 15 Jan 2012 18:53:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jan 2012 18:53:37 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [81.169.146.162] (HELO mo-p00-ob.rzone.de) (81.169.146.162) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jan 2012 18:53:31 +0000 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1326653590; l=917; s=domk; d=lehmi.de; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References: Subject:To:MIME-Version:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=algk1BrvCARMrp5oHyS2fjYfJ4o=; b=EUxeNgQ/r3xS+Rr8TGqkN3108CtrhPEYipEHsoAzgtSNRZB91Qfuw3Dw4Utw3aL8EGS LE2RBigNcVMZf50hiaYNZvbqXIwVV19oi2OkdY5tofCL2jblpjFZ/E4WdkjsTS02BQD3W zySd7x6NAzRz8eFRn1D/cxzlaMVerqj7dWw= X-RZG-AUTH: :LWIAZ0WpaN8UY5o8XRz0jOyrHsdEC+nAE10OdySrgHL6ku8a1wNbn3Vlxbk= X-RZG-CLASS-ID: mo00 Received: from [192.168.1.8] (dslb-088-078-011-181.pools.arcor-ip.net [88.78.11.181]) by smtp.strato.de (jimi mo57) (RZmta 27.4 DYNA|AUTH) with ESMTPA id w05145o0FHb49c for ; Sun, 15 Jan 2012 19:52:49 +0100 (MET) Message-ID: <4F132081.8020505@lehmi.de> Date: Sun, 15 Jan 2012 19:52:49 +0100 From: Andreas Lehmkuehler User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Lightning/1.0b2 Thunderbird/3.1.16 MIME-Version: 1.0 To: users@pdfbox.apache.org Subject: Re: Sign PDF Using ByteArrayInputStream References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Hi, Am 03.01.2012 12:36, schrieb Isaias Barroso: > Dear all, > > Currently the process to sign a PDF works fine if we use > PDDocument.addSignature and PDDocument.saveIncremental, but > saveIncremental just accept a FileInputStream, does anybody knows another > way, for exemple using a ByteArrayInputStream instead FileInputStream? > Using a ByteArrayInputStream would let the process more flexible, I could > for example get a content from a Web Service and sign the content without > to save it on disk before sign the document. That shouldn't be a big deal. An InputStream should be used a parameter type, so that one can choose depending on the situation the most suitable one. > If a solution for this don't already exists or planned I'll try to make > changes on source code. Please create an issue on JIRA [1], so that this idea can't get lost. > Best Regards BR Andreas Lehmk�hler