PRESSFLOW HOW-TO
PressFlow 2.2 adds a two-way workflow between desktop Adobe InDesign and locked company templates. Fixed artwork remains a PDF background; approved variable text becomes PressFlow fields. This is for repeatable business cards, flyers, leaflets and similar personalised print, with customers editing only approved values.
Before you begin
Enable B2B storefronts and Locked brand templates in PressFlow settings. Open the company's portal settings as a printer or company administrator. The product must be approved for that company and have valid artwork dimensions, bleed and page count. InDesign imports require PHP ZIP, XML and mbstring on your WordPress host. Each IDML/background file can be up to 5 MB. A template supports 1-16 pages and 1-40 text fields.
Desktop Adobe InDesign is needed to run the supplied scripts or open/save IDML. PressFlow does not include an Adobe licence, send artwork to Adobe services or run InDesign on the WordPress server. Binary INDD uploads are not supported; export IDML from InDesign instead.
Recommended: export from InDesign
- Finish the fixed design in InDesign. Put each value customers may change in its own text frame.
- Select a frame, open Window > Utilities > Script Label, and enter
pf:employee_name. Use IDs starting with a lowercase letter, followed by lowercase letters, numbers or underscores, up to 40 characters. Each ID must be unique.pressflow:employee_nameis also accepted. Ordinary unmarked text stays fixed in the PDF. - Keep marked frames rectangular, unrotated, unscaled, unthreaded, with a single column, top alignment and a single font, size and solid process colour per frame. Use 6-60 pt text. Override marked parent/master-page frames onto document pages.
- In PressFlow, expand Create an approved brand template > Import or reuse text fields > Bring a template from InDesign. Download PressFlow-Export.jsx.
- Add the script to InDesign's User Scripts folder using the Scripts panel's Reveal in Explorer/Finder command. Run it from Window > Utilities > Scripts while your document is open.
- Choose an output folder. The script works on a temporary copy, removes variable text only in that copy and creates a new folder containing
template.idml,background.pdfandfields.json. It does not overwrite your original document or an existing output folder. Any required font mapping is explicit. - Choose the same finished size, bleed and page count in PressFlow. Upload
background.pdf, then load and reviewfields.json. Apply the reviewed fields and generate a PDF preview. - Check text appearance, line wrapping, position and all artwork pages. Publish when the preview is correct. Customers can now change only those field values.
The generated background is PDF 1.4, includes document bleed, uses individual artwork pages and has no printer marks. It retains the fixed artwork. Variable process CMYK colours are represented as RGB in the native text layer, so review colour appearance. A print professional should review final artwork.
Import an existing IDML file directly
Export IDML from InDesign and a separate matching PDF with variable text removed. Choose the product specification and background PDF in PressFlow, then choose the IDML file and Review IDML fields. Only explicitly labelled frames are read. Nothing is applied or published until you choose an action.
Review field IDs, page numbers and geometry. If a font is not available in PressFlow, choose a supported replacement before replacing fields. Alternatively, Update matching positions only keeps existing fonts, colours, example text and limits for matching IDs. Undo last import is available until you make further field changes.
IDML page dimensions and page count must match the selected product. The importer does not scale layouts. Unsupported threading, rotation, mixed formatting, tables or anchored content in marked frames produce an explanation. Fixed artwork can remain complex because it is carried by the matching PDF.
Direct IDML imports derive the frame geometry; composed baselines and wrapping can differ from InDesign. Always inspect and adjust the native PDF preview. For more precise first-baseline placement, use the supplied InDesign exporter and its fields.json output.
Export a PressFlow template back to InDesign
- In the company's Locked brand templates list, choose Download InDesign export package. This is available only to the company's administrator or printer.
- Extract the ZIP into one folder. It contains
background.pdf,fields.json,PressFlow-OpenTemplate.jsxand instructions. Keep the files together. - Run PressFlow-OpenTemplate.jsx in desktop InDesign and select the extracted fields.json. Install the listed fonts in InDesign first. Missing fonts stop the process rather than being silently substituted.
- The script creates a new document, places each background page on a locked layer and rebuilds the approved text frames above it with their pf: labels. Choose a new filename to save IDML. The document stays open for review.
- Keep background.pdf with the IDML or use InDesign Package to collect the link. The fixed PDF is not converted into editable logos or vector objects.
- Review the reconstructed document in InDesign. To return changes to PressFlow, use PressFlow-Export.jsx and publish a reviewed new template version. Exporting never changes an existing published template or artwork already attached to orders.
This export uses InDesign itself to write IDML; WordPress supplies the private package. It is not a browser-side INDD editor or a lossless round trip for arbitrary InDesign effects, styles, paragraph composition or original source-document structure.
Troubleshooting
- No marked frames found: use Script Label, not the Layers-panel name or a visible
$employee_namemarker. - Page size/bleed mismatch: match finished dimensions, equal bleed on all edges and actual sides/pages in both applications.
- Font mapping required: choose one of PressFlow's bundled fonts. Fixed PDF artwork keeps its embedded appearance; only variable text is mapped.
- Background shows old variable text: remove it from the fixed PDF or use PressFlow-Export.jsx. Otherwise the new values will overprint the old text.
- Overset/overflow: enlarge the field or reduce its text/size. Native server preview and final generation reject overflow.
- ZIP/XML extension missing: ask your hosting provider to enable the named PHP extension.
- Import became stale: a product specification or field changed while the import was being reviewed. Review it again against the current specification.
- Download unavailable: sign in with the correct company's administrator account or printer account, and check that the template's product is still approved.
Security and storage
IDML is parsed as bounded data. Archives are not extracted, and XML external entities, encrypted packages, unsafe paths, links and oversized parts are rejected. Import/export requires the existing company-manager permission and WordPress nonce. Backgrounds remain private, packages are generated on demand and temporary downloads are removed after streaming. Customers cannot upload a new layout through the locked-template personalisation screen.