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 0A564100E3 for ; Mon, 11 Nov 2013 11:50:17 +0000 (UTC) Received: (qmail 35162 invoked by uid 500); 11 Nov 2013 11:46:25 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 34376 invoked by uid 500); 11 Nov 2013 11:44:33 -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 34221 invoked by uid 99); 11 Nov 2013 11:44:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Nov 2013 11:44:00 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gilad.denneboom@gmail.com designates 209.85.214.54 as permitted sender) Received: from [209.85.214.54] (HELO mail-bk0-f54.google.com) (209.85.214.54) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Nov 2013 11:43:47 +0000 Received: by mail-bk0-f54.google.com with SMTP id 6so1650225bkj.13 for ; Mon, 11 Nov 2013 03:43:27 -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=4jJr7P5WwTFV9XVapudCdUqccysp6aBOlzoGcc4Nklk=; b=HwrqLJvHJnGKQaC7J82B1xqb/fqZoGa1YP9qNgfalK5f3Vw8GLwm2LHDjRdldy50cr H6J4rkTwDC89OTL+TKtY0Hj6+SXMBMOEVdg6Z2fpGNfxi+lXeBqYScZz0Zte4dYG5uD+ 3x9ofHqmUkBPrKuG9EQ3S4MRtfPb6RNKM5YwXpZA6xlgacrlTl9x1vLEm0vDK8ZiCF4o vPWlm6lJkV+U/CEFTqczVl8idWGK6B9oza6zLoYFvA/9gbYfgwXhjHh5IRW3Ge0J5OY5 ttyWBuFztMha9eiC+X3vW46/5j2erP9wfG6wZyghQ4XwVKeAz0v2jmaXrUNa7jsdSN9c OuIw== X-Received: by 10.205.86.131 with SMTP id as3mr58580bkc.89.1384170207204; Mon, 11 Nov 2013 03:43:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.248.65 with HTTP; Mon, 11 Nov 2013 03:43:05 -0800 (PST) In-Reply-To: References: From: Gilad Denneboom Date: Mon, 11 Nov 2013 12:43:05 +0100 Message-ID: Subject: Re: Pdfbox PDDocument.gwtAccessPermission().canPrint() not working as expected. Please help... To: "users@pdfbox.apache.org" Content-Type: multipart/alternative; boundary=001a1132fb788280de04eae53d14 X-Virus-Checked: Checked by ClamAV on apache.org --001a1132fb788280de04eae53d14 Content-Type: text/plain; charset=ISO-8859-1 You should report it as a bug, here: https://issues.apache.org/jira/browse/PDFBOX On Sat, Nov 9, 2013 at 10:22 PM, Krishnendu Datta wrote: > Hi All, > > I am using pdfbox for validating a pdf document and one of the validation > states that whether the pdf document is printable or not. > > I use the following code to perform this operation: > > PDDocument document = PDDocument.load(""); > System.out.println(document.getCurrentAccessPermission().canPrint()); > > but this is returning me *true *though the pdf when opened shows the print > icon disabled. > > The file that is tested with can be found at : > > > https://drive.google.com/file/d/0B-Ouc3yLq4_mTzVraW5Nd0ZBUzg/edit?usp=sharingt?usp=sharing > > Any help regarding this will be appreciated. > > Thanks, > Krishnendu > > > On Sun, Nov 10, 2013 at 1:53 AM, Gilad Denneboom > wrote: > > > You can't attach files to emails to this list. Upload them to a > > file-sharing website and post the link, instead. > > > > > > On Sat, Nov 9, 2013 at 8:17 PM, Krishnendu Datta > >wrote: > > > > > Hi All, > > > > > > I am using pdfbox for validating a pdf document and one of the > validation > > > states that whether the pdf document is printable or not. > > > > > > I use the following code to perform this operation: > > > > > > PDDocument document = PDDocument.load(""); > > > System.out.println(document.getCurrentAccessPermission().canPrint()); > > > > > > but this is returning me *true *though the pdf when opened shows the > > > print icon disabled. > > > > > > Attaching the sample pdf which I used for testing. > > > > > > Any help regarding this will be appreciated. > > > > > > -- > > > Thanks and Regards, > > > Krishnendu > > > > > > > > > > > > -- > Thanks and Regards, > Krishnendu Datta > Assistant Consultant(Technical Architect) > Tata Consultancy Services(TCS) > Mobile: +91-9163117896 > --001a1132fb788280de04eae53d14--