Sharepoint pdf there was an error opening this document




















Its not a code problem. Use Foxit Reader and it will open it. I don't think the error is in your code for downloading the document. I believe the error is happening because of how the document is originally stored in the database.

Make sure you aren't using the GetBuffer method when writing the file to the database. Try using ToArray instead and it will not append extra characters to the end of your file stream. You can also confirm this by checking the size of the document vs. This is an old post, but it helped me solve my similar problem, so I'm adding my findings to this post in the hopes that it helps someone else.

I encountered this problem as well. The problem was extra characters after the EOF that were getting added after my document was being displayed. Looking at maniac's code, I see the same issue in his code that was causing the problem in my code. There was a Response. End that both maniac and I had commented out because it was giving a Threading.

That Response. End is required, or else extra content will be appended to the bottom of the PDF file, causing it to be corrupted on retrieval from the database.

As a side-note, I had tried replacing my Response. End with a HttpContext. CompleteRequest , but that was not sufficient to avoid appending the extra content to the PDF.

The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Web Forms. Sign in to vote. Wednesday, March 7, AM. User posted We need to check your code in order to track it. User posted HC: Sorry for not replying sooner. Answered by:. Archived Forums. Forefront Online Protection for Exchange. Sign in to vote. Wednesday, January 12, PM. Hi, Could you open a ticket on this.

Friday, February 18, PM. Hi, Could you provide a little more info: Are you downloading a file from quarantine, or an encrypted message? Does this only happen to PDF files? If you look in the Trace tool in Admin Center, what does the disposition of the message show? Looks like when I open or download the file I get the error from Adobe Reader: "There was a error opening this document.

The file is damaged and could not be repaired" Word documents are fine in the same e-mails Wednesday, February 16, PM. I cannot find any instructions, except one below, completely useless in my case The maximum file size is 47 MB. Valid file types are: 8bf, abf, abr, act, aep, afm, ai, arw, as, ase, avi, bmp, book, cel, cfc, chproj, cptx, cr2, cr3, crf, crw, css, csv, dn, dng, doc, docx, eps, epub, exif, fbx, fla, flac, flv, fm, gif, icma, icml, ico, ics, idml, indd, jpeg, jpg, jsfl, json, log, loss, lrcat, lrtemplate, m4a, mif, mov, mp3, mp4, mpg, nef, nrw, obj, odt, orf, otc, otf, pdf, pfb, pfm, pmd, png, ppj, ppt, pptx, prc, prel, prproj, ps, psb, psd, raf, raw, rtf, sbs, sbsar, sbsm, scc, ses, sesx, skp, sol, srt, srw, ssa, stl, svg, swf, tif, ttc, ttf, txt, wav, wmv, x3f, xd, xls, xlsx, xml, xmp.

Are you sure you want to proceed?



0コメント

  • 1000 / 1000