Hi,
sorry for my english. I had problem with TCPDF. The system doesn't show picture; for resolve this problem i tried for 2 days to change the folder, absolute path etc. but it didn't work. Then i was going to administrator/components/com_chronoforms5/chronoforms/actions/tcpdf/tcpdf/config/tcpdf_config.php and change this rows:
now it works fine and i put logo in the header, but i think that when, in the future, i will make an update, this code will be complitelly delete. My Question is is true or false?
sorry for my english. I had problem with TCPDF. The system doesn't show picture; for resolve this problem i tried for 2 days to change the folder, absolute path etc. but it didn't work. Then i was going to administrator/components/com_chronoforms5/chronoforms/actions/tcpdf/tcpdf/config/tcpdf_config.php and change this rows:
<?php
define ('K_PATH_IMAGES', K_PATH_MAIN.'images/');
/**
* blank image
*/
define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
/**
* page format
*/
define ('PDF_PAGE_FORMAT', 'A4');
/**
* page orientation (P=portrait, L=landscape)
*/
define ('PDF_PAGE_ORIENTATION', 'P');
/**
* document creator
*/
define ('PDF_CREATOR', 'TCPDF');
/**
* document author
*/
$db =& JFactory::getDBO();
$query = "SELECT `logo`, `ragione_sociale`, `via`,`numero`, `cap`, `citta`, `provincia`, `p_iva`, `prefisso_tel`, `tel`, `prefisso_fax`, `fax`, `sito`, `email`, `modalita`, `banca`, `iban`, `iva`, `inarcassa`
FROM `sinc_chronoengine_chronoforms_datatable_dati_azienda`";
$db->setQuery($query);
$a = $db->loadRow();
$intestazione1 = $a[2].",".$a[3]." - ".$a[4]." ".$a[5]." (".$a[6].") P.IVA: ".$a[7];
$intestazione2= "tel: ".$a[8].".".$a[9]." - fax:".$a[10].".".$a[11];
$intestazione3="sito: ".$a[12]." - email: ".$a[13];
define ('PDF_AUTHOR', 'TCPDF');
/**
* header title
*/
define ('PDF_HEADER_TITLE', $intestazione1);
/**
* header description string
*/
define ('PDF_HEADER_STRING', $intestazione2."\n".$intestazione3);
/**
* image logo
*/
$db =& JFactory::getDBO();
$query = "SELECT `logo`
FROM `sinc_chronoengine_chronoforms_datatable_dati_azienda`";
$db->setQuery($query);
$a = $db->loadRow();
define ('PDF_HEADER_LOGO', $a[0]);
/**
* header logo image width [mm]
*/
define ('PDF_HEADER_LOGO_WIDTH', 60);
/**
* document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
*/
define ('PDF_UNIT', 'mm');
/**
* header margin
*/
define ('PDF_MARGIN_HEADER', 5);
/**
?>
now it works fine and i put logo in the header, but i think that when, in the future, i will make an update, this code will be complitelly delete. My Question is is true or false?
Hi esposito84,
This is true - but only if you update the TCPDF action. Updating ChronoForms won't change this file as the action isn’t included as standard.
Bob
This is true - but only if you update the TCPDF action. Updating ChronoForms won't change this file as the action isn’t included as standard.
Bob
thank you very much bob.
This topic is locked and no more replies can be posted.