You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Patagames PDFium报错:指定目标已被其他对象占用

Patagames PDFium 错误排查求助

使用Patagames PDFium(非Google官方版本)时触发以下错误:
System.ArgumentException: 'The specified destination is already in use by another object'

操作场景

将LinkAnnotationNEW直接赋值为原LinkAnnotation实例后,执行设置跳转动作的代码时触发该错误。

已尝试操作

移除原注释并添加新注释,但问题仍未解决。目前怀疑需要先清除LinkAnnotationNEW.Link.Annotation关联的内容,但不确定具体操作方式。

相关VB代码

LinkAnnotationNEW = LinkAnnotation

Dim thePdfDest = New PdfDestination(Nothing, OLDdestination)
thePdfDest = LinkAnnotation.Link.Destination
Dim fileSpec As New PdfFileSpecification(theDocument)
fileSpec.FileName = OLDfileNameDirectory & sheetFileNameNEWannotation

LinkAnnotationNEW.Link.Action = New PdfGoToRAction(theDocument, fileSpec, thePdfDest)
Page.Annots.Remove(LinkAnnotation)
Page.Annots.Add(LinkAnnotationNEW)

相关截图

截图1
截图2
错误提示截图
参数详情截图

内容的提问来源于stack exchange,提问作者Ralph Diehl

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.15 00:32:04