User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

You can use macros described in this chapter to export specified shapes only from document. You may do it without using slices. I called my own alternative as Export Slice Objects (ESO).

In contrast to standard slicing technique with using a special layer and draw slice rectangles, in my solution - you assign a special information directly into shapes which you want to export. Another difference is that you may change position and resize this marked shapes within your document and you will still be able to export only this objects properly.

You may export any kind of CorelDRAW shapes using this technique. Only thing you must do is to select a desired shape and run mark ESO object macro mark for ESO icon. This operation works in two ways:

  • Marks selected object to be exported later
  • Assign the output file name

 

Optionally you may set custom resolution and Anti-Aliasing for objects.

I use this macros especially for exporting a number of print screen for Krasbit Layouter to use in this documentation. Therefore default settings are ESO resolution: 72 dpi and Anti-Aliasing: 0 (none) to get 1:1 sharp jpeg files for my screenshots. If you want use ESO for vector graphics or custom groups of objects, then you should use Anti-aliasing (set this parameter to: 1 using this macro ESO antialiasing).

 

When you finished with marking objects you want to export, save your project and run export the marked ESO objects export ESO objects macro. Once you take some time to assign ESO names for objects, then you may export jpeg files for all of marked objects with a one command any time you make some changes for this objects. All of files will be generated into a subdirectory where the active document resides named as the document name + suffix "_ESO".

The example video

 

The ESO macros:

clear ESO data clear ESO data from object

macro: Layouter.clearESOdata

This macro clears all of related ESO data from selected object(s). Use it if you do not want to export this object after you have marked it previously.

mark ESO object mark ESO object

macro: Layouter.markForEso

This macro marks selected object to be exported later. You will be prompted to enter output name for this object.

set resolution of the ESO object set resolution of the ESO object

macro: Layouter.ESOResChange

Use this macro to change default resolution used while exporting objects. The default value: 72dpi

set anti-alias of the ESO object set anti-alias of the ESO object

macro: Layouter.ESOAntiAliasChange

Use this macro to change default Anti-Alias value used while exporting objects. The default value: 0 (none). You may use 1 - normal anti-aliasing, 2- supersampling.

export the marked ESO objects export the marked ESO objects

macro: Layouter.exportESO

Run this macro after you have marked for ESO all objects you want to export. All of files will be generated into a subdirectory where the active document resides named as the document name + suffix "_ESO". Export will be done only for defined page range.

Range

Here you choose a desired range (current page, pages FROM - TO, all) for which pages the generation of JPEG images should be processed.