Import / Export 9 entries
import, export, save and print
Entries in this section
- layer.Import(path, 0, None)Imports an image or SVG. 0 means auto-detect the format. The object ends up selected, so g
- doc.ExportEx(path, filter, options)General export. filter takes a cdrFilter value; pass None to use the default options.
- doc.PublishToPDF(path)PDF export. Fewest arguments, most reliable — the first choice for print delivery.
- doc.ExportBitmap(...)Bitmap export with a ten-argument signature (width, height, dpi, antialias, dither, transp
- doc.Save()Saves to the existing path.
- doc.SaveAs(path)Saves under a new path and points the document at it.
- doc.PrintOut()Prints. Takes a PrintOptions object.
- doc.Close()Closes the document. Unsaved changes raise a dialog that blocks the script — save first.
- app.OpenDocument(path)Opens an existing file. For batch edits, walk them with app.Documents.Item(i).
Getting StartedConnection & InitApplicationDocumentPageLayer & ShapesGeometry & TransformGroup / Order / BooleanShape AppearanceTextTextRangeFillOutlinePowerClipFountain FillPattern / Texture FillTransparency & BlendEffectsColorCurve & NodeBitmapFind & TraverseUnits & ConversionImport / ExportEnumerationsObject DataAlign / DistributeLayer AdvancedView & PerformanceEventsRecipesPitfalls