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("<path_to_pdf_file>");
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

Reply via email to