Module Concat PDF
|Editor / Editeur||NLTechno - www.nltechno.com|
|Download or buy page / Page achat ou téléchargement||www.dolistore.com|
|Status / Statut / Estado||Stable|
|Prerequisites / Prérequis||Dolibarr min version 8.0.0|
|Last update date / Date mise à jour fiche / Fecha última actualización||2020-01-29|
|Note / Nota|
Allow to merge some PDF documents to the generated PDF files. For examle, to add your conditions and terms into the PDF of an order, or to add a catalog of product into commercial proposals PDFs.
Objects that are supported:
- Customer proposals
- Customer orders
- Customer invoices
- Supplier proposals
- Supplier orders
- Supplier invoices
The PDF document you want to concat can be any PDF version until 1.7.
- Download archive file of module (.zip file) from web site www.dolistore.com or from any other source.
- Install module into the custom folder of Dolibarr:
- Go to Home - Setup - Modules - Deploy/install external app/module
- Upload the file. Note: If it fails, you can manually unzip the file into the custom directory from command line: Go into the *custom* directory and uncompress file with command unzip modulefile.zip
- Module is ready to be activated and used.
To use this module, you must first enable it using an administrator account, via the menu option "Home - Setup - Modules".
Choose the tab where the module is listed. Then click on "Activate".
The module is now activated.
If an icon appears at end of the line for the module, click on it to access the setup page specific to the module.
Setup page specific to module:
Into the setup page dedicated to module, you will see name of directory where to store you PDF to concat. You will also have an upload form to upload from this screen the PDF you want to include into generated documents.
Check also that option "Protection of generated pdf (Enabling NOT recomanded, disable feature of PDF mass generation)" is disabled into Setup - PDF.
- You can also enable the option to concat several files in the setup page of module.
- You can also add constant CONCATPDF_PRESELECTED_MODELS into Home - Setup - Other if you want to have a particular pdf document preselected by default into combo box.
Syntax to use is: CONCATPDF_PRESELECTED_MODELS=proposal:filename1,filename2;...;supplier_order:filename4...
Note that filenamex is name of PDF file without ".pdf". Note also that keyword to use is :
proposal for proposals order for orders invoice for invoices supplier_proposal for proposals supplier_order for orders supplier_invoice for invoices
If you made previous step, you see a new combo list into page of element (invoice, proposal or order) with all submitted PDF documents to merge.
Before clicking on button "Generate" to build a PDF document, select your static PDF file to add. Addition is done at the end of the new generated PDF.
Development of this module is not included inside the standard GIT repository of Dolibarr but inside a repository dedicated to modules not supported by the Dolibarr development team but supported by DoliCloud on platform Git by Framasoft:
- GIT Repository: git clone https://git.framasoft.org/eldy/dolimods.git
Note this is a private repository, so to contribute and/or get sources, you must create an account on https://git.framasoft.org web site.