0

I have integrated signature pad in HTML, CSS and JavaScript from this site and have activated save button to save signature in .png file but now I need to change from .png to .pdf file.

How can I achieve this?

Here are my google drive code files

Ivan
  • 34,531
  • 8
  • 55
  • 100
  • you can use Dompdf PHP library to convert HTML to PDF. like: $html = ""; $dompdf = new Dompdf(); $dompdf->loadHtml($html); $dompdf->render(); $output = $dompdf->output(); – Rajinder May 28 '18 at 11:40
  • sure. check this: https://github.com/dompdf/dompdf – Rajinder May 28 '18 at 11:48
  • hello rajinder i don't want the dompdf. I just want to save my signature in pdf this thing uses composer and i don't want composer in it. I just want to make it simple. – Jack Shukla May 28 '18 at 12:11
  • there is no option for the chat. don't expect the whole code from the community. you have to do some efforts. PHP can't convert the image file into PDF without any library. you have to use one of the library – Rajinder May 30 '18 at 06:54

0 Answers0