Converting Byte Array to PDf and show the same PDF in page

Posted by Jkarthik86 under ASP.NET on 8/14/2012 | Points: 10 | Views : 15948 | Status : [Member] | Replies : 4
Hi All,

How to Convert Byte Array to PDF and show the same PDF inside a div.

Is it possible.

Thanks
Karthikeyan




Responses

Posted by: Gopesh9 on: 8/14/2012 [Member] Starter | Points: 25

Up
0
Down
At first Create a file using Byte Array...

Where newPath is the path where your file is residing....
if (!System.IO.File.Exists(newPath))

{
FileStream fs = new FileStream(newPath, FileMode.Create, FileAccess.Write);
fs.Write(fileContent, 0, fileContent.Length);
fs.Close();
}


Now after creating the file you can convert that file to PDF using....

http://www.dotnetfunda.com/codes/code2991-pdf-creation.aspx

G. S.
.Net Developer

Jkarthik86, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: San.Pblr.Gct on: 8/14/2012 [Member] Starter | Points: 25

Up
0
Down
Check this.
http://www.c-sharpcorner.com/UploadFile/1a81c5/convert-file-to-byte-array-and-byte-array-to-files/

Jkarthik86, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Poisy on: 7/30/2013 [Member] Starter | Points: 25

Up
0
Down
I do this almost daily. I use a PDF converter driver found on the internet . Install it and it becomes a selectable converter option.Then you can convert PDFs to many forms in any program at all, including Adobe Acrobat . Just open a PDF, select convert, and choice a form you want, the task will be finished in several seconds. if you haven't found a good choice , you can have a try. best wishes.http://www.rasteredge.com/how-to/csharp-imaging/pdf-converting/

Jkarthik86, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ssj_Kumar on: 7/31/2013 [Member] Starter | Points: 25

Up
0
Down
below link will help you to solve the problem

http://atashbahar.com/post/Converting-Multipage-TIFF-image-to-PDF.aspx
http://www.codeproject.com/Questions/203627/Convert-a-byte-array-to-pdf-in-c
http://social.msdn.microsoft.com/Forums/en-US/6810a67f-66d9-4ce4-87e5-06dbbb754730/how-to-convert-byte-array-into-pdf-using-cnet

if you plan to use third party tool try with
iTextSharp or ABCPDF

Regards,
Jayakumar Selvakani

Jkarthik86, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response