
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
@imgly/idml-importer
Advanced tools
See the changelog for a detailed history of updates and improvements.
The InDesign Importer for the CE.SDK allows you to seamlessly integrate InDesign files into the editor while retaining essential design attributes.
Here's an overview of the main features:
The following InDesign design elements will be preserved by the import:
This InDesign Importer bridges the gap between InDesign files and CE.SDK scenes, enabling efficient transitions while retaining crucial design details. Your input is invaluable as we continue to refine and improve the importer's capabilities.
You can install @imgly/idml-importer via npm or yarn. Use the following commands to install the package:
npm install @imgly/idml-importer
yarn add @imgly/idml-importer
import CreativeEngine from "@cesdk/engine";
import { IDMLParser, addGoogleFontsAssetLibrary } from "@imgly/idml-importer";
const blob = await fetch(
"https://img.ly/showcases/cesdk/cases/indesign-template-import/socialmedia.idml"
).then((res) => res.blob());
const engine = await CreativeEngine.init({
license: "YOUR_LICENSE",
});
// We use google fonts to replace well known fonts in the default font resolver.
await addGoogleFontsAssetLibrary(engine);
const parser = await IDMLParser.fromFile(engine, blob, (content) =>
new DOMParser().parseFromString(content, "text/xml")
);
await parser.parse();
const image = await engine.block.export(
engine.block.findByType("//ly.img.ubq/page")[0],
"image/png"
);
const sceneExportUrl = window.URL.createObjectURL(image);
console.log("The imported IDML file looks like:", sceneExportUrl);
// You can now e.g export the scene as archive with engine.scene.saveToArchive()
When using in NodeJS, you need to provide a DOM implementation. We recommend using JSDOM.
// index.mjs
// We currently only support ES Modules in NodeJS
import CreativeEngine from "@cesdk/node";
import { promises as fs } from "fs";
import { JSDOM } from "jsdom";
import { IDMLParser } from "@imgly/idml-importer";
async function main() {
const engine = await CreativeEngine.init({
license: "YOUR_LICENSE",
});
const idmlSampleUrl =
"https://img.ly/showcases/cesdk/cases/indesign-template-import/socialmedia.idml";
const idmlSample = await fetch(idmlSampleUrl).then((res) => res.blob());
const idmlSampleBuffer = await idmlSample.arrayBuffer();
const parser = await IDMLParser.fromFile(
engine,
idmlSampleBuffer,
(content) => {
return new JSDOM(content, {
contentType: "text/xml",
storageQuota: 10000000,
url: "http://localhost",
}).window.document;
}
);
await parser.parse();
const image = await engine.block.export(
engine.block.findByType("//ly.img.ubq/page")[0],
"image/png"
);
const imageBuffer = await image.arrayBuffer();
await fs.writeFile("./example.png", Buffer.from(imageBuffer));
engine.dispose();
}
main();
If you encounter any issues or have questions, please don't hesitate to contact us at support@img.ly.
The IDML importer has some limitations and unsupported features that you should be aware of:
PDF Content
Linked Images
Text Frame Overflow
Font Support
Image Frame Fitting
Page Sizes
The software is free for use under the AGPL License.
FAQs
Import IDML files into the Creative Editor Ecosystem
The npm package @imgly/idml-importer receives a total of 857 weekly downloads. As such, @imgly/idml-importer popularity was classified as not popular.
We found that @imgly/idml-importer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Google’s UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.