Copy link to clipboard
Copied
Hello fellows,
AFAIK, FM15 is not "aware" of the type of the graphic object that sits inside an anchored frame. Embedded graphics appears as OLE2. Is there a way to programmatically extract embedded Visio graphics from Framemaker files and leave all other types of graphics in place?
Thank you for your responses in advance!
Copy link to clipboard
Copied
Hi Roman, What do you mean by extracting the embedded graphics? Thanks. -Rick
Copy link to clipboard
Copied
Hi Rick,
Thank you for your response!
"Embedded" means not linked/imported by reference - just sitting locally in a FM file.
Best regards,
Roman
Copy link to clipboard
Copied
There is no path data stored for embedded graphics that can be retrieved programmatically. So there is no way to convert them to referenced graphics.
Copy link to clipboard
Copied
Thanks for your prompt response, Rick!
I remember seeing a post regarding a framescript created by GolehTek that was supposed to extract graphics from an FM file. I've never seen the script itself and this company no longer exists. Did you have a chance to test this script?
An embedded Visio object can be opened from Framemaker or edited withing Framemaker by using the corresponding context menus. So why can't this action be mimicked with a script? Going back to my original question, can ES identify the type of graphics put within an anchored frame (i.e., whether it's a jpeg or vsd)?
Thanks again!
Roman
Copy link to clipboard
Copied
Hi rombanks
have a look here, maybe, that can help you.
ExtendScript of the Week: Externalizing Graphics – TechComm Central by Adobe
I have never tested that script.
Copy link to clipboard
Copied
Hi Klaus,
Thanks for your response!
I did test this script in FM10 and it worked partially (didn't support Visio graphics). In FM15, it does not work at all. I guess it's because of the DLL file called by the script.
Best regards,
Roman
Copy link to clipboard
Copied
No direct experience, but some suggestions:
Finally, the FDK documentation sometimes has more informatioin than the Scripting Guide, so might give some further suggestions that can be re-engineered using JavaScript.
Copy link to clipboard
Copied
Hi Mike,
Thank you for looking into this issue. Are the embedded figures treated as insets by FrameMaker?
I'll try to play around with these APIs.
Thank you!
Roman
Copy link to clipboard
Copied
AFAIK:
The above is extrapolated from the C API, with which I am more familiar. But I've not used insets very much, so I'd trust the manuals over anything I say.