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

Free Support Forum - aspose.com

Expired PDF can be opened - ThermoFisher Scientific

Hi I am from ThermoFisher Scientific and we bought License from ASPOSE but not able to get how to get the Proper support from Aspose support team.
Please let us know what is the proper channel to get the support for Licensed user, we also paid for support too.

Here is Problem we are facing:

we are trying to set expiration to PDF File and do not want the file contents to be read by the users using any Other Application. Below is the code used for setting the expiration. File gets closed in Adobe Reader but can be accessed normally via Chrome/Edge etc. Please provide us with fix so that expired file cannot be opened. Also please let us know if there is any other possible way to avoid users from reading the file contents using any application.

Sample Code:

Document doc = new Document();
doc.getPages().add();
java.time.LocalDate date1=java.time.LocalDate.now().minusDays(10);
int year = date1.getYear();
int mon=date1.getMonthValue();
int dated=date1.getDayOfMonth();
JavascriptAction javaScript = new JavascriptAction(
“// Get the current date and time\n” +
“var rightNow = new Date();\n” +
“var endDate = new Date(2021, 03, 01);\n” +
“if(rightNow > endDate)\n” +
“{\n” +
“app.alert(“This Document has Expired.”);\n” +
“this.closeDoc();\n” +
“}”);
doc.setOpenAction(javaScript);
doc.save(dataDir + “PDFExpiry.pdf”);

Please advice.

Thanks
Sanjaya Karigar

@sanjaya.karigar

A similar issue has already been logged in our issue tracking system under the ticket ID PDFJAVA-40539. We have linked it with this forum thread so that you will be able to receive a notification as soon as it is resolved.

You can request at Paid Support Helpdesk to escalate the priority of this issue.

@mudassir.fayyaz Its been 5days we did not received any update on this request.

Dont you think Aspose will provide the support who bought the licensed tool ?

@sanjaya.karigar

Can you please confirm if you have purchased the subscription to Paid Support? If yes then you should be able to login there using the same email address which was used for purchasing. In case you are facing any issue, please explain your issue by creating a post in our Purchase Forum where you will be assisted accordingly.

Otherwise, it was logged in free support model and will be investigated and resolved on a first come first serve basis. We will surely inform you as soon as we make some definite progress towards its resolution. Please be patient and spare us some time.