PDFBox not recognising pdf to be non printable
问题 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 when the pdf is opened, it shows the print icon disabled. 回答1: Access permissions are integrated into a document by means of encryption. Even PDF