is it possible to create a PDF from an image ?

Feb 15, 2014 at 12:17 PM
Hi,

I found today Magick.net.

In vb.net, I create, with GDI+, bills with texts, graphics and a background image. The results are in an image list (emf format) that I send first on the screen and after validation to a printer. No problem.

Now I wish to create a PDF from bills (one PDF for one bill).
Is it possible to do that with Magick.net ? I see that it is possible to read a PDF and extract images but is it possible to create a PDF from an image ?

Thanks in advance for answers.
Coordinator
Feb 15, 2014 at 5:26 PM
Edited Feb 15, 2014 at 5:56 PM
You can use Magick.NET to create a PDF file from an image. You also need to install Ghostscript for this to work. It is as simple as this:
using (MagickImage image = new MagickImage("Bill.jpg"))
{
  image.Write("Bill.pdf");
}
You can also use Magick.NET to write text / put images on top of a background image.