PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
Add Image(binary) into PDF http://forum.pdfsharp.de/viewtopic.php?f=2&t=1553 |
Page 1 of 1 |
Author: | alyka [ Mon Feb 21, 2011 3:16 am ] |
Post subject: | Add Image(binary) into PDF |
Hi all, I am just wondering it is possible to add an image that is in binary format into the output PDF in MigraDoc? For example: All my images are saved into binary format (varbinary(MAX)) in MS SQL database. Therefore I don't have any physical path of the image on the server. The only example on the MigraDoc website regarding to add image is through the image's physical path, e.g. (section.AddImage("../../SomeImage.png");) So my question is that it is possible to add images in "byte array"/"binary" format into the output PDF, without converting it into an actual image file, then save it on the server. Any suggestion on this? Thanks all. William |
Author: | Thomas Hoevel [ Mon Feb 21, 2011 8:48 am ] |
Post subject: | Re: Add Image(binary) into PDF |
Hi! You can use those images with PDFsharp. Someone implemented a routine that uses such images with MigraDoc - the change was published on this forum. |
Author: | alyka [ Mon Feb 21, 2011 9:20 am ] |
Post subject: | Re: Add Image(binary) into PDF |
Hi, Thank you for your reply. Can you please point out the link of that post you have mentioned. I have tried to search the forum with the keyword "Binary image", but it didn't found any useful post Thank you. |
Author: | Thomas Hoevel [ Mon Feb 21, 2011 11:04 am ] |
Post subject: | Re: Add Image(binary) into PDF |
Look at this thread: viewtopic.php?f=2&t=1398&hilit=AddImage Or this: viewtopic.php?f=2&t=1292&hilit=AddImage |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |