Convert JPG to pdf

I am use ionic cordova plugin add cordova-plugin-camera obteing a image jpge but need convert to pdf. ¿How to convert a JPG to PDF?

I assume you must do this by ourself with help of a pdf creation lib… For example with jspdf, which has luckily on the start page an image showing how add an image to a pdf document. look here

Best regards, anna-liebt

Thank you.:stuck_out_tongue_winking_eye:.I’m going to try it

have an example of how to use it ionic

This incorporates signature capture and pdfMake.

The signature captured is a base64 jpeg and goes straight into the pdf.

Thank you. I modified the code and it worked for.

hi there, most of the times i have to face the same issue and due to shortage of time i use they provide wide range of converters you can check it out here i hope that will be beneficial for you.
All the best