hi! i am tushar.
i am trying to insert digital signature in a pdf file using
PHP. i create a digital signature jpg image using
imagecreatefromjpeg() function, but whenever i trying to
insert it into my pdf file it shown this error.
"FPDF error: Not a JPEG file: signature.jpg". could some one
help me? how can i insert a digital signature in a pdf file
using PHP?
Answer / pavunkumar
I have given this example for creating pdf file with image
files. In Image function you need specify the image file name .
<?php
require('fpdf.php');
$pdf=new FPDF();
$pdf->AddPage();
$pdf->Image('signature.jpeg',150,150,30,20);
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output("newfile.pdf","I");
?>
After executing this script , you will be getting the file
called newfile.pdf . Which will have a specified image .
and helloworld world string.
For more information . go through this url
http://www.fpdf.org/
Is This Answer Correct ? | 6 Yes | 4 No |
Php program to generate fibonacci series?
please explain me mail function in php
What is php session_start() and session_destroy() function?
Which is correct about mysqli and pdo?
What are the string function in php?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
How to do single and multi line comment in php?
How to track user logged out or not? When user is idle?
What is difference between session_unset and session_destroy?
Tell me how do I escape data before storing it into the database?
What is laravel php?
What is mysql_fetch_array?