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 8B12818E19 for ; Thu, 3 Dec 2015 16:46:42 +0000 (UTC) Received: (qmail 92140 invoked by uid 500); 3 Dec 2015 16:46:42 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 92116 invoked by uid 500); 3 Dec 2015 16:46:42 -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 92104 invoked by uid 99); 3 Dec 2015 16:46:42 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2015 16:46:42 +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 926DB1A2198 for ; Thu, 3 Dec 2015 16:46:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.899 X-Spam-Level: ** X-Spam-Status: No, score=2.899 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, URIBL_BLOCKED=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-eu-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 TouXzNV8QCk1 for ; Thu, 3 Dec 2015 16:46:36 +0000 (UTC) Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 91A8B2059A for ; Thu, 3 Dec 2015 16:46:35 +0000 (UTC) Received: by ioc74 with SMTP id 74so86910811ioc.2 for ; Thu, 03 Dec 2015 08:46:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DNu+ZflSiyEe+Kt8hPNkjXJUykyzfMjw8aGBs6lJwyM=; b=xHY8vV5jRAqvn36VwDrFuk+QElRx21jIX840C11FquL3OAzC6n3aQC0fGHEj7NA8XL pCMSMv0GpSbonkX2+aUZ4o8S902XnQrV2VnpbPGtXFTVodySzWg46JLcmLQ50V1K8sHF qzV+aWtxbYocLq0eOv+XOFvmMURBdVC/MPrh1L/o/UC2EMJEv6l0VBQcLHjQDIiGEASj qukgN2cTDe0TM4Q2Y04pbmyjY/jWpmL29n5+hiCVWD1WfDddnupAz3PMCRa9h9JhifCh 1pN6OXuqygUjhAZDPYIMGme0qdnW/DfQZxHxh/mcx1JAweJgdjlGO5zOLQ4nL/O2E+26 yTvw== MIME-Version: 1.0 X-Received: by 10.107.160.7 with SMTP id j7mr11345571ioe.52.1449161194527; Thu, 03 Dec 2015 08:46:34 -0800 (PST) Received: by 10.36.55.213 with HTTP; Thu, 3 Dec 2015 08:46:34 -0800 (PST) In-Reply-To: <565F7F18.1050502@t-online.de> References: <565F2C02.206@t-online.de> <565F2DE3.2010000@t-online.de> <565F7F18.1050502@t-online.de> Date: Thu, 3 Dec 2015 11:46:34 -0500 Message-ID: Subject: Re: Question on working with encrypted PDF file using PDFBox From: Sharki Chacko To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary=001a1140efb638e1020526012290 --001a1140efb638e1020526012290 Content-Type: text/plain; charset=UTF-8 I am using IKVM dlls with PDFBox dll ( http://www.squarepdf.net/how-to-convert-pdf-to-text-in-net). How to configure Bouncy Castle in that case? On Wed, Dec 2, 2015 at 6:30 PM, Tilman Hausherr wrote: > You need bouncycastle: > http://pdfbox.apache.org/1.8/dependencies.html > > Tilman > > > Am 02.12.2015 um 19:00 schrieb Sharki Chacko: > >> Thanks! tried that code but got a "FileNotFound" exception. >> >> {"Could not load file or assembly 'bcprov-jdk15-1.44, Version=0.0.0.0, >> Culture=neutral, PublicKeyToken=null' or one of its dependencies. The >> system cannot find the file specified.":"bcprov-jdk15-1.44, >> Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"} >> >> On Wed, Dec 2, 2015 at 12:44 PM, Tilman Hausherr >> wrote: >> >> Am 02.12.2015 um 18:41 schrieb Sharki Chacko: >>> >>> Version is 1.8.9. >>>> >>>> Here is the method used to load document, >>>> >>>> public void OpenDocument(string path) >>>> { >>>> if (_document != null) >>>> { >>>> _document.close(); >>>> } >>>> _document = PDDocument.load(path); >>>> } >>>> >>>> do this: >>> >>> |if(||document.isEncrypted()){StandardDecryptionMaterialsdm >>> =newStandardDecryptionMaterial("");doc.openProtection(sdm);}| >>> >>> >>> >>> Tilman >>> >>> >>> >>> >>> Let me know if you have any other question. >>>> >>>> Thanks, >>>> Sharki >>>> >>>> On Wed, Dec 2, 2015 at 12:36 PM, Tilman Hausherr >>> > >>>> wrote: >>>> >>>> What version are you using? What method are you using to load the file? >>>> >>>>> Tilman >>>>> >>>>> >>>>> Am 02.12.2015 um 18:10 schrieb Sharki Chacko: >>>>> >>>>> 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 >>>>>>> >>>>>>> >>>>>>> --------------------------------------------------------------------- >>>>>>> >>>>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >>>>> For additional commands, e-mail: users-help@pdfbox.apache.org >>>>> >>>>> >>>>> >>>>> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > > --001a1140efb638e1020526012290--