empira / PDFsharp-1.5

A .NET library for processing PDF
MIT License
1.28k stars 588 forks source link

Error 'Object already in table' on PdrReader.Open(FileName, pdfDocumentOpenMode.Import) #56

Closed polarissno closed 1 year ago

polarissno commented 6 years ago

I get this error when trying to open the included pdf using this command. I am trying to open this file to combine with other files.

PdrReader.Open(FileName, pdfDocumentOpenMode.Import)

Object already in table

PDFsharp-IssueSubmission.zip

Thanks.

Resources

The official project web site:
http://pdfsharp.net/

The official peer-to-peer support forum:
http://forum.pdfsharp.net/

Reporting an Issue Here

Expected Behavior

Actual Behavior

Steps to Reproduce the Behavior

We strongly recommend using the IssueSubmissionTemplate to make sure we can replicate the issue.
http://www.pdfsharp.net/wiki/IssueSubmissions.ashx

ThomasHoevel commented 6 years ago

There are two objects with ID 25 in the PDF file. When I use "Save as" in Adobe Reader I get a PDF file without duplicate objects.

Adobe Reader does a good job with respect to opening and fixing corrupted PDF files where PDFsharp just throws an exception. Looks as if PDFsharp is working as intended.

polarissno commented 6 years ago

Thank you for the quick response. I will try that.

"In theory, theory and practice are the same. In practice, they are not."

On May 22, 2018, at 4:36 AM, ThomasHoevel notifications@github.com wrote:

There are two objects with ID 25 in the PDF file. When I use "Save as" in Adobe Reader I get a PDF file without duplicate objects.

Adobe Reader does a good job with respect to opening and fixing corrupted PDF files where PDFsharp just throws an exception. Looks as if PDFsharp is working as intended.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

smiles3983 commented 4 years ago

Is there a way to only open one object using PDFSharp?