PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

PdfSharp throws exception when trying to get page 2 of 2
https://forum.pdfsharp.net/viewtopic.php?f=3&t=3254
Page 1 of 1

Author:  MJLaukala [ Thu Dec 24, 2015 5:50 pm ]
Post subject:  PdfSharp throws exception when trying to get page 2 of 2

When trying to get page 2 of 2 of a file generated with PaperPort, PdfSharps throws an ArgumentOfRangeException. It's obviously failing to import the page. I attempted to attach the IssueSubmission form but it wont allow me to upload anything greater than 256 KiB. I did send an email an email to Stefan Lange on December 11th with the IssueSubmission and have yet to receive a response. I would appreciate it if someone would look into this and let me know if you plan on fixing it soon. Thanks.

Author:  () => true [ Thu Dec 24, 2015 9:14 pm ]
Post subject:  Re: PdfSharp throws exception when trying to get page 2 of 2

MJLaukala wrote:
but it wont allow me to upload anything greater than 256 KiB.
How large is the PDF file? How large is the IssueSubmission project after removing the BIN and OBJ folders and the NuGet packages?
December 16th was my last day at the office this year and I didn't hear anything from Stefan about this issue.

If PDFsharp cannot access the second page of a valid PDF file then we will try to fix it.

Author:  MJLaukala [ Wed Jan 13, 2016 10:14 pm ]
Post subject:  Re: PdfSharp throws exception when trying to get page 2 of 2

() => true wrote:
MJLaukala wrote:
but it wont allow me to upload anything greater than 256 KiB.
How large is the PDF file? How large is the IssueSubmission project after removing the BIN and OBJ folders and the NuGet packages?
December 16th was my last day at the office this year and I didn't hear anything from Stefan about this issue.

If PDFsharp cannot access the second page of a valid PDF file then we will try to fix it.


Sorry for not getting back to you sooner. The bin, obj, and NuGet packages have already been removed. The issue is that it is a scanned pdf. The size of the file on disk is 920 KBs.

EDIT:
After compressing to a zip, the total submission size on disk is 520 KB.

Author:  Thomas Hoevel [ Thu Jan 14, 2016 10:11 am ]
Post subject:  Re: PdfSharp throws exception when trying to get page 2 of 2

I received your file and I can replicate the problem.

Adobe Reader does not prompt to save the file, so I assume it is OK.
However after using "Save as" in Adobe Reader, I get a slightly larger file that works with PDFsharp.

I'll have a closer look at the file today, but as this is not my area of expertise this could be something that Stefan will have to investigate and most likely further feedback will come next week.

Author:  MJLaukala [ Mon Jan 18, 2016 5:31 pm ]
Post subject:  Re: PdfSharp throws exception when trying to get page 2 of 2

Thank you. I look forward to the feedback.

Author:  MJLaukala [ Wed Feb 10, 2016 9:58 pm ]
Post subject:  Re: PdfSharp throws exception when trying to get page 2 of 2

I'm just curious to know if there is any new information on this issue?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/