Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

How do I enable compress (I see the code supports it) #22

Open
dhcmega opened this issue Jan 5, 2021 · 0 comments
Open

How do I enable compress (I see the code supports it) #22

dhcmega opened this issue Jan 5, 2021 · 0 comments

Comments

@dhcmega
Copy link

dhcmega commented Jan 5, 2021

Hi!
I see that tcpdi.php has this code, that allows for a compress flag. How do I enable compression?
Thanks!

    /**
     * Private Method that writes the form xobjects
     */
    function _putformxobjects() {
        $filter=($this->compress) ? '/Filter /FlateDecode ' : '';
	    reset($this->tpls);
        foreach($this->tpls AS $tplidx => $tpl) {
            $p=($this->compress) ? gzcompress($tpl['buffer']) : $tpl['buffer'];
    		$this->_newobj();
    		$cN = $this->n; // TCPDF/Protection: rem current "n"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant