Category : pdf

I am trying to generate a PDF document from the below HTML form. But when I enter the "Generate PDF" button it didn’t generate either a PDF document or any errors. If someone can help me with the code it will be a great help for me. HTML code: <!DOCTYPE html> <html> <head> <link rel="stylesheet" ..

Read more

I am creating a DocuSign envelope using the curl PHP method. How can I add a signature field to my pdf document using PHP? $headers = array( ‘Content-Type: application/json’, ‘Authorization: Bearer ‘.$access_token->access_token ); $content_bytes = file_get_contents($_SERVER[‘DOCUMENT_ROOT’] .’/public/demo_documents/’.$docfile); $doc3_b64 = base64_encode($content_bytes); $document = array ( ‘documents’ => array ( 0 => array ( ‘documentBase64’ => $doc3_b64, ..

Read more

I have a code which use to work to generate PDF with the KNP Snappy bundlde with Symfony2. This is what it looks like: $this->container->get(‘knp_snappy.pdf’)->generateFromHtml( $this->templating->render( $twigInclude, array( , ‘htmlFiles’ => $htmlFiles, ‘headlines’ => $headlines, ) ), $folderHistory . ‘/reports/’ . $filename . ‘.pdf’ ); My issue is that, I want to set margins and ..

Read more

I have a problem with generating a PDF file using TCPDF. I want to create a POS receipt on one page only. The problem is I don’t know the height of the document (height depends on the number of the items on the receipt). I am using writeHTML() to create PDF. Is there a way ..

Read more

i’m using laravel version 7.30 and php 7.4 i have an issue with using MPDF, that i get the following error message: ErrorException array_merge(): Expected parameter 2 to be an array, null given http://localhost:8081/sas4/public/super-admin/test here is my test function code: public function test() { $data = [ ‘foo’ => ‘bar’ ]; $pdf = PDF::loadView(‘pdf.document’, $data); ..

Read more

I am trying to Generate PDF for multiple div with Same ID I am fetching Students Name, Subject,Mark from Mysql Table Using PHP <?php $sql="Select Student_Name,Subject,Marks from tbl_result"; $result = mysql_query($sql); $count=1; while ($row = mysql_fetch_array($result)) { ?> <div id="output" class="print-me"> <table> <tr> <p> <?php echo $row[‘Student_Name’] ?> </p> </tr> <tr> <td> <?php echo $count; ..

Read more

I’ve tried several ways to include a PDF file using PHP on Linux, it works normally on Windows, but not on Linux. I have several directories with accents and I need to include PDF files that are inside the directories. I pass the name of the PDF files and include the PDF. My problem is ..

Read more