Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting an imported document with InsertRange() throws an exception if the imported document contains hyperlinks #206

Open
dox-osksih opened this issue Nov 7, 2024 · 0 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@dox-osksih
Copy link

Expected Behavior

Goal: import PDF file B and insert its pages to PDF file A. B may contain hyperlinks.

The pages from B should be inserted to A with the hyperlinks intact.

Actual Behavior

The line

attempts to add a duplicate key to a dictionary. The following exception is thrown, the import fails and no document is produced:

System.ArgumentException: 'An item with the same key has already been added. Key: /Annots'

Steps to Reproduce the Behavior

Builds: all three PDFSharp builds present in the issue submission template.

Version: 6.2.0-preview-1.

MCVE: Issue.zip. The MCVE includes two simple PDF files with which the issue can be demonstrated.

@ThomasHoevel ThomasHoevel added bug Something isn't working duplicate This issue or pull request already exists labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants