PDF Template: print images from field "Attachment Multiple"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ManfredWinter
    Junior Member
    • Dec 2025
    • 7

    #1

    PDF Template: print images from field "Attachment Multiple"

    Hello everyone,

    I'm working on a PDF template to summarize the inquiry that a customer sent to us. One field in this entity is for pictures of the customers product. There are 1-3 pictures from the products. The pictures should be printed with the PDF template in a summarizing document for the customer.

    I tried the "images" field but there is only 1 picture possible.
    That why i tried to use "attachment multiple" in which I could upload several images.

    But in both ways I don't know a possibility how to print all uploaded images to the document.

    I tried it with the following code:

    <p>pictures of the products:</p><p>{{#each cPartPicturesMultiple}} <img src="{{cCPartPicturesMultiple}}" style="width: 80px"> {{/each}}</p>

    But there is not an image printed. I'm looking forward if I could get some help from you guys, thank you.

    Kind regards
    Manfred
  • heint
    Member
    • Jun 2025
    • 57

    #2
    Greetings, ManfredWinter,

    I assume that this link to the same request will be useful for you: https://forum.espocrm.com/forum/gene...ultiple-images.

    Comment

    • ManfredWinter
      Junior Member
      • Dec 2025
      • 7

      #3
      heint thank you very much. that helped for one case on my site!

      I have another case where I only want to print one image (fieldtype "image"). The printed image is way too big: Click image for larger version

Name:	grafik.png
Views:	0
Size:	168.9 KB
ID:	123652

      you can see the screenshot (the grey area) has been cut on the right side. How can I manipulate the size of this printed image? My actual code is:

      picture Screenshot: {{imageTag cRessourceCamera1CameraselectorImageId}}

      kind regards
      Manfred

      Comment


      • victor
        victor commented
        Editing a comment
        {{imageTag cRessourceCamera1CameraselectorImageId width=200 height=200}}

        Your "width" and "height" may be different.
    Working...