Problem with pdf.save(....)


#1

Hi,

i am using aspose.pdf and it’s excelent.

recently i have faced a little problem to use pdf.save(“c:\test.pdf”). As if the test.pdf is already exist and opened then cause an error to save.

if there is a way to check “\xx.pdf” is already opened, before save then that will be me more helpful.

Regards.
Sojib


#2

Dear Sojib,

Thank you for considering Aspose.

If the file is opened, you will get a “IOException”. Can you consider catch this exception and do corresponding operation?