docMaker User guide
  • 👋Welcome to docMaker
  • Features
    • Create pdf from docx template
      • 🏗️Build your docx template
        • Overview
        • Text substitution
        • Images
        • Conditions
        • Loops
          • Simple list
          • List with multiple values
          • Adding rows into a table
          • Loops in columns + lines (grids)
          • Nested loops
        • QR codes
        • Rich text & html
      • ⚙️docx_fill_convert API parameters
    • Fill-out pdf forms
      • 🔧Build your pdf form
      • ⚙️pdf_fill API parameters
    • Print web page to pdf
      • ⚙️page_pdf API parameters
  • INTEGRATIONS
    • Typeform
      • Create pdf or docx for each Typeform response
    • Bubble.io
      • 📝Easy pdf from docx template
      • 📋Fill-out pdf forms
      • 🖥️Webpage to pdf
    • Make.com
    • Coda
    • Xano
    • Zapier
    • API
  • FAQ
    • 🫧Bubble.io questions
    • 📄Questions on docx templates
    • 📙Questions on pdf templates
Powered by GitBook
On this page
  1. Features
  2. Create pdf from docx template
  3. Build your docx template

Images

PreviousText substitutionNextConditions

Last updated 1 year ago

You can insert .png and .jpeg images into your document, and you can adjust images width :

  • either glogally with the “forceWidth” parameter in the body of your JSON. Example : "forceWidth" : 200, will apply a 200 pixels width to all the images in your document (height will adjust automatically)

  • or individually for any individual image, by sending a “.setImageWidth” parameter in your data (see example below)

In order to insert an image into your document, you have to send the image URL in your data

You can also set the image width (in pixels) by adding a .setImageWidth parameter, as shown below:

Data

{
  "flower": "https://cdn.pixabay.com/photo/2019/12/15/11/22/flowers-4696878_960_720.jpg",
  "flower.setImageWidth": 200
}

In the template, an image tag is like a substitution tag, but with an additional “%” sign:

Template

Result

{%flower}

🏗️
➡️