Is there a way to automatically close created pdf after certain time

I used .aspx page to create and display in browser pdf document with sensitive information. Is there a way to automatically close the document after some time interval? My javascript code which I tested on normal page doesn’t work for pdf document.

Thanks

@boriszh

Thanks for contacting support.

Aspose.Pdf for .NET offers no such feature to close the browser window automatically but as a workaround, you can convert PDF pages into image(s) and display those images in some div or HTML container, which can be closed automatically by some JavaScript code after desired time interval.

In order to convert PDF pages into image(s), please visit “Convert PDF Pages” article(s) in our API documentation and in case of any further issue, please share your sample input document along with sample code snippet, so that we can test the scenario in our environment and respond you accordingly.


Best Regards,
Asad Ali