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 : Wednesday, January 15, 2025 12:14:42 PM(UTC)
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 : Tuesday, January 21, 2025 8:29:15 PM(UTC)
Paul Rayman

Rank: Administration

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

Thanks: 8 times
Was thanked: 131 time(s) in 128 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....htm#sec-link-annotation

and here is the same with GoToR action
https://pdfium.patagames...Actions.htm#GoToR-action

Edited by user Tuesday, January 21, 2025 8:46:11 PM(UTC)  | Reason: Not specified

Users browsing this topic
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.