PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
Invalid PDF file: no trailer found. http://forum.pdfsharp.com/viewtopic.php?f=2&t=3935 |
Page 1 of 1 |
Author: | Akshay [ Sat Mar 16, 2019 12:50 pm ] |
Post subject: | Invalid PDF file: no trailer found. |
Can anyone help me ? I have code to generate PDF using Memory Stream using following line -doc is byte array PdfSharp.Pdf.PdfDocument pdfFile = PdfSharp.Pdf.IO.PdfReader.Open(new MemoryStream(doc), PdfSharp.Pdf.IO.PdfDocumentOpenMode.Import); When i reach this line it throws error saying "Invalid PDF file: no trailer found." When i open document or when i convert it as PDF.pdf file i'm able to view docuument Please help on this. Thank you |
Author: | TH-Soft [ Sat Mar 16, 2019 1:21 pm ] |
Post subject: | Re: Invalid PDF file: no trailer found. |
Akshay wrote: Please help on this. See also:viewtopic.php?f=2&t=832 Thank you. |
Author: | Akshay [ Sat Mar 16, 2019 1:37 pm ] |
Post subject: | Re: Invalid PDF file: no trailer found. |
Tried looking for solution in forum but couldn't find anything working |
Author: | TH-Soft [ Sat Mar 16, 2019 3:27 pm ] |
Post subject: | Re: Invalid PDF file: no trailer found. |
CNR, case closed. https://xkcd.com/583/ |
Author: | Thomas Hoevel [ Mon Mar 18, 2019 10:53 am ] |
Post subject: | Re: Invalid PDF file: no trailer found. |
Solution was posted on Stack Overflow: https://stackoverflow.com/q/55215117/162529 No problem with PDFsharp. PEBKAC while uploading the PDF to Azure. |
Author: | Akshay [ Mon Mar 18, 2019 11:13 am ] |
Post subject: | Re: Invalid PDF file: no trailer found. |
Exactly ! Got the solution. @Thomas Hoevel You just re routed to my solution on stack overflow. |
Author: | Thomas Hoevel [ Mon Mar 18, 2019 4:42 pm ] |
Post subject: | Re: Invalid PDF file: no trailer found. |
Akshay wrote: You just re routed to my solution on stack overflow. I know.Methinks the honorable members of this honorable forum deserve to read in this very thread that this non-issue was resolved and that it was not a problem with PDFsharp. The link was provided not for you, but for anybody else. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |