Skip to main content
Participant
March 9, 2018
Question

Handling Anchored frame with text frame for HTML export - how do I?

  • March 9, 2018
  • 3 replies
  • 819 views

Hello,

I created a framemaker document with the following content:


Heading

Body text before frame

First line of text frame in anchored frame

Last line of text frame in anchored frame

After Frame


When I export it to HTML ("Save as" -> HTML) the contents of the anchored frame are converted into an image. The following is the code I get (leaving out the HTML headers) - note the IMG:

<TITLE>Heading</TITLE></HEAD>

<BODY>

<DIV>

<H2 class="Heading1">

<A NAME="pgfId-473591"></A>Heading</H2>

<P class="Body">

<A NAME="pgfId-929642"></A>Body text before frame</P>

<P class="Body">

<A NAME="pgfId-929663"></A> </P>

<DIV>

<MAP NAME="Test_Export-1">

</MAP>

<IMG SRC="Test_Export-1.gif" USEMAP="#Test_Export-1" ALT="">

</DIV>

<P class="Body">

<A NAME="pgfId-929653"></A>After Frame</P>

</DIV>

</BODY>

Framemaker is also generating the Test_Export-1.gif image - with the contents of the frame. How do I instead export the contents of the text frame directly in HTML (either inside a single celled table or just inline with the text)?

I'm a beginner in using Framemaker - so please forgive if I'm missing something very basic. Thanks for any help!

Regards,

Karthick

    This topic has been closed for replies.

    3 replies

    karthickgAuthor
    Participant
    March 11, 2018

    Hi all,

    Thanks for your help and suggestions.

    I got what I needed using MIF2GO plugin. For those who look at this ticket later, this is the option:

    If your FrameMaker document includes text frames inside anchored frames (for example, for sidebars or notes), you might want the text in those frames to appear in line with the main flow in HTML.

    To include text-frame content in line:

    [HTMLParaStyles]

    ; TextFrameIsText is applied to an anchor para format to cause

    ; anchored frames containing a text frame to be rendered as in-line

    ; text.

    AnchorParaFmt = TextFrameIsText

    Regards,

    Karthick

    Community Manager
    March 10, 2018

    Anchored Frames and their content are always converted into a GIF image for HTML output.

    One alternative might be to implement a process that export anchored Frames and their content into an SVG and reimports it as referenced graphic before export to HTML.

    Jang Graat from http://www.smartinfodesign.com/  has such a solution.

    4everJang
    Legend
    March 10, 2018

    Hello Karthick,

    Yes, I did create an "anchored frame with text etc to SVG" conversion script. That has the advantage of not needing to create a table (which is really not a good replacement for what you are trying to do. Also you can place an image (screen shot or photo) and add text plus ellipses, rectangles, polygons, arrows to the anchored frame and then convert the whole thing to an SVG.

    The script also allows editing text in any SVG that is imported into an anchored frame.

    Let me know if this would be of interest to you. I am not actively selling this yet as it is not at product status, but we can probably figure something out.

    Kind regards

    Jang F.M. Graat

    Smart Information Design

    Amsterdam, Netherlands

    Matt-Tech Comm Tools
    Community Expert
    Community Expert
    March 9, 2018

    Hi Karthick,

    Anchored frames will be converted as graphics, so you'll want to find a different way to represent the text inside of FrameMaker.

    You're on the right path by considering a single-celled table or other representation within FrameMaker.

    Can you provide a screenshot so we can give you ideas?

    -Matt

    -Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant
    Bob_Niland
    Community Expert
    Community Expert
    March 9, 2018

    TCT*: Anchored frames will be converted as graphics, so you'll want to find a different way to represent the text inside of FrameMaker.

    SVG can contain text. SVG can be passed through more recent versions of FM to HTML or XML. What become of the text in that case?

    But for a rapid fix, a borderless table with graphics in cell (run-around off, text overlay) might be a quicker fix.

    _______
    *TCT: Actual user name now lost to history. Not even in avatar hover bio. Might need a look.

    Jeff_Coatsworth
    Community Expert
    Community Expert
    March 9, 2018

    @Bob Niland - that would be Matt Sullivan