logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Diehl And Associates LLC  
#1 Posted : 6 months ago
Diehl And Associates LLC

Rank: Newbie

Groups: Registered
Joined: 7/12/2024(UTC)
Posts: 5
United States

I get the error: "System.ArgumentException: 'The specified destination is already in use by another object'".

The destination, LinkAnnotationNEW, was assigned a value just a few lines above the error, I don't see how that can be.

Although, maybe the part of it LinkAnnotationNEW.Link.Annotation, needs to be deleted first or something else?

See below for more details and code.

Thanks!

Screenshot (2855)B.png (33kb) downloaded 1 time(s).
Screenshot (2855)A.png (76kb) downloaded 3 time(s).
Paul Rayman  
#2 Posted : 5 months ago
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,116

Thanks: 8 times
Was thanked: 130 time(s) in 127 post(s)
Hello,

You need to create a new destination.
In your example you are trying to use an existing one.

Here is an example of creating link annotation
https://pdfium.patagames.com/help/html/WorkingSDK_Annots.htm#sec-link-annotation

and here is the same with GoToR action
https://pdfium.patagames.com/help/html/WorkingSDK_Actions.htm#GoToR-action

Edited by user 5 months ago  | Reason: Not specified

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.