InDesign is the usual way to turn an InDesign document into a PDF. When you do not have it, this converter reads the .idml in your browser and writes a vector PDF: one page per InDesign page, with text that stays text.
Vector output, not page screenshots
Each text frame is written as real PDF text, so it can be selected, searched and read aloud. Shapes and lines are written as vector paths that stay sharp at any zoom. CMYK swatches are written as CMYK values. Pictures are embedded as they are.
Drop a zipped package for the pictures and fonts
An .idml holds no linked pictures and no fonts. Dropped alone, it converts with placeholders in place of linked pictures and with substitute fonts, which is enough to read the text but not to reproduce the document. Zip the folder that File > Package writes and drop the .zip: the converter uses the pictures in Links and the fonts in Document fonts, and turns placed PDF, Illustrator and Photoshop files into vector content where it can.
Edit before you download
The pages open in the live Polotno editor before anything is downloaded. Fix a typo, swap a picture, remove a page, then click Download as Vector PDF. The warnings panel above the editor lists what the import approximated, so you know which pages to check first.
The same conversion in code
import { idmlToJson } from "@polotno/idml-import";
import { jsonToPDF } from "@polotno/pdf-export";
const json = await idmlToJson({
idml: await file.arrayBuffer(),
onWarning: (w) => console.warn(w.code, w.message, w.details),
});
await jsonToPDF(json, "brochure.pdf");Both packages run in the browser and in Node.js. See IDML import and PDF export.
