Add a comment. Active Oldest Votes. Improve this answer. Vinod Vinod 11 2 2 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
Email Required, but never shown. The Overflow Blog. Have you tried debugging your code and found the line of code on which getting exception??? If you are using IPDF sharp and getting exception while your code tried to pick the template, than you should check the template PDF file by opening. It might have been gone corrupted and hence causing this issue to occur.
So replacing it would be solving your problem. Member Dec am. The same code is running fine in console application when I am reading the data from a FileStream object as given below. Files[0], FileMode. I am really going nuts..!! The PDF file is not corrupted as the same file is getting processed very well in console application with the code shown above in the second place.
Member Apr am. This isn't a solution, you have just found the cause. I solution would be to to first test the PDF to see if it was corrupt, then call this line. PdfReader source ;. Add your solution here. OK Paste as. September 15, Reply to Jakob Schade.
MemoryNotFound memorynotfound. April 9, Reply to Rafa. Aiden Tumwesigye. May 29, January 23, Would love your thoughts, please comment. Learn more. Asked 1 year, 3 months ago. Active 1 year, 3 months ago. Viewed times. An error PDF header signature not found is being returned which I am unable to remove. Improve this question. Add a comment.
Active Oldest Votes.
0コメント