adobe / adobe/PDFServices.NET.SDK.Samples

Filed locked after calling FileRef.CreateFromLocalFile

未关闭
#27 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
HTML
星标
47
派生
23
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

调研方向

该 issue 提到了 FileRef.CreateFromLocalFile 和 File.Delete;首先使用 Export To Docx 流程重现该序列,并观察原始 PDF 何时仍处于锁定状态。完成的标准是:PDF 创建后可以删除原始文件而不会出现 lock 异常,并且已确定所需的 FileRef 清理行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
backend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。