I'm using the CorelDraw 11 VBA script to convert cdrs to jpgs. The resulting jpg includes layers I'd turned off. Does anyone know if there is a way to make the script only convert the layers that are turned on? thanks...
If you alter your script to dump out to another format (say Illustrator) that is vector; do you get the same results? What about the PDF export?
Do you have any code we can look at?
You can also try, doing a for next on a group of objects that are visible and selecting them and then dumping them to a temporary buffer page and then exporting the buffer page.
I tried all the export formats with the same result.
In terms of code, its the standard VBA bulk file exporter that comes with CorelDraw 11...
I checked out the pdf guide to VBA that comes with Corel (dvba_pg.pdf) and it seems to say that the individual layers cannot be exported using Corelscript...
"Files are exported from the Document not Layer objects, since the range of shapes exported often extends over
multiple layers, and even over multiple pages."
This implies I cant use Corelscript, which is a problem as I've about 5000 images to convert!
If I export an image using the File-Export option within Corel it only picks active layers. I take it this is using a different command. Does anyone know if its possible to run these regular commands at the command line?
When I file/export a cdr to jpg with 2 layers (1 hidden) it exports both layers to the jpg. I tried several other formats with layer/bitmap methods (like photoshop) and the same result happened.
What I did try was the following;
- created a blank document
- imported into the active layer the CDR file (Doc.Pages(1).ActiveLayer.Import filename)
- shows both layers, but groups each layer as groupings (IE: Group of 2 objects, then the two groups underneath it (origianlly layer 1 and 2). Both of these groups are under the new docs layer 1.
- then selected the first group (layer 1) and deleted it
- export the file to JPG
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.