Questions tagged as 'tcpdf'

1
answer

Problem with tcpdf - Import an image

I am creating a pdf from html require_once('tcpdf/tcpdf.php'); ..... $content .='img src="/img.png" width="50" height="50">' $obj_pdf->writeHTML($content,true, 0, true, 0); $obj_pdf->Output('sample.pdf', 'I'); But this error...
asked by 09.08.2018 / 21:31
1
answer

How can I add a header that is repeated in all the pages?

As my question says, I use the tcpdf library and here I leave the code: <?php require_once('tcpdf/config/lang/eng.php'); require_once('tcpdf/tcpdf.php'); require_once('../config.php'); $pdf = new TCPDF('P', 'mm', 'legal', tr...
asked by 07.06.2018 / 07:00
0
answers

Take values of a tbody and send to print

This is where you take the data and place it in tbody , what I want is to send to print taking the temporary data that you put in the tbody . I do not want to right click and print because I plan to make a template with a logo. Ex...
asked by 03.01.2019 / 13:39
0
answers

Problem with TCPDF "TCPDF ERROR: Some data has already been output, can not send PDF file"

At the moment of changing the local server, the webapp stopped working correctly with the TCPDF and throws the error mentioned above, the environment is the same, xampp in windows and the chrome browser. I leave the code in case someone can help...
asked by 19.11.2018 / 18:10
0
answers

Convert XML file to PDF using the TCPDF library in PHP

Friends I have a question, how could I generate a PDF file from an XML file using PHP? Will someone have an example of how to carry it out?     
asked by 14.11.2018 / 01:21
1
answer

library error: tcpdf Some data has already been output, can not send PDF file

I'm having an error in my code <?php require_once "../../controllers/gestorsuscriptores.php"; require_once "../../models/gestorsuscriptores.php"; require_once('tcpdf_include.php'); $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAG...
asked by 20.08.2018 / 21:59
2
answers

Draw dynamic table in php

I have the following array $arreglo=[1,2,3,4,5..50] I want to show them in a table, but that the table is of 10 columns type like this: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 etc... The number of rows depends on th...
asked by 06.06.2018 / 07:25