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

Research direction

The issue names FileRef.CreateFromLocalFile and File.Delete; start by reproducing that sequence with the Export To Docx flow and observe when the original PDF remains locked. Done means the original file can be deleted after PDF creation without a lock exception, and the required FileRef cleanup behavior is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.