Jump to content

Recommended Posts

Posted

Hello

regarding this thread http://www.blesta.com/forums/index.php?/topic/3001-core-1173-reduce-file-size-of-invoice-pdf-documents/ and for the http://dev.blesta.com/browse/CORE-1173 , i have beore tried to update the tcpdf and it was successfully , i have changed dejavu font to another unicode font , in my case "aefurat" , and the size reduced dramaticly from ~650kb to less than 100kb . i have tested almost all the unicode caracter and acented letter and it showing correctly in pdf .

so i suggest the new version 6.2.6 , because it have a new fonts and new feature .

Posted

i have checked now the tcpdf folder in my blesta installation , and i found 3 directory (tcpdf1/tcpdf2/tcpdf3) that i have played with them , so i dont remember what change/modification i have made to make it work .....

but what i'm sure , i have PDF fle with unicode letters in a pdf less than 100kb .

Posted

i have already tested with background and it working , also the logo working , i have the invoice weel showed in pdf and size is less than 100kb , in some i have just 44kb . but i will try from the bigin again and i will found all the change , what i sure i have a change in tcpdf_wrapper .

Posted

i have found some sign and let go now with what i have changed .

 

in tcpdf_wrapper , found

$orig_cell_padding = $this->cMargin;

changed to

$orig_cell_padding = 0 ;

in default_invoice_pdf.php

 

found

$this->AliasNbPages("{P}");

change to

//$this->AliasNbPages("{P}");

 that was all at the moment , can you try Paul .

 

in my other test server , i have found that i have just uploaded the new font files and is working .

 

EDIT : i have found a text file , that i ahev write in it some probleme , 

 

the  header and footer can use a custom font , so it should also set the header font and the footer font .

in case of multiple pages , is notshowing page 1 of X , but it show page 1 of 1 in all page .

Posted

for the page numbring is not a bug or issue, i have misunderstand the issue .

 

when sending multipleinvoice via email , normally every invoice is a single file , even if is all in 1 pdf doc .

 

i have almost finich searching the files, i think the change above is the only change i have made :)

 

so i think is time to update the tcpdf class .

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...