OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > Macros/Add-ons

Thread Tools Search this Thread Display Modes
Old 08-08-2011, 08:38
Posts: n/a
Default Modifying File Converter to Copy Tags

I have a large number of CDR files that I am going to convert to JPG to display in a photo gallery application. The CDR's are tagged with keywords, and I would like transfer these keywords to the JPGs to make them more searchable.

The CDR keywords are stored in XML, and the JPGs will be stored in XMP, so there doesn't seem to be any easy way to just extract the keywords and copy them over to the JPG's. However, when exporting a JPG, there is a dialog for entering keywords, so it seems like it might be possible to adapt the File converter macro to automatically extract the CDR keywords and add them to the jpg.

I've only made minor modifications to macros, so this is well out of my scope. If any one has any good ideas for how to do this, or can point me in the right direction for getting it done, it would be greatly appreciated.

Reply With Quote
Old 08-08-2011, 23:14
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,769
Blog Entries: 10
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Keywords

In X4 and above you should be able to use the Document.Metadata.Keywords to get the keywords for the document. So for the active document you could do something like this:
Sub MyKeywords()
    MsgBox ActiveDocument.Metadata.Keywords
End Sub
You should get a simple message box with the keywords. As for exporting them that is a bit harder, I do not believe Export via VBA supports keywords. So you would have to add them to the JPEG after that fact.

Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File Converter Issue eo04837 Macros/Add-ons 7 05-10-2010 08:23
File converter suggestion vallentin Macros/Add-ons 6 28-09-2005 20:50
File Converter script error CorelDummy CorelDRAW/Corel DESIGNER VBA 2 25-01-2005 08:38
SOME CHANGES OVER FILE CONVERTER olympiatr CorelDRAW/Corel DESIGNER VBA 2 14-04-2004 02:05
Problem with File Converter CMX->EPS starless Macros/Add-ons 4 09-05-2003 08:33

All times are GMT -5. The time now is 04:41.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com