Application 13 entries
the CorelDRAW application object
Entries in this section
- app.DocumentsCollection of every open document. The i-th one is app.Documents.Item(i); the total is app
- app.ActiveDocumentThe document in front. Returns None when nothing is open, so wrap it in try/except and fal
- app.CreateDocument()Creates a blank document and returns it.
- app.OpenDocument(path)Opens a .cdr or template file from disk and returns the Document.
- app.ActiveSelectionRange(n)The n-th shape in the current selection, as a single Shape. Use it to grab an image right
- app.ActiveSelectionRangeWith no argument it returns the whole selection as a ShapeRange. Iterate it with for s in
- app.ActiveShapeThe first shape in the selection. Same as ActiveSelectionRange(1).
- app.ActivePageThe active page. Shorthand for ActiveDocument.ActivePage.
- app.ActiveLayerThe active layer. Shorthand for ActiveDocument.ActivePage.ActiveLayer.
- app.ActiveWindow / app.ActiveViewWindow and view object. Zoom is a percentage: app.ActiveWindow.Zoom = 50.
- app.CreateRGBColor(r, g, b)Builds an RGB color object you can pass to Fill.ApplyUniformFill(color).
- app.CreateCMYKColor(c, m, y, k)Builds a CMYK color object. Prefer this for anything that goes to press.
- app.WindowState / app.VisibleWindow state (minimized, maximized, restored) and visibility.
Getting StartedConnection & InitApplicationDocumentPageLayer & ShapesGeometry & TransformGroup / Order / BooleanShape AppearanceTextTextRangeFillOutlinePowerClipFountain FillPattern / Texture FillTransparency & BlendEffectsColorCurve & NodeBitmapFind & TraverseUnits & ConversionImport / ExportEnumerationsObject DataAlign / DistributeLayer AdvancedView & PerformanceEventsRecipesPitfalls