About getting information of text inside AI format
Posted: 2008-11-17T21:31:09-07:00
First, I would sorry to know if there is any topics that would mention the same problems. In case of so, please tell the me links, I would be happily switch to that topic.
After weeks trying get around with some problems arised from processing PSD format, I changed my target to a different one : AI format.
As I do some searching on the net, I get the AI 7 file specification ( in pdf ), and it show me some informations about how text is stored in and text's attribute. Right now I need to read the style of text in AI format file ( which is of 3 category : point text,area text and path text ), then apply to some text ( through some programming ), at the end, output to a JPG or GIF file with the style of text in AI for the specific text in programming.
Maybe I would describe more details :
I read in the AI specification that the font,colours and size of text is stored in some objects with the name of <textstyle>, as you might know that the AI stored objects inside with the BNF Syntax ( Backus-Naur Form ). So I think logically there would be able to read style of text inside AI file.
What I need now is use some programming language ( whatever it is ), and read the STYLE of the text inside a self-create AI file ( like I set color of the text to red, font size to 32, text = I Love U ) so I would have the output of program like : font = Tahoma, size = 32, colour = red , then apply these settings to a text "I love U so Much" with the properties ( style ) I just read from the text of AI file which is : colour = red, font =Tahoma size= 32, then make an output GIF/JPG which would display it.
I come to think of ImageMagick coz it's have powerful library for programming plus, we 've all known, ya free to study, I would keep searching for the informations about how to read the style, but would someone know the way, please tell me how, or some links, that would save me from re-invented the wheels, thanks in advance for all who read. Peace & out.
After weeks trying get around with some problems arised from processing PSD format, I changed my target to a different one : AI format.
As I do some searching on the net, I get the AI 7 file specification ( in pdf ), and it show me some informations about how text is stored in and text's attribute. Right now I need to read the style of text in AI format file ( which is of 3 category : point text,area text and path text ), then apply to some text ( through some programming ), at the end, output to a JPG or GIF file with the style of text in AI for the specific text in programming.
Maybe I would describe more details :
I read in the AI specification that the font,colours and size of text is stored in some objects with the name of <textstyle>, as you might know that the AI stored objects inside with the BNF Syntax ( Backus-Naur Form ). So I think logically there would be able to read style of text inside AI file.
What I need now is use some programming language ( whatever it is ), and read the STYLE of the text inside a self-create AI file ( like I set color of the text to red, font size to 32, text = I Love U ) so I would have the output of program like : font = Tahoma, size = 32, colour = red , then apply these settings to a text "I love U so Much" with the properties ( style ) I just read from the text of AI file which is : colour = red, font =Tahoma size= 32, then make an output GIF/JPG which would display it.
I come to think of ImageMagick coz it's have powerful library for programming plus, we 've all known, ya free to study, I would keep searching for the informations about how to read the style, but would someone know the way, please tell me how, or some links, that would save me from re-invented the wheels, thanks in advance for all who read. Peace & out.