TCPDF
TCPDF copied to clipboard
Official clone of PHP library to generate PDF documents and barcodes
The method **_putxobjects** calculate the stream length: ``` 1 - $stream = $this->_getrawstream($stream, $data['n']); 2 - $out .= ' /Length '.strlen($stream); 3 - $out .= ' >>'; 4 - $out...
There is a bug where $this->getNumPages() only returns current page number. It works fine in footer, but in header it's buggy.
I knew that TCPDF can attach file to pdf document from this example: [041](https://tcpdf.org/examples/example_041/) But I'm curious about how to get the attached file by using php or does it...
I am trying to implement a protected PDF to our SAAS application. I would like to assign the users MD5 hashed password so it matches their login password. Is there...
I've compared two SVG images: one created using the element (31kB) and the other using and elements (76kB). I don't understand why the SVG image created with is larger (19kB)...
I am using [TCPDF](https://github.com/tecnickcom/TCPDF/tags) latest version (6.7.5) to export PDF documents. In the document there are some Japanese kanji characters that cannot be displayed, but other characters is OK. I...
Looking at the source, it looks like this. ``` PHP if (is_array($style) AND !empty($style)) { // apply border style $prev_style = $this->linestyleWidth.' '.$this->linestyleCap.' '.$this->linestyleJoin.' '.$this->linestyleDash.' '.$this->DrawColor.' '; $s .= $this->setLineStyle($style,...
When use the command $pdf->Output($filename, 'I'); The pdf always opens in the same tab. Need an option to open it in a new tab or window.
The `xml_set_object()` function will be deprecated in PHP 8.4 as well as passing non-callable strings to the `xml_set_*_handler()` functions. Instead of using `xml_set_object()`, the string method names in `xml_set_element_handler()` and...
i have use Arialuni.ttf file  my code is------------ ---------------------------------------------- if (@file_exists(dirname(__FILE__).'/lang/ind.php')) { require_once(dirname(__FILE__).'/lang/ind.php'); // $lg = Array(); // $lg['a_meta_charset'] = 'UTF-8'; // $lg['a_meta_dir'] = 'ltr'; // $lg['a_meta_language'] = 'hi';...