Concurrency and Cleanup


#1

When I create and set privileges for PDF documents created from an Excel template, a copy of those documents are left on my server. Two questions:

1) Are there concurrency issues in creating PDF documents off the template.

2) What is the best approach for cleaning up the documents left behind. Can Aspose.Pdf.Kit do this, or do I need to track this in a session variable and clean up when the session expires?

Thanks.


#2

Dear FireWave,

Thanks for considering Aspose.

1) Are there concurrency issues in creating PDF documents off the template.

You could set privileges for PDF documents in multi-threads.

2) What is the best approach for cleaning up the documents left behind. Can Aspose.Pdf.Kit do this, or do I need to track this in a session variable and clean up when the session expires?

If you only want to show the pdf and not archive the pdf, you could use the Stream interface, and not save it to the disk. All the interfaces of our API have provided Stream format.

Any other question is welcome.

Best regards.