Install
openclaw skills install @stanestane/coreldraw-editorInspect, edit, and export CorelDRAW CDR files via COM automation.
openclaw skills install @stanestane/coreldraw-editorUse this skill to work with .cdr files through CorelDRAW itself. Prefer CorelDRAW COM automation over raw parsing because CDR is proprietary and version-sensitive.
CorelDRAW.Application or CorelDRAW.Application.<version>.pywin32. If missing and local package installation is acceptable, run py -3 -m pip install --user pywin32.finally blocks with doc.Close() and app.Quit()..cdr path and output destination.scripts/coreldraw_editor.py inspect input.cdr --json metadata.jsonscripts/coreldraw_editor.py preview input.cdr preview.png --page 1 --dpi 3007-20 for clusters.2,5,8-10 for non-contiguous selections.scripts/coreldraw_editor.py export input.cdr outdir --item logo.png:3 --format pngscripts/coreldraw_editor.py export input.cdr outdir --item tree.png:7-20 --transparent --manifest out.csvscripts/coreldraw_editor.py apply-plan input.cdr edited.cdr --op '{"op":"rename","shapes":"4","name":"logo-primary"}'scripts/coreldraw_editor.py apply-plan input.cdr edited.cdr --plan edits.jsonThe bundled script intentionally supports conservative operations that map cleanly to CorelDRAW's COM API:
rename: set shape names.move: move selected shapes by dx, dy in document units.set-position: set selected shapes to x, y.resize: set selected shapes to width, height.rotate: rotate selected shapes by angle degrees.duplicate: duplicate selected shapes with optional dx, dy offset.delete: delete selected shapes from the edited copy.group: group selected shapes.ungroup: ungroup selected shapes.layer-visible: set layer visibility.layer-printable: set layer printability.save-copy: save an output .cdr copy without further edits.For more specialized tasks such as precise fill/outline replacement, font substitution, text replacement, PowerClip edits, lens/effect edits, or import placement, first inspect the generated Corel COM wrapper under Python's win32com.client.gencache folder and script against the exact installed CorelDRAW version. Use page previews before and after.
magick identify -format "%f %[channels] %[pixel:p{0,0}] %wx%h\n" *.pngmagick montage *.png -thumbnail 180x180 -set label "%t" contact_sheet.pnginspect on the edited copy and export a preview before reporting success.CorelDRAW.Application.<version> is more deterministic than the version-independent ProgID when multiple Corel versions exist.