Free Support Forum - aspose.com

Converting JPEG to PDF

Hi, do you have any C# REST code samples for converting a JPEG image to a PDF document?

Thanks.

–saul

Hi Saul,

You can use the example from http://saaspose.com/docs/display/pdf/Create+Empty+PDF+from+HTML+%28.NET+REST%29

All you need to do is replace 'html' with 'jpeg' e.g. http://api.saaspose.com/v1.0/pdf/outPdfFile.pdf?templateFile=input.jpg&templateType=jpeg

Best Regards,
Muhammad Ijaz

Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Hi Muhammad,

Thank you.

--saul