The newLetteringPreview API method generates a fast, lightweight, transparent preview image
(non-TrueView™) of a single new lettering decoration or a single new Team Name (with one name, one location). Also returns
estimated design information — such as dimensions and stitch count — similar to api/designInfo.
This is not a TrueView™ image — it’s a simpler, faster preview.
POST parameters
| Parameter | Type | Required | Description |
| appId | String | ✅ | App ID from your Wilcom Developer Portal account. |
| appKey | String | ✅ | App Key from your Wilcom Developer Portal account. |
requestXml | String | ✅ | An XML string specifying the lettering recipe. |
<xml>
<recipe
... /> <!-- Lettering recipe definition -->
<lettering
text="Coach"
font="Block"
height="10"
/>
<output
trueview_file="lettering_preview.png"
/>
</recipe>
</xml>
Response
On success, the API returns
an XML string containing the generated preview image and the estimated design
information:
<xml>
<files>
<file filename="lettering_preview.png" filecontents="..." /> <!-- Simple preview image -->
</files>
<design_info>...</design_info> <!-- Estimated metadata -->
</xml>
XML components
| Component | Details |
| <recipe> | The design is based on the full <recipe> definition. This is the root container for describing a complete embroidery design or preview. |
| Specifies single new lettering decoration or single new Team Name (with one name, one location). |
| <output> | Specifies the output preview filename. |
| <files> | This element is used to pass one or more files to or from API endpoints. It contains the input vector file and the resulting design and TrueView™ file(s). |
<file> | Simple preview image. |
| <design_info> | Provides estimated design properties — e.g. size, stitch count — for the generated embroidery file. |
- The newLetteringPreview method positions a single
Lettering or Team Name Lettering decoration according to the transform defined
in the recipe.
- It then generates a small,
transparent preview image (non-TrueView™) that visually represents the stitched
area in a simplified form.
- The resulting image is included
in the <files> element and named according to the trueview_file parameter of the output
component in the recipe.
- The preview image is lower in
visual fidelity compared to the TrueView™ image produced by api/newDesignTrueview, but the process is significantly faster.
- The <design_info> element provides
an estimated preview of the design’s dimensions and stitch count. These
estimates may differ slightly from the actual values produced by api/designInfo or api/newDesign using the same input.
- This method is ideal when fast
previews are needed and image quality is not critical. For a full TrueView™
rendering, use api/newDesignTrueview.