We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Check PDF is editable

is there a built in method in Aspose Total Java to check if PDF is editable.

in our org, lot of time people upload PDF/A, we want to stop people uploading such file.


You can please try to use the PdfFormat property of the Document in order to determine which PDF/A format is supplied to the application:

var pdf = new Aspose.Pdf.Document(filename);
var formatPDF = pdf.PdfFormat;

Thank you.

Is there a more generic way to verify if files are editable? As we may also have password protected files in addition to PDF/A.


There is no generic method to determine these different properties and aspects of the supplied PDF. In order to check the password protection, you can use below example: