Bundled images and scaling ========================== ``POST /pdf/generate/bundle`` accepts an HTML or Markdown request and separate binary image files in one authenticated multipart upload. Templates reference image names; neither the template nor the request JSON needs base64 data URLs. The existing JSON ``/pdf/generate`` endpoint is unchanged. Request format -------------- Send one text field named ``request`` containing the same JSON object documented in :doc:`generate`, and one or more file parts named ``assets``. Each file part's ``filename`` is its logical name, including any relative directories. All names are relative to the bundle root, including URLs in the inline CSS template. Template ``filename`` metadata does not change this root. For example, a local directory can contain: .. code-block:: text request.json assets/ logo.svg portrait.jpg ``request.json``: .. code-block:: json { "html_template": { "content": "Portrait" }, "css_template": { "content": ".logo {width:40mm;height:15mm;object-fit:contain} .portrait {width:35mm;height:45mm;object-fit:cover;object-position:center}" } } Upload with curl after obtaining the usual bearer token: .. code-block:: bash curl --fail-with-body "$INFLUXION_BASE_URL/pdf/generate/bundle" \ -H "Authorization: Bearer $TOKEN" \ -F 'request=