Generate HTML from FrameMaker Document

Q

How to generate an HTML file from a FrameMaker document? I want to view the document in a Web browser.

✍: FYIcenter.com

A

You can follow this tutorial to generate an HTML file from a FrameMaker book.

1. Open the FrameMaker document like FM-Document-Example.fm.

2. Select the FrameMaker document in the document panel, if you have multiple documents open. Then click "File > Save As" menu You see the "Save Document" screen.

3. Enter the text file name like "FM-Document-Example". And make sure that "Save as type" is set to "HTML (*.htm)".

4. Click "Save".

5. Wait for FrameMaker to finish generating the HTML file.

6. Go to the folder where the HTML file was saved. You actually see two files generated:

FM-Document-Example.htm - Contains HTML code for the document
FM-Document-Example.css - Contains display CSS styles 

7. Open FM-Document-Example.htm in a Web Browser. You see that the page layout and other formatting attributes are removed from the HTML version.

8. Open the HTML file in a text editor. You see how the document content is organized.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<META NAME="GENERATOR" 
   CONTENT="Adobe FrameMaker 2016/HTML Export Filter">
<LINK REL="STYLESHEET" HREF="FM-Document-Example.css" 
   CHARSET="UTF-8" TYPE="text/css">
<TITLE> </TITLE></HEAD>
<BODY>
<P CLASS="Body">
<A NAME="pgfId-998390"></A>First FrameMaker Document</P>
<P CLASS="Body">
<A NAME="pgfId-998556"></A>By FYIcenter.com</P>
<P CLASS="Body">
<A NAME="pgfId-998553"></A>&nbsp;</P>
<P CLASS="Body">
<A NAME="pgfId-998496"></A>This is our first FrameMaker document. 
A FrameMaker document a single-file document created in FrameMaker and 
saved in FrameMaker file format (.fm). </P>
<P CLASS="Body">
<A NAME="pgfId-998516"></A>&nbsp;</P>
...

The picture below shows you how to generate HTML from a FrameMaker document:
Generate HTML from FrameMaker Document

 

Create and Update FrameMaker Documents

⇒⇒FrameMaker Tutorials

2018-01-16, 280👍, 0💬