Difference between revisions of "Module Concat PDF"

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
Line 45: Line 45:
  
 
<div class="divforimgcentpercent">
 
<div class="divforimgcentpercent">
[[File:Screen shot concatpdf 2.png|400px]]
+
[[File:Screen shot concatpdf 2.png]]
 
</div>
 
</div>
  
Line 62: Line 62:
  
 
<div class="divforimgcentpercent">
 
<div class="divforimgcentpercent">
[[File:Screen shot concatpdf.png|400px]]
+
[[File:Screen shot concatpdf.png]]
 
</div>
 
</div>
  

Revision as of 09:45, 17 May 2016

Informations

Module name concatpdf
Editor / Editeur NLTechno - www.nltechno.com
Download or buy page / Page achat ou téléchargement External module - www.dolistore.com
Status / Statut / Estado Stable
Prerequisites / Prérequis

Dolibarr min version: See on Dolistore    Dolibarr max version: See on Dolistore

Last update date / Date mise à jour fiche / Fecha última actualización 2016-05-17
Note / Nota

Features

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 (with version 3.7.2 or more of module):

  • Customer proposals
  • Customer orders
  • Customer invoices
  • Supplier proposals
  • Supplier orders
  • Supplier invoices
  • Contracts

Prerequisites

Dolibarr 3.2.0 or more.

The PDF document you want to concat can be any PDF version until 1.4 maximum with Dolibarr 3.2.0 to 3.7.0.

The PDF document you want to concat can be any PDF version until 1.7 with Dolibarr 3.8.0 or more.

Installation

  • 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 because upload from this page has been locked by your web hosting provider, 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 then check that the directory with the nameof the module is inside the /custom directory. If into a subdirectory, just move it into /custom.
  • Module should be ready to be activated and used.

Setup

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 a cog icon appears Cog circle.svg on module thumb or at end of the line of 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.

Screen shot concatpdf 2.png

With Dolibarr 3.4 or higher, check also that option "Protection of generated pdf (Enabling NOT recomanded, disable feature of PDF mass generation)" is disabled into Setup - PDF.

Other options not supported

  • You can add constants and MAIN_USE_JQUERY_MULTISELECT with value select2 and CONCATPDF_MULTIPLE_CONCATENATION_ENABLED 1 in Home - Setup - Other to allow the selection and concatenation of multiple files.
  • You can also add constant CONCATPDF_PRESELECTED_MODELS into Home - Setup - Other if you want to have a particular pdf document preselected into combo box.

Syntax to use is: CONCATPDF_PRESELECTED_MODELS=propal:filename1,filename2;invoice:filename3;order:filename4... Note that filenamex is name of PDF file without ".pdf"

Usage

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.

Screen shot concatpdf.png

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

The 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 team:

Note that the code of all modules developed by DoliCloud team are presents in the same repository (1 sub-directory of htdocs = 1 module). They are all Open Source modules.