75
edits
Jawaid imran (talk | contribs) (Reformatted PDF section for easier reading, other sections to follow) |
Jawaid imran (talk | contribs) (Highlight code when in text to make it look different to actual config) |
||
| Line 358: | Line 358: | ||
* '''MAIN_DISABLE_PDF_AUTOUPDATE''' ► Disable automatic generation of PDF each time we add/update/delete a product line (we can still build document by clicking on "Generate"). This option may increase interface speed on servers with low CPU. | * '''MAIN_DISABLE_PDF_AUTOUPDATE''' ► Disable automatic generation of PDF each time we add/update/delete a product line (we can still build document by clicking on "Generate"). This option may increase interface speed on servers with low CPU. | ||
* '''MAIN_USE_BACKGROUND_ON_PDF''' ► Define this constant with short name of an image (example "myimage.jpg") that must be saved into directory "documents/mycompany/logos". This will add this background image into your generated PDF files. Warning: This option make TCPDF library being crazy sometime and content on image disappeared ! | * '''MAIN_USE_BACKGROUND_ON_PDF''' ► Define this constant with short name of an image (example "<code>myimage.jpg</code>") that must be saved into directory "<code>documents/mycompany/logos</code>". This will add this background image into your generated PDF files. Warning: This option make TCPDF library being crazy sometime and content on image disappeared ! | ||
* '''MAIN_ADD_PDF_BACKGROUND''' ► Define this constant with short name of a PDF file (example "mypdf.pdf") that must be saved into directory "documents/mycompany". This will add PDF as a background of some of your generated PDF files (proposals,invoices,orders). If you need to concat PDF, see instead [[Module Concat PDF]]. | * '''MAIN_ADD_PDF_BACKGROUND''' ► Define this constant with short name of a PDF file (example "<code>mypdf.pdf</code>") that must be saved into directory "<code>documents/mycompany</code>". This will add PDF as a background of some of your generated PDF files (proposals,invoices,orders). If you need to concat PDF, see instead [[Module Concat PDF]]. | ||
* '''MAIN_PDF_FORCE_FONT''' ► To ignore font defined into language file and force usage of a particular font. For example "DejaVuSans". | * '''MAIN_PDF_FORCE_FONT''' ► To ignore font defined into language file and force usage of a particular font. For example "<code>DejaVuSans</code>". | ||
* '''MAIN_PDF_FREETEXT_HEIGHT''' ► Change height of space reserved to output the free text. | * '''MAIN_PDF_FREETEXT_HEIGHT''' ► Change height of space reserved to output the free text. | ||
* '''MAIN_PDF_TITLE_BACKGROUND_COLOR''' ► Can define a background color onto title line. Example: | * '''MAIN_PDF_TITLE_BACKGROUND_COLOR''' ► Can define a background color onto title line. Example: <code>220,220,200</code> | ||
* '''MAIN_USE_COMPANY_NAME_OF_CONTACT''' ► Use contact name and information rather than company | * '''MAIN_USE_COMPANY_NAME_OF_CONTACT''' ► Use contact name and information rather than company | ||
* '''MAIN_ODT_AS_PDF''' ► Activate PDF conversion from ODT document. If value is 'jodconverter', java and jodconverter command line tool must be available. If value is '/pathto/jodconverter.jar' | * '''MAIN_ODT_AS_PDF''' ► Activate PDF conversion from ODT document. If value is '<code>jodconverter</code>', java and jodconverter command line tool must be available. If value is '<code>/pathto/jodconverter.jar</code>' then java and the jodconvertar jar must exist. Soffice must also be available. <code>MAIN_DOL_SCRIPTS_ROOT</code> Must also be defined to path where the "scripts" directory is stored (for example <code>/var/www/mydolibarr</code>). | ||
* '''MAIN_ODT_AS_PDF_DEL_SOURCE''' ► For ODT generation. If set, then initial behaviour is conserved but ODT file is removed when option to convert it as PDF (see previous) is on. Disabled by default | * '''MAIN_ODT_AS_PDF_DEL_SOURCE''' ► For ODT generation. If set, then initial behaviour is conserved but ODT file is removed when option to convert it as PDF (see previous) is on. Disabled by default | ||
| Line 380: | Line 380: | ||
* '''MAIN_GENERATE_SUPPLIER_PROPOSAL_WITH_PICTURE''' ► Include the first image of the product into the line of the generated PDF for supplier proposals ► (v5.0.3+) | * '''MAIN_GENERATE_SUPPLIER_PROPOSAL_WITH_PICTURE''' ► Include the first image of the product into the line of the generated PDF for supplier proposals ► (v5.0.3+) | ||
* '''MAIN_DOCUMENTS_LOGO_HEIGHT''' ► Can force height of | * '''MAIN_DOCUMENTS_LOGO_HEIGHT''' ► Can force height of the logo on PDF. | ||
* '''MAIN_DOCUMENTS_WITH_PICTURE_WIDTH''' ► Can change size of picture when hidden option MAIN_GENERATE_PROPOSALS_WITH_PICTURE is used. By default value is 20. | * '''MAIN_DOCUMENTS_WITH_PICTURE_WIDTH''' ► Can change size of picture when hidden option <code>MAIN_GENERATE_PROPOSALS_WITH_PICTURE</code> is used. By default value is <code>20</code>. | ||
* '''MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT_COLUMN''' ► Hide column with VAT information but only column not total. | * '''MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT_COLUMN''' ► Hide column with VAT information but only column not total. | ||
| Line 388: | Line 388: | ||
* '''PDF_SHOW_PROJECT''' ► Show project onto PDF (supported on supplier order only for the moment) | * '''PDF_SHOW_PROJECT''' ► Show project onto PDF (supported on supplier order only for the moment) | ||
* '''PDF_BANK_HIDE_NUMBER_SHOW_ONLY_BICIBAN''' ► Hide bank number ("code banque/guichet/compte" for | * '''PDF_BANK_HIDE_NUMBER_SHOW_ONLY_BICIBAN''' ► Hide bank number ("code banque/guichet/compte" for France, "sort code/account number" for GB, ...) and keep only BIC/IBAN on PDF. | ||
* '''PDF_HIDE_PRODUCT_REF_IN_SUPPLIER_LINES''' ► Value 1 or 2 change the way product ref is show (1 = show supplier ref only and not internal ref, 2 = show supplier then internal). Without, internal ref then supplier is shown. | * '''PDF_HIDE_PRODUCT_REF_IN_SUPPLIER_LINES''' ► Value <code>1</code> or <code>2</code> change the way product ref is show (<code>1</code> = show supplier ref only and not internal ref, <code>2</code> = show supplier then internal). Without, internal ref then supplier is shown. | ||
* '''MAIN_PDF_ADDALSOTARGETDETAILS''' ► Add particular details like the telephone number on generated PDFs. Can be useful in cases where a printed order/invoice etc is given to a delivery driver/courier etc. | * '''MAIN_PDF_ADDALSOTARGETDETAILS''' ► Add particular details like the telephone number on generated PDFs. Can be useful in cases where a printed order/invoice etc is given to a delivery driver/courier etc. | ||
edits