docsTranslation APIInDesign (INDD, IDML)

    🖋️ InDesign (INDD and IDML)

    Bluente translates Adobe InDesign documents natively. Upload either format:

    • INDD (.indd, the InDesign document itself): the result is a translated .indd document. Bluente opens it in InDesign, writes the translation in, and reflows the text there.
    • IDML (.idml, InDesign Markup Language): the result is an editable IDML package.

    Either way you get a file to open in InDesign, not a print-ready PDF. Review it there before you export or print.


    📋 Workflow

    InDesign files use the same endpoints as every other file type:

    1. Upload File: upload the .indd or .idml file with POST /upload.
    2. Get Translation Status: poll GET /check until the status is SERVICE_PROCESSED. If the file can’t be read, the status becomes ERROR instead.
    3. Translate File: start the translation with POST /translate. See the options below.
    4. Download File: when the status is READY, download the result with GET /download. The result has the same format you uploaded: .indd for INDD, .idml for IDML.

    📤 Preparing the File

    • Upload the .indd file as it is. You don’t need to export IDML first.
    • If you already work with IDML, upload the .idml file (File → Export… → InDesign Markup (IDML)).
    • Both formats are returned by the Get Supported File Types API: indd (application/x-indesign) and idml (application/vnd.adobe.indesign-idml-package).
    • Fonts and linked images are not uploaded. The translated document keeps the same links as your original. See the notes below for fonts.

    🚫 Options Not Supported for InDesign

    InDesign translation keeps the authored layout and translates the native text, so the options below don’t apply. INDD and IDML treat them differently:

    • INDD: the options are ignored. The translation starts and you are charged for the plain translated document only.
    • IDML: POST /translate returns code: 40 (invalid parameters) and the translation does not start.
    OptionWhere it is sentINDDIDML
    to_typeRequest bodyIgnoredMust be empty or "idml". PDF or INDD output is not available.
    page_rangeRequest bodyIgnoredNot supported. The whole document is always translated.
    scanned / scanned_optionQuery / request bodyIgnoredMust be 0 or omitted.
    translate_imageQuery / request bodyIgnoredNot supported.
    table_layout_enhancement / is_use_table_layout_enhancementQuery / request bodyIgnoredNot supported.
    only_extract / is_only_extractQuery / request bodyIgnoredNot supported.
    bilingual, vertical_bilingual / is_use_bilingual, is_vertical_bilingualQuery / request bodyIgnoredNot supported.
    font_name, custom fontsRequest bodyIgnoredNot supported. Fonts come from the original document.

    Glossary options (glossary, custom_glossary, namespace) and meta_data work as usual for both formats.


    💡 Example

    # 1. Upload
    curl -X POST "https://api.bluente.com/api/20250924/blu_translate/upload?engine=3" \
         -H "Authorization: Bearer $BLUENTE_API_KEY" \
         -F "file=@/path/to/brochure.indd"
     
    # 2. Translate (after /check returns SERVICE_PROCESSED)
    curl -X POST "https://api.bluente.com/api/20250924/blu_translate/translate?engine=3" \
         -H "Authorization: Bearer $BLUENTE_API_KEY" \
         -H "Content-Type: application/json" \
         -d '{
               "id": 1,
               "action": "start",
               "from": "en",
               "to": "zh"
             }'
     
    # 3. Download (after /check returns READY)
    curl -X GET "https://api.bluente.com/api/20250924/blu_translate/download?id=1" \
         -H "Authorization: Bearer $BLUENTE_API_KEY" \
         -o translated_brochure.indd

    or

    const formData = new FormData();
    formData.append("file", fileInput.files[0]); // brochure.indd
     
    const upload = await fetch("https://api.bluente.com/api/20250924/blu_translate/upload?engine=3", {
      method: "POST",
      headers: {
        "Authorization": "Bearer $BLUENTE_API_KEY"
      },
      body: formData
    }).then(res => res.json());
     
    // Poll /check until status is SERVICE_PROCESSED, then:
    await fetch("https://api.bluente.com/api/20250924/blu_translate/translate?engine=3", {
      method: "POST",
      headers: {
        "Authorization": "Bearer $BLUENTE_API_KEY"
      },
      body: JSON.stringify({
        id: upload.data.id,
        action: "start",
        from: "en",
        to: "zh"
      })
    });
     
    // Poll /check until status is READY, then:
    const file = await fetch(`https://api.bluente.com/api/20250924/blu_translate/download?id=${upload.data.id}`, {
      method: "GET",
      headers: {
        "Authorization": "Bearer $BLUENTE_API_KEY"
      }
    }).then(res => res.blob());

    For IDML, upload the .idml file instead; the download is an .idml package.


    ❌ Error Response Examples

    An IDML translation with an unsupported option:

    {
      "message": "IDML translation supports the complete document, not page selections",
      "code": 40
    }

    An INDD translation when the account would only get a partial or watermarked preview:

    {
      "message": "INDD requires credits for the complete document; partial or watermarked previews are not supported",
      "code": 40
    }

    See Error Codes for all codes.


    💳 Billing

    • InDesign files are billed for the whole document. Partial translation and watermarked previews are not available.
    • For INDD, the page count is the number of pages InDesign reports for the document.
    • If the account cannot pay for the complete document, the translation does not start: code: 70 when credits are insufficient or expired, or code: 40 when the account would only get a partial preview.

    📌 Notes

    Both formats

    • Translated text is usually longer or shorter than the source. Bluente fits it into the layout, which can mean smaller text in tight frames. Check every spread for overset (overflowing) text and adjust frames where needed.
    • If the original font cannot display the target language, Bluente applies a fallback font to that text. Check fonts in InDesign (Type → Find/Replace Font…) before final output.

    INDD

    • Text watermarks in the original (for example a diagonal DRAFT) are kept as they are, not translated.

    • The translated .indd is saved in the same InDesign version as your original, so you can open it wherever you open the original. Bluente keeps the current and the previous major InDesign versions; a document from an older version comes back in the oldest of those, and you need that version or later to open it. A document saved in a newer InDesign version than Bluente has cannot be translated yet; the task ends with status ERROR.

    • Translation runs in InDesign and takes longer than other formats: minutes for a short brochure, up to about an hour for a book of several hundred pages.

    • Linked images and placed files stay linked by their original paths. Relink them on the machine that opens the translated file if needed.

    IDML

    • The output is an editable IDML package.
    • Fonts and linked assets are not bundled. IDML stores fonts and links (images, placed files) by reference only. Install the document’s fonts and relink assets on the machine that opens the translated file.