Images
In short
An image is an object of its own with a box (width × height) and an image source. The source is either a fixed image from the image library, such as your logo, or an image from the data, such as the photo of a line item. The image is fitted into the box, can be cropped to a shape and rotated, and with “Except when” it changes depending on the data. Only PNG, JPEG and BMP are printed. What applies equally to all objects, such as Positioning behavior, Visibility and Arrangement, is described on pages of its own; this page explains what is different for the image.
What an image is
An image consists of a box and a source. The box has a width and a height and sits at a place on the page or in a group. The source says which image is printed in it:
- A fixed image is always the same image from the image library, such as your logo or a stamp. It looks the same in every document.
- An image from the data is stored in the record: a different one for each invoice, line item or contact. It comes from an image field, a file field or a text field in which the image is stored as text.
The image is fitted into the box and can be cropped to a shape and rotated. With “Except when” an image prints a different one depending on the data; the first rule that applies wins. An image can also appear in the middle of a text (see The “Edit text” window: An image in the middle of the text). An image is never split (see At the page edge).
Inserting an image
An image only comes into being once you have chosen a source. A click on the button “Image” and dragging the button both first open the window “Where does the image come from?” (see Where the image comes from). If you cancel there, nothing is created.
| Way | What happens |
|---|---|
| Ribbon, section “Elements”: click “Image” | Opens the image choice. After the choice the image is created and selected. Where it goes is explained under Where a click puts the image. |
| Drag the button “Image” onto the page | When you release, the same image choice opens; after the choice the image lies at the drop position. Whether it goes into a group or is created as an object of its own on the page depends on what you release over (see Groups: Which area of the group counts). Where a dragged object goes otherwise and how the blue insertion line works is explained in The ribbon: Dropping by dragging and Working on the canvas: The insertion line. |
| Group designer and column designer: button “Image” in the ribbon of the window | Works like the button in the ribbon of the document and puts the image into the group or cell you are currently editing. If an object is selected there, the image goes into the same group as that object, and for a selected subgroup into that one (position as under Where a click puts the image). You can also drag the button onto the area of the window; then the image lies at the mouse position. |
| Drag an image field or file field from the area “Data” | The field becomes an image, not text. You can drag onto the page, into a group or into a cell; details are under Images from the data. |
| Window “Choose columns”: checkbox at an image or file field | The field becomes an image column of the table, see Images from the data. |
| Window “Edit text”: button “🖼 Image” | Places an image in the middle of the text, see The “Edit text” window: An image in the middle of the text. |
| Right-click on a grid cell: “🖼 Content: Image” | Only in older templates with a grid, see Image in a grid cell. |
Inserting a fixed image, such as the logo
- In the ribbon, in the section “Elements”, click “Image”. The window “Where does the image come from?” opens.
- Click “Fixed image”. The image library shows all stored images as tiles with their short names. If your logo is not there yet, upload it with “Upload new image” (see Image library and fonts: Uploading a new image).
- Click the tile of the image you want. The window closes. The image lies on the page or in the group and is selected; on the right “Image source” shows the short name.
- Adjust size and position: drag the handles of the image, or enter “Width”, “Height”, “X (mm)” and “Y (mm)” on the right (see The properties of an image).
Inserting an image from the data, such as a photo
- In the ribbon click “Image”, and in the window “Where does the image come from?” click “From the data”. The window “Image from the data” shows the data tree with the fields of the type image, file and text.
- Click the image field, such as an image field of the main record or the photo of the related contact. For an image field a small window asks about the quality.
- Choose “Large image (recommended)” for a sharp image or “Small preview” if speed matters, for example with many images in a table. The image is created. On the canvas there is a sample image or a blue placeholder, and “Image source” shows the field path.
- Check the result in the full preview (see Full preview and PDF). Each record shows its own image. If a record has none, “If there is no image” decides what appears at that spot.
For a separate photo per line item, the image belongs in a table row, for example through “Choose columns” (see Ways in tables, groups and cells). On the page, a field from the line items gives only the image of the first line item.
Where a click puts the image
A click on “Image” puts the new image in the same places as a click on “Text” or a shape; which containers apply in which order and which gaps and messages go with it is explained under The ribbon: Where a click inserts. Unlike “Text”, the image choice opens first. The new image is then selected, and its properties are on the right.
What a new image starts with
The size of the box depends on the way the image is created. The table gives it for each way; the positioning behavior appears there only as a value, because what it does is explained under Positioning behavior: What a new object starts with.
| Way | Size of the box | “Positioning behavior” |
|---|---|---|
| Button “Image” in the ribbon, by click or dragging, also in the ribbon of the group designer and the column designer | 35 × 14 mm | “Flowing on contact” |
| Drag an image field or file field onto the page or onto a group, also onto a group inside a group or in a table cell | 35 × 14 mm, not the 20 × 15 mm of the table column | “Flowing on contact” |
| Drag an image field or file field into a table cell: onto a data column, also one without a cell designer, into a cell designer (data cell or header cell) and into a cell of an extra row or a free-form table | up to 20 × 15 mm (aspect ratio 4:3), never wider than the column minus 3 mm | “Fixed position” |
| Image column from “Choose columns”: checkbox at an image or file field | 20 × 15 mm (aspect ratio 4:3), never wider than the column width minus 3 mm; the height is rounded to whole millimeters | “Fixed position”, at the top left of the cell |
| Right-click on a grid cell: “🖼 Content: Image” (older templates only) | 20 × 12 mm | –; the grid cell has no field for it, see Image in a grid cell |
| Drag an image field onto an empty grid cell (older templates only) | up to 20 × 15 mm, never wider than the drawn cell minus 3 mm | – |
The other image settings start with the defaults from the table under The image settings at a glance. The source is the one you chose in the image choice; for an image field the quality is the answer to the quality question, and without an entry original quality (see Quality). How objects get into a group and out again is explained in Groups: Objects in and out.
Where the image comes from: the image choice
The image choice is a single window with several stages: first the question where the image comes from, then the data tree or the image library. It opens with “Image” in the ribbon (click and drag), with “Choose image…” in the properties and in the window “Except when — which image when?”, and with “🖼 Image” in the text editor. You can resize it by dragging its edges. Esc and a click beside the window close it like “Cancel”.
After the choice the new source replaces the old one. All other settings of the image are kept: fit, position, shape, preview on the canvas, “If there is no image” and the rules.
Stage 1: Where does the image come from?
The window carries the line “Two options — both can be changed later.” It appears only if the image has no source yet: for a new image, an image in text, a rule without an image and a data image without a path. If you change an existing image, the window jumps straight to the branch of the previous kind: for a fixed image to the image library, for a data image to the data tree.
| Button | What it does |
|---|---|
| “From the data” | Opens the data tree. The button explains itself: “The image is stored in the record — a different one for each invoice, line or contact. You choose the field from the data tree.” |
| “Fixed image” | Opens the image library. The button explains itself: “Always the same image, such as a logo or a stamp. From the image library — you can also upload a new one there.” |
| “Cancel” | Closes the window. Nothing is created or changed. |
| “◀ Back” (in the data tree and in the image library) | Goes back to the question. This is how you change the kind of an existing image, from fixed to data or the other way around. |
Stage 2: Image from the data
The window “Image from the data” carries the line “Image fields, file fields and text fields — a text field can hold an image as text. If nothing is stored there, the spot in the document stays empty.” It shows the data tree (how it is built is explained in Data tree and field picker: The data tree) with the search field “🔍 Search fields & relationships…”.
- 1The search field expands matches by itself.
- 2“Rechnungsnummer” with the badge “Abc”: a text field. It prints only if an image is stored in it as text.
- 3“Produktfoto” with the badge “Image”: an image field, so an image column in Dynamics. After the click a small window asks about the quality.
- 4“Datenblatt” with the badge “File”: a file field. The image is chosen immediately, the quality question does not apply.
- 5“◀ Back” goes back to the question “Where does the image come from?” There is no “Cancel” button at this stage.
- The tree starts collapsed and shows only fields of the type image, file and text, recognizable by the badges “Image”, “File” and “Abc” (see Data tree and field picker: What the badges and additions mean). System variables are missing. Rules are offered, because an image can also be behind a rule. Of their calculated fields only the variables of the type text appear there; sums, counts, amounts and dates are missing. If the rule summarizes, only image, file and text fields appear among the attributes.
- A field from a list, such as the line items, is related to the first row of the list. If the image itself is in a row of exactly this list, for example in the cell designer of the line items table, the designer takes the image of the respective row instead. This also applies if “First value” appears on the right of the field, regardless of whether you choose the field under the relationship of the list or under the rule the table is based on. The designer reports it: “In a row of this table, »first(Positionen.foto)« would stay empty — the image of the row is therefore inserted instead: foto.” (see The relation to the row).
- If you have zoomed into a cell or group that is in a row, the row appears as the category “Per row · …” with the name of the row. The image is then bound to this row (see The relation to the row). The same applies to “🖼 Image” in the text editor if the text is in a row, even if you edit it from the page, for example through the structure, and likewise to “Choose image…” of an image and to the image of an image rule if the image is in a row, even when selected from the page. If you drag the tile “Image” from the ribbon, the row of the place where you release applies. If a table is selected, a new image lands next to it and not in its row; its row then does not appear.
- A click on a field chooses it. What happens next depends on the kind of field: for an image field the quality question follows (see Quality); for a file field and for everything else, that is text, the value of a rule or a variable, the image is chosen immediately, without a question. The table under The three kinds compares the kinds.
- At this stage there is no button “Cancel”, only “◀ Back”. Esc and a click beside the window also close it.
- If an image field has no stored table, the warning “No table is stored for this image field — the large image then cannot be loaded later. Please expand the relationship in the data tree once.” appears. Only the small preview image is then printed. This warning does not appear for a file field.
- If you switch an existing image to a text field, the designer forgets the details of the previous image field, including the quality.
The image library and uploading
The image library from which you choose a fixed image is described in Image library and fonts: The image library. The form for uploading a new image with its fields, the suggestion for the short name and the check messages is under Image library and fonts: Uploading a new image.
The properties of an image
If you click an image, its properties are on the right under the label “Image”. How the properties window is built and what the small ⓘ next to the labels does is explained under The properties window. For the image there are three variants:
- Image in a group or table cell (group designer, column designer): all fields are one below the other, without tabs.
- Image directly in the document: two tabs. Under “General” are the heading “Content” with the image fields and below it the heading “Visibility” with the visibility rules. Under “Position & size” are the positioning behavior (with move along and arrangement), a note about the page break, the heading “Position & size” with position, size and rotation, and a note sentence. The tab chosen last stays selected when the window is redrawn.
- Image in a grid cell (older templates only): the window “Grid cell” with fewer fields, see Image in a grid cell.
The title row shows only the object type “Image”; there is no name or label to edit. How the object is named in the structure is explained under Working on the canvas: The structure.
For an image in a group, “⬆ Take out of group” is at the top; it lifts the image up one level (see Working on the canvas: Moving, snapping, attaching and detaching). In a table cell and directly in the document it is missing. How objects get into a group and out again is explained in Groups: Objects in and out.
The image settings at a glance
The fields under the heading “Content” are the same in all three variants. In the grid cell, instead of the heading there is the locked field “Content” with the word “Image”.
- 1Image source: shows where the image comes from. It is changed only through “Choose image…”.
- 2Quality: original quality or small preview image.
- 3Fit: fit, fill or original size.
- 4Position in frame: selectable only with “fit”.
- 5Shape: crops the image, for example to a circle.
- 6If there is no image: what is printed when the record has no image.
| Setting | What it does | Default |
|---|---|---|
| “Image source” with “Choose image…” | Shows where the image comes from and opens the image choice. See Image source. | the source from the image choice |
| “Quality” | How sharp an image from an image field is printed. Only for an image field. See Quality. | Original quality (recommended) |
| “Fit” | How the image fits into its box: entirely inside, filling the box, or at original size. See Fit. | fit |
| “Position in frame” | Where the fitted image sits in the free strip of its box. Selectable only with “fit”. See Position in frame. | center |
| “Shape” | Crops the image to a shape, such as a circle. See Shape. | none (rectangular) |
| “Show image on the canvas” | Shows a real sample image on the canvas or only a blue placeholder. Only for images from the data. See Show image on the canvas. | on |
| “If there is no image” | What happens when the record has no image. Only for images from the data. See If there is no image. | print nothing |
| “Except when” | Prints a different image depending on the data. See A different image depending on a condition. | no rule |
Image source and Choose image…
The “Image source” is a display field; you cannot type anything there. Next to the label is ⓘ. The field shows in one line where the image comes from:
- For a fixed image the short name appears. If it has none yet, “(no image)” appears there.
- For an image field the field path appears without the curly braces, with the addition “(low quality)” for small quality.
- For a file field “File:” and the path appear, for a text field with image data “Text:” and the path.
- A field from a list appears as “first(…)”. If the image is in a table row of this list, the field shows the path within the row, such as “foto” or “productid.entityimage”. If the image is in a list below the row, such as the batches of a line item, “first(Chargen.foto)” appears there (see The relation to the row).
- “(no image chosen)” appears only if no text results at all.
Long texts are shortened with …; the mouse pointer shows the full text. You change the source only through the button “Choose image…” next to it. It opens the image choice. If the image already has a source, the window jumps straight to the matching branch; without a source the question “Where does the image come from?” appears first (see Where the image comes from). Whether fields are offered per row depends on where the image is: if it is in a row, the choice refers to this row, whether you have zoomed in or selected the image from the page, for example through the structure.
Quality
The selection list “Quality” (with ⓘ) appears only for an image field, that is an image column from Dynamics. For a fixed image, a file field and a text field it does not exist: a file column has no preview image, and each image is fetched individually there.
The quality question: If you choose an image field, a second small window asks about the quality. It appears in the image choice, when you drag an image field onto the page, into a group or into a cell, and when you check an image field as a column. The title begins with “Quality for …” and then names the field; for several image columns the number appears there, for example “3 image columns”. The note in the window says: “Dynamics also stores a small preview for every image. It comes along when the data is loaded — the large image has to be loaded separately.”
If you choose an image field in the image choice, the designer closes the previous window first so that no windows pile up. “Cancel” then does not lead back to the data tree but ends the choice; you start again with “Image” or “Choose image…”. If, on the other hand, you check image fields in the window “Choose columns”, that window stays open behind the question, and “Cancel” leads back to it. For all checked image fields the question comes only once; for a file field it never comes.
The same choice is named differently depending on the place (for the window “Image in text” see The “Edit text” window: The “Image in text” window):
| In the properties, field “Quality” | In the quality question | In the window “Image in text”, field “Image quality” | What happens |
|---|---|---|---|
| “Original quality (recommended)” (default) | “Large image (recommended)”: “Sharp in print. Takes a little longer to load.” | “Original — sharp, costs time and file size” | The large image is fetched individually for each record. This takes longer but is clearly sharper in print. |
| “low quality (144 pixels)” | “Small preview”: “Visibly coarse, but available immediately. Good for many images in a table.” | “Small — fast, visibly softer in print” | The small preview image (at most 144 × 144 pixels) is printed, which Dynamics creates itself for every image and delivers when the data is loaded. It costs no additional fetch. |
| – | “Cancel”, also Esc and a click beside it | – | Nothing is created or changed. |
- 1“Original quality (recommended)”: The large image is sharp even when enlarged considerably.
- 2“low quality (144 pixels)”: The preview image is stretched to the size of the frame and therefore looks soft.
On the canvas: With low quality, the canvas shows the preview image. With original quality, in Dynamics the canvas loads the large image once and shows it as soon as it is there; until then, and if none arrives, the preview image is shown.
In the PDF: With original quality, a fetch is needed for each row. In these cases the document prints the small preview image instead:
- The column does not store an original image, because the setting for full images on the column is off or the image was uploaded before it was turned on. The print reports this as a yellow note about the data (see Problems and messages: Notes and warnings). A button in Dynamics shows such a note only together with a warning; therefore check images in the full preview. In that case it is better to choose “low quality” right away: the same is printed, only without the futile fetch per record and without the note.
- The large image cannot be fetched when the document is created, for example because of a timeout, a missing read permission or an invalid reference, or the time for images has run out. Instead of a gap, the preview image appears, and the print reports a warning.
- No table is stored for the image. Then the preview image is printed right away, without a message.
For a sharp image, in Power Apps turn on, on the image column of the table, the setting that stores full images (the designer calls it “Can store full images”), and then upload the image again; see Fonts and images. The quality also applies to the images from “Except when” rules as long as the rule has none of its own. If you choose an image field in a rule, the designer asks for the quality for that rule separately.
Fit
The selection list “Fit” (with ⓘ “How the image fits into its frame”) determines how the image fits into the box (width × height). Distortion is deliberately not offered: the aspect ratio of the image is always preserved.
- 1“fit (nothing cropped)”: The whole image is visible. A free strip remains at the top and bottom.
- 2“fill (covers the whole frame, crops)”: The box is completely filled. To do so, the same amount is cut off on the left and right.
- 3“Original size (300 dpi)”: The image stands in the middle at its real size. Whatever does not fit is cut off.
| Choice | What happens | In the PDF |
|---|---|---|
| “fit (nothing cropped)” (default) | Nothing is cropped. The image is made so large that in one direction it reaches the edge of the box; a small image is enlarged for this too. In the other direction space remains, which “Position in frame” distributes. | The smaller of the two scales applies; the image is then offset according to the position. |
| “fill (covers the whole frame, crops)” | The image fills the box completely and cuts away the same amount on both sides, top and bottom or left and right. | The larger of the two scales applies; the overhang is cropped to the box. |
| “Original size (300 dpi)” | The image stands at its pixel size at 300 dots per inch, centered in the box. Whatever does not fit is cut off. | Pixels divided by 300, times 25.4 mm, centered and cropped to the box. An image of 1200 × 1600 pixels becomes 101.6 × 135.5 mm. Only here is the image not reduced to print resolution when the document is created in Dynamics. |
- Position: For “fill” and “Original size”, “Position in frame” is locked and the image is centered (see Position in frame).
- Phone photos: A phone image taken in portrait that carries only a rotation flag in the file is printed upright in the PDF.
- On the canvas: The canvas recalculates the three choices. For “Original size” it converts pixels at 300 dots per inch into millimeters. For “Original size” and an image field in original quality, the canvas loads the original image and shows its real size; until then the small preview image appears at its size.
Older templates in which an image is still stored without its own image settings are converted by the designer into an image with identical print when the properties are displayed. An old “Distort” becomes “fill”; this is the only conversion that is not print-identical.
Position in frame
The selection list “Position in frame” (with ⓘ) says where the fitted image sits in the free strip of its box. An image almost never has exactly the shape of its box. If it is wider in relation to the box, space remains at the top and bottom; if it is narrower in relation, on the left and right. So it is the ratio to the box that counts, not whether the image itself is wider than tall: a landscape logo in an even wider header leaves space on the left and right. The position is useful, for example, for logos in a header that should all stand at the same edge despite different widths.
- Choices: top left, top center, top right, middle left, center (default), middle right, bottom left, bottom center, bottom right.
- Default: center.
- When selectable: The field is always there. For “fill” and “Original size” it is locked and shows “center (default)”. The help text then says: “Only selectable with »fit«. With »fill« there is no space left that a position could distribute; with »Original size« the image is always centered.”
- The choice is kept: A position once chosen is not lost when locking. It also applies to the image from an “Except when” rule.
- In the PDF: The position only has an effect with “fit”. The canvas distributes the free strip in the same proportion as the PDF.
In the ⓘ two small example images show “center (default)” and “bottom right”. The same nine positions exist for an image in the middle of a text (see The “Edit text” window: The “Image in text” window).
Shape
The selection list “Shape” (with ⓘ “Shape (crop)”) crops the image to a shape, such as a round portrait from a square photo. Without a shape the image stays rectangular. For the shape to be filled completely, “fill” as the fit goes with it.
| Choice | Crop |
|---|---|
| “none (rectangular)” (default) | The image stays rectangular. |
| “Circle” | The diameter is the shorter side, and the circle is centered. |
| “Ellipse” | The ellipse lies over the whole drawn image. |
| “rounded corners” | The radius is 12 % of the shorter side. |
| “Triangle” | The point faces up. |
| “Star” | A five-pointed star, stretched to the whole drawn image. |
| “Polygon” | A pentagon with the point facing up, stretched to the whole drawn image; it is regular only for a square image. |
In the PDF the shape travels with the image; the PDF and the canvas crop with the same formulas. With “fit” it sits on the drawn image, with “fill” and “Original size” on the box. The blue placeholder on the canvas always crops at the box and therefore looks different from the image with “fit” and a different aspect ratio. With “show placeholder” the gray box has the shape as well. A shape can be combined with a rotation; it then rotates with the image (see Position, size and behavior of the image). The same outlines exist as objects of their own, see Shapes.
Show image on the canvas
The checkbox “Show image on the canvas” (with ⓘ) appears only for images from the data; the canvas always shows a fixed image. The default is on.
- On: The canvas shows a real sample image from the sample record so that you can judge the crop and aspect ratio.
- Off: Only a blue placeholder with the field name appears.
- In the PDF: No effect. The setting affects only the canvas.
- Not printable: If the print cannot read the image (see Formats), the canvas shows, with the checkbox set, a dashed box “not printable” instead of the image.
If there is no image
The selection list “If there is no image” (with ⓘ) determines what happens when the record has no image: when the field is empty or missing, or a text contains no readable image data. It appears only for images from the data, and the source of the image itself counts, not that of a rule. For a fixed image the field does not exist. If a rule of a fixed image delivers an image from the data and it is missing there, the setting of the fixed image applies to it, so for a newly created image “print nothing”; it can be changed only if the image itself comes from the data. For an “Except when” rule the setting of the image applies equally to all rules.
| Choice | What happens in the document | Space |
|---|---|---|
| “print nothing” (default) | The spot silently stays empty. This is the normal case. | takes up no space |
| “print nothing and report” | As before; in addition the print reports a note about the data. | takes up no space |
| “show placeholder” | A visible gray box stands at the spot: filled light gray (#EEEEEE) with a light gray border (#CCCCCC, 0.5 pt), the size of the image box, with the shape and rotation of the image. | takes up the space |
The note for “print nothing and report” reads in English: image: no picture is stored for this record - the box counts as 0 mm high: a table row, a grid row or a group with automatic height does not grow for it, and objects below are not moved down for it; the space stays empty.
If there is no image: the space below it
If the empty spot takes up no space, the box counts as 0 mm high. This has these consequences:
- A table row, a grid row and a group with “Automatic height (fit to content)” do not grow for the missing image. The group stays at its entered height, which is never undercut.
- Objects below it are not pushed down because of it.
- Nothing moves up as a result. A flowing object below the missing image stays at its drawn position; the gap stays empty (see Positioning behavior: Flowing).
- If something above grows, the object below the missing image moves down at most by the height of the image less than if the image were there. Example: An image is 20 mm tall, and a flowing text sits below it. If nothing above grows, the text stands in the same place with and without the image. If a text above grows a lot, without the image it stands 20 mm higher than with the image, but never higher than drawn.
The help text ⓘ on the field, on the other hand, says that objects with “Flowing” move up. That describes the difference from an existing image, not rising above the drawn position. If the space is to stay in the document, choose “show placeholder”. In a table, “Minimum row height (mm)” also provides uniform rows (see Data tables).
If there is no image: what the setting does not control
- File without a printable image: A file that is not a printable image (see Formats), and a failed fetch without a preview image (for example with a file column) keep their space. The spot stays empty, and it is always reported, regardless of this setting. For an image field in original quality, a failed fetch shows the preview image instead (see Quality). Even with “show placeholder” no gray box appears there.
- At the page edge: If the area in which the image lies is split at the page edge (for example a group with “Keep together at page break” turned off), the document never cuts through a gray box in the shape of a circle, ellipse, triangle, star or polygon, nor through any rotated box. It begins on a following page. An unrotated box without a shape or with rounded corners, on the other hand, is cut through; with rounded corners none of the pieces then has a rounding, not even at the corners that should actually be round. More on this under Images, shapes and lines in a split block.
- On the canvas: Outside a data row, the canvas always shows the blue placeholder when the image is missing. In a data row it draws nothing if it finds no image for the field in the whole sample record and “show placeholder” is not chosen. If it finds an image anywhere, it shows it in every row (see What the canvas shows).
Position, size and behavior of the image
This also applies here: other objects have these settings too, and each is explained on its own page. The table gives the default for the image, briefly says what is different for the image, and refers to the explanation.
| Setting | Default here | Explained in |
|---|---|---|
| “X (mm)” and “Y (mm)” | the place where the image was created; it determines the position of the image box | Position, size, rotation and arrangement: Position and size |
| “Width” and “Height” | 35 × 14 mm; the other ways of creating are listed under What a new image starts with. This means the size of the box, not of the image: the image is placed in the box after fitting. The two labels carry no ⓘ. Without a usable box (0 or negative) the PDF draws nothing. | Position, size, rotation and arrangement: Width and height for each type of object |
| “Rotation (°)” (with ⓘ) | 0; the image rotates together with its shape around the center of its box, on the canvas as in the PDF. An image in a triangle shape therefore tilts along with it. | Position, size, rotation and arrangement: Rotation |
| “Positioning behavior” | “Flowing on contact”; as an image column or dragged into a cell: “Fixed position”. Which way of creating gives which starting value is listed under What a new image starts with. | Positioning behavior and Positioning behavior: What a new object starts with |
| “Move along with the object below” | on; only for an image directly in the document | Positioning behavior: Move along |
| “Minimum gap above (mm)” | 0 | Positioning behavior: Minimum gap above |
| “Keep together at page break” | –; an image is never split, so the image has no checkbox. Directly in the document a note appears in its place, in a group or cell none. | At the page edge: The note instead of the checkbox and At the page edge |
| “Arrangement” and “Order in the group” | Rank 0 | Position, size, rotation and arrangement: Arrangement: layer order and sequence |
| “Visibility” | always visible; in the grid cell the section is missing | Visibility |
Deleting an image
An image is deleted like any object: with “🗑 Delete element” in a group or cell (without confirmation), with “🗑 Delete block” directly in the document (with confirmation) or with the Del key (without confirmation); see Copying, pasting and deleting. In a grid cell there is no delete button.
Grabbing the image with the mouse
Moving, size and rotation handles and the keyboard shortcuts apply as for any object (see Working on the canvas: Moving, Handles and Keys on the selected object). For the image, the following also applies: the handles change the box, not the image; its aspect ratio is not locked, and the image in it keeps its own through the fit. If you drag a group or column narrower, an image in it shrinks along, down to a minimum width of 6 mm.
Image in a grid cell
A grid can no longer be newly created anywhere in the current designer; grid cells exist only in older templates. There the following applies:
- “🖼 Content: Image” in the right-click menu of a cell turns the content into an image. Without asking, the designer inserts the fixed image
logo_full, 20 × 12 mm, with the fit “fit”, preview on and “print nothing”. Change the image afterward in the properties with “Choose image…”. The other entries of the same menu are “✎ Edit content” and “𝐓 Content: Text”; the second turns the cell back into an empty text cell. - The window “Grid cell” carries the subtitle “Row n, column m”, for a merged cell with the addition “· merged (n)”. It has the locked field “Content” with the word “Image”, below it the image fields from “Image source” to “Except when”, the color field “Cell background”, a note about right-click and Shift+click and, if several cells are selected, the button “🔗 Merge n selected cells”.
- Fields for width, height, rotation, position, visibility and positioning behavior do not exist in this variant, and there is no delete button. The image carries the dimensions it got when it was created (see What a new image starts with).
A different image depending on a condition
Normally the image that is set in the properties appears. With a rule you determine that in certain cases a different image is printed: a Paid stamp as soon as the invoice is paid, or the logo of a specific company when the order belongs to it. The first rule whose condition is met wins. If none is met, the image from the properties stays.
The field “Except when” (with ⓘ) is there for every image, including the fixed one. On the left it shows how many rules there are: “none — always the image above”, “1 rule” or “n rules”. The button next to it is called “Rule” (with the icon of an image rule) as long as there is no rule, and “Edit rules…” after that. It opens the window “Except when — which image when?”. The counter also counts half-filled rules without an image.
Creating a rule
Example: A Paid stamp is to appear as soon as the invoice is paid.
- Under “Except when”, click “Rule”. The window “Except when — which image when?” opens. Without a rule it says there “No rule yet. Without a rule, the image from the properties is always printed.”
- At the bottom left, click “Add rule”. A new, empty rule appears under the heading “Rule 1”, with the condition builder “If …” and the row “… then: (no image chosen yet)”. An orange note says that a rule without a condition always applies.
- Under “If …” build the condition; in the example: the field that shows whether the invoice is paid has the value “yes”. How the builder works is explained in Conditions. The orange note stays for now; it disappears as soon as the window is rebuilt, at the latest after choosing the image in the next step.
- Next to the row “… then: …” click “Choose image…” and choose the other image; in the example the stamp from the image library. The rule window closes, the image choice opens, and after the choice the rule window appears again. The row now shows the chosen source, such as the short name of the stamp.
- At the bottom right, click “✓ Done”. The window closes. Under “Except when” it now says “1 rule”.
You create more rules with “Add rule”. The higher up a rule is, the earlier it is checked.
- 1The number is the order of checking. ▲ and ▼ change it, ✕ deletes the rule immediately.
- 2The condition builder, the same as for visibility and rules.
- 3The image that is printed when the condition is met. “Choose image…” opens the image choice.
- 4Warning for a rule without a condition: it always applies.
- 5“Add rule” appends a new, empty rule at the end.
- 6“✓ Done” closes the window and discards rules without an image.
The window “Except when — which image when?”
The window can be resized by dragging its edges; Esc and a click beside it close it.
| Element | What it does |
|---|---|
| Title “Except when — which image when?” | Below it the window explains: “The first rule whose condition is met wins. If none is met, the image from the properties applies.” |
| Title row “Rule 1”, “Rule 2” and so on | Numbers the rules. The number is the order of checking: the first rule is checked first. |
| “▲” and “▼” | Change the order. The help text of ▲ reads “move up — the higher up, the earlier it is checked”, that of ▼ “move down”. For the first rule ▲ is locked, for the last one ▼. |
| “✕” (red) | Deletes the rule immediately, without confirmation. The help text reads “Remove rule”. |
| “If …” | Here you put together the condition. It is the same builder as for visibility and in the rules, see Conditions. Special features are explained below. |
| “… then: …” | Display only. Shows the source that this rule delivers, in the same short form as the image source in the properties: short name, path, “File: …”, “Text: …” or “(low quality)”. Before the choice, “(no image chosen yet)” appears there. |
| “Choose image…” in the rule | Closes this window and opens the image choice, with the quality question for an image field; if the rule already had an image, straight in the matching branch. After the choice the rule window opens again. Only the source is taken over. Size, fit, position, shape, preview and “If there is no image” belong to the image and apply jointly to all rules and to the image from the properties. |
| Orange note “Without a condition this rule always applies — the image from the properties is then never printed.” | Appears for every rule without a condition, so also immediately for every newly added one. Such a rule always applies; all rules behind it and the image from the properties then never come into play. This is allowed but made visible. |
| “Add rule” (bold, with image rule icon, bottom left) | Appends a new, empty rule at the end: no condition, no image. |
| “✓ Done” (wide, bottom right) | Closes the window. Rules without an image are discarded in the process, because a rule without an image has no effect anyway. If none is left, the rule list is removed entirely. Then the designer redraws the canvas and properties. |
Special features of the builder in this window
The builder is the same as for visibility and in the rules (see Conditions: The builder). A condition written by hand that it cannot display is shown in a box of its own above the condition parts (see Conditions: Conditions written by hand). If the image is in a table row, the rule is evaluated per row; which fields it finds there and how you reach a simple field of the document is explained under Conditions in a table cell. For the field picker see Data tree and field picker: The field picker. The rules can also use the template’s own variables (see Variables).
What you should know when closing
- Closing without “✓ Done”: If you close the window with Esc or a click beside it, half-filled rules without an image are not discarded. The counter under “Except when” in the properties counts them; nothing is printed or shown on the canvas for them, because a rule without an image is skipped. If you want to get rid of them, close with “✓ Done” or delete them with “✕”.
- Canceling the image choice: If you choose “Cancel” (or Esc or a click beside it) in the image choice from a rule, the rule window does not return, and the properties are not rebuilt. Open the window again through “Edit rules…”.
Good to know
A rule delivers only the source of the image; everything else applies to all rules jointly (see the row “Choose image…” in the table under The window “Except when — which image when?”). If a stamp is to have a different size than the main image, create it as an image of its own and give it a visibility rule (see Visibility).
The effect of the rules
- On the canvas: It evaluates the rules with the sample data and shows the chosen image. In a table row it takes the drawn row, plus the template’s own variables. A condition whose evaluation fails counts there as not met. Image rules therefore take effect on the canvas.
- In the PDF: First the source is chosen, namely the first applicable rule with an image, otherwise the image from the properties; then it is loaded. The same order applies as on the canvas. If a rule applies whose image is missing in the record, neither a later rule nor the image from the properties steps in; “If there is no image” applies.
An image in the middle of a text
An image can also appear in the middle of a text; how you place and change it is explained under The “Edit text” window: An image in the middle of the text.
Images from the data
An image can be different for each record: the photo for each order line, the portrait for each contact. The designer knows three kinds of fields for this. You can see which kind it is in the data tree from the badge next to the field. How you choose a data image is explained under Stage 2: Image from the data. When the space simply stays empty is explained under If there is no image.
The three kinds
| Kind | What it is | After clicking the field in the data tree | Special features |
|---|---|---|---|
| Image field (badge “Image”) | An image column in Dynamics, such as the photo of a product. | The quality question follows (see Quality). | Dynamics creates a small preview image for every image and delivers it with the data; the large image has to be loaded separately. The “Quality” is selectable (see Quality). For the large image to be loaded, the table must be stored on the image; to do that, expand the relationship in the data tree once. |
| File field (badge “File”) | A file column in Dynamics. | The image is chosen immediately, without a question. | There is no choice of quality (reason: see Quality). The file must be a printable image; otherwise the spot stays empty, and the document reports it. |
| Text field with image data (badge “Abc”); a custom variable of the type text or color and a text variable of a rule are treated the same way | A text field in which an image is stored as text, as some applications write it into a text field. | The image is chosen immediately, without a question. | The image data is already in the row; there is no fetch and no choice of quality. The text field is printed only if it contains valid image data. If ordinary text is in it, the image counts as not present. |
Which formats are printed
Which formats are printed and what happens with others is explained under Formats. This applies to image columns, file columns and text fields as to images from the library.
The relation to the row
- If the image is in a table row or in a group that is in a row, the image is bound to the respective row: each row shows its own image. An image in a table row looks for its field when the document is created only in this row and in the records it points to. It does not find an image field of the main record there, even if the canvas shows an image: the spot stays empty, or an image of the row appears if the row’s record has a field with the same name. For an image that is the same in every row, use a fixed image, and check the result in the full preview.
- The image choice also binds to the row: if you choose there, from the list the table is based on, a field with “First value”, the designer takes the image of the respective row, because the first value of the list would stay empty in every row. This applies to a field under the relationship as well as under the rule of the table. If the field is in a list below the row, such as the batches of a line item, each row shows the first image of its own list. A field of another list stays as it is: the spot stays empty.
- If the image is directly on the page and the field comes from a list, it is bound as “first(…)”: the image of the first row appears. This also applies to an image behind a lookup of the row: for the product image of a line item, the image of the product of the first line item appears. If the first line item has no product or the product has no image, no image comes from a later line item; the setting under If there is no image applies. If the field is in a list below the list, such as a photo of the deliveries of a line item, the image of the first delivery of the first line item appears, as with a text next to it with the same first value. If the first line item has no delivery or its first delivery has no image, no image comes from a later row here either; the same setting applies. For “last(…)” the same applies to the last row of each list.
- Summaries of a list other than first and last row produce no image in the document.
Ways in tables, groups and cells
You can drag an image field or file field from the area “Data” onto several targets or check it in a table. With an image column the row grows with the image height, because the cell group has “Automatic height (fit to content)”. A row without an image costs no space with “print nothing”. For an image field choice, the quality question always comes first (see Quality); for a file field never.
| Way | What is created |
|---|---|
| Window “Choose columns”: checkbox at an image or file field | An image column: the column gets a cell designer with an image in it, not a text placeholder. Size and positioning behavior are listed under What a new image starts with. The image starts with the fit “fit”, preview on, “print nothing” and a path that refers to the row; the designer takes the details with which the large image is loaded from the row. After “Apply” the designer asks once about the quality for all checked image fields (see Quality); not for file fields. The window carries the note that an image field becomes an image column with a default size of 20 × 15 mm, freely changeable afterward in the column designer. More in Data tables: The window “Choose columns — …”. |
| Drag an image field onto a table column that does not have a cell designer yet | The column becomes a cell designer. An existing column text moves in as text, the image comes below it and is bound to the respective row (size and positioning behavior: What a new image starts with). For an image field the designer asks about the quality beforehand (see Quality). More in Cells, header row and page break: Dragging fields into cells. |
| Drag an image field into a cell designer (data cell or header cell) | The image is placed in the cell group, below the lowest existing child so that nothing is covered. For a data cell the reference is the row of the table, for a header cell the row above it, so on the page the main record. More in Cells, header row and page break: Dragging fields into cells. |
| Drag an image field into a cell of a free-form table | The image goes into the cell group as an image object, below the lowest child. It is bound to the row above, because the free row has no row of its own. If the table is directly on the page, the designer rewrites a field that applies only per row to “first(…)” or rejects it with an explanation. More in Cells, header row and page break: Dragging fields into cells. |
| Drag an image field into a cell of an extra row | The image goes into the cell group of the extra row, which is created if needed, and is bound to the table’s own row, as in the data column. More in Data tables: Extra rows. |
| Drag an image field onto a group that lies in another group or in a table cell | An image is created in the group at the mouse position (size and positioning behavior: What a new image starts with). It is bound to the row in which the group stands. If it is in no row, the designer rewrites a field that applies only per row to “first(…)” or rejects it. A group directly on the page is treated by the designer like the free page area (see the next row of this table): if you release over the hit area of the group (see Groups: Which area of the group counts), the image goes in; the designer rewrites a field that applies only per row to “first(…)” as on the page, or rejects it. An image field behind a lookup of the row, such as the product image of a line item, then shows the image of the first line item. More in Groups: Objects in and out. |
| Drag an image field onto the free page area | An image is created with the fit “fit”, preview on and “print nothing” (size and positioning behavior: What a new image starts with). An image field triggers the quality question first (see Quality), a file field creates the image immediately; a text field, on the other hand, becomes ordinary text. The placement depends on the spot, as when dragging the ribbon button (see Inserting an image). A field that applies only per row is rewritten by the designer to “first(…)” as with a text field, so to the image of the first row, and reported. If it does not know which list the field belongs to, it creates nothing and reports why. Both messages are under Data tree and field picker: A field “per row” outside a table cell. All other fields it binds to the dragged path as it is. If you have zoomed into the cell designer of a data table, it binds to the row of this table, also a field of the same list that was dragged as “first value”. If an image field has no stored table, the warning appears that is explained under Stage 2. An image field behind a lookup of the row, such as the product image of a line item, shows the image of the first line item. |
| Drag an image field onto a grid cell (older templates only) | It is placed only in an empty grid cell (size: What a new image starts with). If the cell is occupied, its content stays, and the designer reports: “This grid cell is already occupied — the image was not placed. Empty the cell first (right-click → »Content: Text«) or drag the image field into an empty cell.” Conversely, it does not write a text field into a cell with an image: “This grid cell already contains an image — it will not be replaced by text. Empty the cell first (right-click → »Content: Text«).” |
| Drag an image field into a text object as a placeholder | The placeholder is appended, but an image field prints nothing as text. The designer says: “… is an image field — no image is printed for it as a placeholder in the text. To put an image into the text, use »🖼 Image« → »Image from the data« in the text editor; to use it as an image object of its own, drag the field onto the page or into a cell.” In the PDF the document reports: field '…' holds a picture, not text - nothing was printed. Use an image element for image columns. See The “Edit text” window: An image in the middle of the text. |
- Table header: An image from the data in the simple header text of a table (without a header designer) is not printed, because the print never fills this text with data. The document reports it (see Problems and messages: Images and fonts). As an image object of its own in a header cell of the header designer, it refers to the row above (see Cells, header row and page break: Designing the header row).
- Permissions: Smart Templates reads images from records (image and file fields) with the permissions of the user who creates the document. If a permission is missing, the preview image is printed with a warning, or the spot stays empty (see Rights and roles).
- Setting up sharp images: How to set up the image column for large images in Dynamics is explained in Fonts and images.
What the canvas shows
The canvas shows fields as blue markers with the field name. For images it is different: it shows a real sample image or a placeholder. On the page, in the group designer, in the column designer and in grid cells the following applies:
| Display | When it appears and what it means |
|---|---|
| Sample image from the record | For data images the canvas looks in the whole sample record for the first image for this field, first at the path, otherwise anywhere under the same field name, also in lists and neighboring rows, and shows it. In a table the same image therefore appears in every row, not the image of the drawn row. The image serves only to judge the crop and aspect ratio; in the document each row has its own image. If the field is bound as “first(…)” or “last(…)” (first or last row of a list), the canvas does not search further: it shows exactly the image that is printed, in a table row that of the drawn row; if there is none, outside a table the blue placeholder appears, in a table row nothing, except with “show placeholder”. Image rules are evaluated with the drawn row. Strictly the image of the sample row is otherwise shown only by an image in text and a field with “first(…)” or “last(…)”. |
| Blue dashed placeholder with 🖼 and name | Appears when no image can or should be shown: preview off, short name empty or unknown, image not loaded yet (images from the library are loaded as needed in Dynamics), no value in the sample data or a loading error. It carries 🖼 and the same short form as the image source (short name, path, “File: …”, “Text: …” or “(no image)”) as text and help text. It has the shape of the image, on the box, and rotates along. It is only a design aid, a handle to grab; in print the gray box of “show placeholder” looks different (different color, no label). In the column designer the blue placeholder stays as a handle. |
| Blue dashed box “not printable” | Replaces the image when the print would never print it (see Formats). For a data image this happens as long as “Show image on the canvas” is on. For a fixed image from the library it always happens. The box holds the space like the print. |
| Amber dashed box “not loaded” | Replaces the image of a file field whose fetch was disrupted on the canvas, for example by throttling, a server error, missing access or a network drop. It stays until the next change of the sample record; a retry is not built in. It holds the space like the print. |
- 1Sample image from the sample record. It serves only to judge the crop and aspect ratio.
- 2Blue placeholder with 🖼 and the field name: the sample record has no image for the field “Zweitfoto”. The placeholder is only a design aid and is never printed like this.
- 3“not printable”: the image here is a GIF. Only PNG, JPEG and BMP are printed; the box holds the space like the print.
The canvas recalculates fit, position, shape and rotation itself.
What happens when printing
This section describes when an image is printed. Check the result with your data in the full preview (see Full preview and PDF). The messages the document gives about images are listed with meaning and remedy under Problems and messages: Images and fonts; where they appear and how you read them is explained under Problems and messages: Where the messages appear.
Formats
PNG, JPEG and BMP are printed, recognized by the content of the file, not by the name. A PNG with 16 bits per color channel, as some graphics programs save it, is also printed; it is converted to 8 bits for this. Everything else, such as GIF, WebP, TIFF, PDF or SVG, is never printed: the spot stays empty and holds its space. At this spot the canvas shows the dashed box “not printable” (see What the canvas shows). The document reports as a warning image '…' could not be read by the PDF printer (unsupported format?) …, for a data image with image from Tabelle.Spalte or image from a data field instead of the short name. If reading an image in a recognized format fails, the same sentence appears with the name of the error in the parentheses. This applies to library, file column, image column and text field. A file column in Dynamics additionally or instead reports image from Tabelle.Spalte: the file is not a printable image (only PNG, JPEG and BMP can be printed).
When uploading to the image library the same three formats apply (see Image library and fonts: The fields of the form). When importing a template, on the other hand, the designer accepts PNG, JPEG and SVG and converts an SVG to a PNG (see Managing templates: Images that come with it).
Choosing and loading the source
First the source is chosen, namely the first applicable “Except when” rule with an image, otherwise the image itself. Then it is loaded:
- Fixed image: It is looked up in the image library by its short name.
- Image field in original quality: The column is fetched individually for each record. The ID of the record comes from the same row as the image. If the table or the ID is missing, the preview image from the row is printed.
- File field: It is always fetched individually.
- Text field: The image data comes from the row.
- Empty value: An image or file field whose value is missing or empty in the row is not fetched; this is reported only with “print nothing and report”. This is the normal case when, of 25 line items, about 23 have no photo.
Reducing to print resolution
When a document is created in Dynamics, an image is scaled down to 300 dpi of its print size before embedding so that the PDF stays small. This happens only if it has more than 1.3 times as many pixels in the decisive edge as would be needed. It is never scaled up, the edge stays at least 32 pixels long, and with the fit “Original size” it never happens. A phone photo with a rotation flag is straightened in the process.
Space and cropping at the wall
How the wall affects all objects is shown in the table under What the wall does to an object; here is what happens to an image. If the top edge of an image lies beyond the wall of the surrounding group or cell with a fixed height, the image is dropped. If it extends beyond the wall only at the bottom, the box is shortened to the wall and the image is fitted again into the shorter box; the aspect ratio stays. With “fit” the image becomes smaller if the shorter box limits it in height; otherwise it keeps its size and moves up at most, such as a wide logo. With “fill” it is cropped differently, with “Original size” whatever does not fit into the shorter box is dropped at the top and bottom. It is not cut off at the wall itself. A rotated image, on the other hand, is cut off at the wall. The document reports both with the millimeters (“… the box of a picture in it is cut off at that edge by up to … mm, so the picture is fitted into the shorter box …”; rotated: “… a picture in it is cut off at that edge, up to … mm were not printed …”). If it lies entirely below the wall when rotated, it is missing, and the document reports the rotated element '…' lies completely below the fixed bottom edge around it and was NOT printed. …. If an unrotated image is dropped because its top edge lies below the wall, the document reports group '…' has a fixed height of … mm - the element '…' starts below that edge and was NOT printed. …. At a page break an image moves on as a whole (see At the page edge).
Time and size
Images that have to be fetched, so images from the library and record images, run under a clock of at most 30 seconds, less if building the data has already used up a lot of time. When the time is up, images from image columns are printed as a preview image; whatever has no preview image is missing. Images that are already in the row, for example with small quality or from a text field, are printed even after the clock. For large images, notes appear: individually from 4 MB, together from 15 MB. What is measured when creating in Dynamics is what is in the PDF, that is after reducing to print resolution. A large photo in a small box therefore usually triggers no note, but a large image at “Original size” does, because it goes into the PDF unreduced.
What changes in the document?
On the canvas
A fixed image appears with its content, an image from the data as a sample image from the sample record or as a blue placeholder; in a table the same image appears in every row. A field with “first(…)” or “last(…)” shows exactly the image that is printed. Fit, position, shape and rotation are recalculated. Image rules “Except when” follow the sample data; visibility rules have no effect (see Visibility). An image that the print cannot read appears as a box “not printable”.
In the PDF
The source chosen by the rules is printed, only as PNG, JPEG or BMP, in the chosen fit, position, shape and rotation. If the image is missing, “If there is no image” decides: nothing, nothing with a note, or a gray box. A missing image takes up no space with “print nothing”; objects below it do not move down because of it and never move up beyond their drawn position. An image is never split (see At the page edge). For an image field in original quality, the small preview image can appear instead of the original, with a note or warning. Hidden images are missing (see Visibility: What happens in the PDF).