Hello Everybody,
How to convert a .png image to pdf using PDFTorn?
Thanks & Regards,
Supriya Das.
Hello Everybody,
How to convert a .png image to pdf using PDFTorn?
Thanks & Regards,
Supriya Das.
Hi, you can just call the following
PDFDoc doc = new PDFDoc(); Convert.ToPDF(doc, "path_to_image");
If you need more control over image sizing/placement, see the AddImageTest sample
Thanks Ryan, Basically i have a couple of image i want to create a pdf where each and every page contains different images. can you suggest me how to possible.
Hello Ryan,
Thanks for your reply. Basically i want to like, suppose i have couple of image file then i want to create a document where each and every page should be the individual image. Please suggest me how to do that. Thanks .
You can use ToPDF and it will just keep appending pages to the back of the PDF.
PDFDoc doc = new PDFDoc();
Convert.ToPDF(doc, "path_to_image_1");
Convert.ToPDF(doc, "path_to_image_2");
Convert.ToPDF(doc, "path_to_image_3");
If you need more control over the insertion of the images, see AddImageTest, or ElementBuilderTest