Skip to main content
December 18, 2013
Question

Converting All Figures in Anchored Frames With Callouts

  • December 18, 2013
  • 4 replies
  • 2238 views

I need to take a few hundred linked graphics in anchored frames that have FrameMaker callouts,save them as PNG files with the callouts embedded (yes, I know I won't be able to edit the callouts later) using different names (or another location), and relink to the new graphics. Doing this one by one is doable, but suboptimal.

I'm not sure if I need a script, some other tool, or if there is some easy way I am missing. Anyone else have to do this and can give me a pointer or two?

Thanks,

Marc

This topic has been closed for replies.

4 replies

Inspiring
December 19, 2013

I've done similar things with a series of FrameScripts that Rick Quatro

wrote for me a couple years ago, so I suspect it's possible.

I'll CC Rick (frameexpert@truevine.net) so he's aware of the thread; he may

be able to give you feedback.

Art Campbell

art.campbell@gmail.com

"... In my opinion, there's nothing in this world beats a '52 Vincent and

a redheaded girl." -- Richard Thompson

No disclaimers apply.

DoD 358

I support www.TheGrotonLine.com, hyperlocal news for Groton MA.

frameexpert
Community Expert
Community Expert
December 19, 2013

Hi Marc, As Art said, I have done various projects like this with FrameScript. If you send me a sample document or two offlist and tell me your exact specs, I can give you a quote. Thank you very much.

Rick

rick at frameexpert dot com

www.frameexpert.com
Bob_Niland
Community Expert
Community Expert
December 19, 2013

This isn't a full solution, but does reduce the workload.

Using Acrobat Pro (possibly Standard, probably not Reader),

use the Document > Split Document feature set to:

(*) Number of Pages [ 1 ]

and:

Output Options:

[*] Use Label [ Page ]

The file names won't be your image IDs, however.

This gives you the original PDF as single file per page, which dramatically enhances options for batch processing with other apps.

For example, you could use PhotoShop to batch convert those .pdf's to .png's, with full control over res. Illustrtator can also do this (File > Export), with res control.

You could actually re-import those page images back into the FM doc, using Graphic Frames (clipping paths) to hide all page content except the desired images.

December 19, 2013

I'm not sure how this would save time in the end. For one thing, I still need to rename all the graphics to their original names, or have some method of otherwise correlating old to new. I am dealing with several very large documents, including one about 1000 pages. By the time I match up file IDs, I could just have done screen shots of the graphics and resave them as appropriate.

frameexpert
Community Expert
Community Expert
December 19, 2013

It would save a ton of time. The script would name the composite graphics using a similar (or same) name as the original, and then reimport them into the appropriate anchored frames. Estimate your time doing it by hand, then take the cost of FrameScript and a script to do it, and you will be way ahead.

www.frameexpert.com
Community Expert
December 19, 2013

You might also use Mif2Go to export your graphics as PNG. As far as I know you could also use the demo version for just the export. The demo version changes only the text which does not matter for you anyway. Mif2Go has many settings to control the graphics export.

http://mif2go.com/

December 19, 2013

I happen to have Mif2Go and tried this, but encountered a couple of issues.

  1. Mif2Go really hates spaces in file names.
  2. The resultant quality is very bad, as in so unreadable to be useless.
Bob_Niland
Community Expert
Community Expert
December 18, 2013

Can we ask why?

And what is the graphics file format of the graphics?

In particular, are any EPS or PDF (which would generally rule out marque screengrabs from within FM).

If I had this requirement, and firing the client wasn't an option ...

I might look at save-as-HTML or save-as-XML, selecting PNG as the graphic format, and see what FM does with the callouts in that case.

I haven't played with it much, because it is so brain-dead that it won't even save SVG as SVG (which is already XML), much less save vector EPS or PDF as SVG.

If you have TCS, I suspect RoboHelp might provide the control required to optimize the resulting XML objects, but I have no guesses as to whether the callout text would be rasterized and flattened into the graphic PNG.

Arnis Gubins
Inspiring
December 18, 2013

Note: any FM process that exports a compound graphic, e.g. the anchored frame with callout, will use the Windows GDI rendition, so no matter what resolution you specify, you will be dealing with a base 96dpi image (or whatever you have your graphics set to in Windows).

If you want maximum fidelity, then it would be best to create a PDF and save the graphics image from there. I would recommend a script that collects all AFrames and copies them to a new FM file. Save that file as PDF, then use Acrobat to export the pages as PNG images (you might have to crop pages in Acrobat).

Legend
December 19, 2013

Might Tools > Document processing > Export all images help, once the content is a .pdf?