adobe / adobe/PDFServices.NET.SDK.Samples

Filed locked after calling FileRef.CreateFromLocalFile

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
47
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Using Export To Docx I want to delete the original PDF file after calling the following:

FileRef sourceFileRef = FileRef.CreateFromLocalFile();

After Creating PDF from local file. I want to delete the original file but a lock remains on the file.

When I try to delete the file with File.Delete, an exception is thrown that there is a lock on the file from another process.

I cannot dispose of the the FileRef and even after setting the object to null, the lock remains.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.