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 6C067182C4 for ; Wed, 2 Dec 2015 17:36:34 +0000 (UTC) Received: (qmail 62499 invoked by uid 500); 2 Dec 2015 17:36:34 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 62490 invoked by uid 500); 2 Dec 2015 17:36:34 -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 62478 invoked by uid 99); 2 Dec 2015 17:36:33 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Dec 2015 17:36:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5074C1A427F for ; Wed, 2 Dec 2015 17:36:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.898 X-Spam-Level: ** X-Spam-Status: No, score=2.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fDFD9rhFddkW for ; Wed, 2 Dec 2015 17:36:32 +0000 (UTC) Received: from mail-vk0-f43.google.com (mail-vk0-f43.google.com [209.85.213.43]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 75DB220C34 for ; Wed, 2 Dec 2015 17:36:32 +0000 (UTC) Received: by vkca188 with SMTP id a188so29631334vkc.0 for ; Wed, 02 Dec 2015 09:36:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=3YjbSDPDA2yYjwtkUQKvCTwstIZAkeowR/g1jG8vx8M=; b=h/BIIW3qI7QiheWvVnOWmwn3Zh4wyVQuG/vNCn6NvMB6mXoF2TJw7ADH54NzaiOmnj Ou9Dh1zEM9rHd7BTQe5haEZkCUcLpFdA62Nk1qbWhF17JXxRq17CjYectmsuYa4Yk9FS bCXJsdrTO6pSWeP7RMRnDZLOh1B9APhbteQySlKOeBUWRI78mG5tjMpQdXFDfN0Sa8Dx HjTkgjn1LhrnfRW8w4YXK6VpfI/yLcs4e+CWjrgD4NiQSKcaV7jtmHMD2RredbYAaGga SlVeQ0qK2fseeDB2TU4+GtD+TgdIVXSUD6EtkKx77VFiudjDR64W3kRCTb1eigw3E1j9 Sp5A== X-Received: by 10.31.138.20 with SMTP id m20mr3046079vkd.70.1449077791592; Wed, 02 Dec 2015 09:36:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.232.4 with HTTP; Wed, 2 Dec 2015 09:36:12 -0800 (PST) In-Reply-To: References: From: Gilad Denneboom Date: Wed, 2 Dec 2015 18:36:12 +0100 Message-ID: Subject: Re: Question on working with encrypted PDF file using PDFBox To: "users@pdfbox.apache.org" Content-Type: multipart/alternative; boundary=001a1144f92205149c0525edb7ac --001a1144f92205149c0525edb7ac Content-Type: text/plain; charset=UTF-8 You have to decrypt it first... If can specify the password as the second parameter of the load method of PDDocument. On Wed, Dec 2, 2015 at 6:10 PM, Sharki Chacko wrote: > > > > Hi > > > > I have an encrypted PDF file without a password. The > > statement, (PDPage)_document.getDocumentCatalog().getAllPages() returns > > null because of that. I just want to know what else I can try to get the > > pages of the encrypted PDF file? > > > > Thanks, > > Sharki > > > --001a1144f92205149c0525edb7ac--