Generate many pdfs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Russ
    Senior Member
    • Feb 2022
    • 423

    Generate many pdfs

    Hi!
    What would be the easiest way to generate a lot of pdf documents (or even one to start with) based on existing contact details and a template?


    For example, template could have:
    To: $personFirstName
    Address:$addressStreet
    ...
    other text goes here
    ...

    Just like we are using email templates, something similar to be able to print or store pdf, it could be done with a report and a workflow or by press of a button on the record


    Any ideas?

    Thanks a lot!
  • yuri
    Member
    • Mar 2014
    • 8453

    #2
    Hi Russ,

    With DOMPDF engine, when printing PDFs from the list view, it generates multiple PDF files and pack them in ZIP.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • rabii
      Active Community Member
      • Jun 2016
      • 1250

      #3
      Originally posted by Russ
      Hi!
      What would be the easiest way to generate a lot of pdf documents (or even one to start with) based on existing contact details and a template?


      For example, template could have:
      To: $personFirstName
      Address:$addressStreet
      ...
      other text goes here
      ...

      Just like we are using email templates, something similar to be able to print or store pdf, it could be done with a report and a workflow or by press of a button on the record


      Any ideas?

      Thanks a lot!
      Using formula you can generate a pdf based on given template id, see https://docs.espocrm.com/administrat...extpdfgenerate
      Rabii
      Web Dev

      Comment

      • Russ
        Senior Member
        • Feb 2022
        • 423

        #4
        thanks a lot, I will investigate further

        Comment

        • Russ
          Senior Member
          • Feb 2022
          • 423

          #5
          Thanks it works!
          However I still can't generate a mass pdfs, It allows me to generate 1 or 2, but 3 and more is not working. Nothing in logs
          Forum does not allows me to upload a video (10 seconds)..here is a link to s3
          Last edited by Russ; 09-01-2023, 06:26 PM. Reason: typo

          Comment

          • yuri
            Member
            • Mar 2014
            • 8453

            #6
            Maybe memory exhausted. How much size a single PDF has?
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            • Russ
              Senior Member
              • Feb 2022
              • 423

              #7
              Originally posted by yuri
              Maybe memory exhausted. How much size a single PDF has?
              115 KB per each one, logs are empty, console too

              Comment

              Working...