Saving Writer documents as web pages

From Apache OpenOffice Wiki
< Documentation‎ | OOoAuthors User Manual‎ | Getting Started
Revision as of 19:49, 2 July 2018 by Sancho (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



Saving Writer documents as web pages

Writer's HTML capabilities include saving existing documents in HTML format, creating new documents as HTML and creating several different types of web pages using a wizard.

The easiest way to create HTML documents is to start with an existing Writer document. You can view it as it will appear on a web page by using View > Web Layout.

Top of page

Saving a document as a single web page

To save a document as a single web page (HTML format), select Save As from the File menu and specify HTML Document as the file type.

Documentation note.png Writer does not replace multiple spaces in the original document with the HTML code for non-breaking spaces. If you want to have extra spaces in your HTML file or web page, you need to insert non-breaking spaces in OOo. To do this, press Control+Spacebar instead of just Spacebar.

Top of page

Saving a document as a series of web pages

Writer can save a large document as a series of web pages (HTML files) with a table of contents page. To do this:

  1. Decide which headings in the document should start on a new page and make sure all those headings have the same style (for example, Heading 1).
  2. Select File > Send and click on Create HTML Document.
  3. In the dialog (Figure 3), enter the file name to save the pages under. Also specify which style indicates a new page (as decided in step 1).
  4. Click Save to create the multi-page HTML document. (For those who may be interested, the resulting HTML files conform to the HTML 4 Transitional.)
Figure 3. Creating a series of web pages from one document.

Top of page

Creating web pages using a Wizard

OOo's Web wizard allows you to create several types of standard web pages. To use it:

Select File > Wizards > Web Page. On the first page of the Wizard (Figure 4), choose settings and click Next.

Note: If this is your first web page, the only settings option is Default.

Figure 4. Web page wizard step 1.

Choose or browse to the document you would like to format and add the Title, Summary and Author information as shown in Figure 5. Click Next.

Figure 5. Web page wizard step 2.

Chose a layout for the web site by clicking on the layout boxes shown in Figure 6. Click Next.

Figure 6. Web page wizard step 3.

Chose the information to be listed and the screen resolution, as shown in Figure 7. Click Next.

Figure 7. Web page wizard step 4.

Select a style for the page. Use the drop-down list, shown in Figure 8, to choose different styles and color combinations. You can browse to a background image and icon set from the Gallery. Click Next.

Figure 8. Web page wizard step 5.

Enter general information such as Title and HTML Metadata information, as shown in Figure 9. Click Next.

Figure 9. Web page wizard step 6.

Chose where to save the file and preview the page if you wish, as shown in Figure 10. Click Finish.

Figure 10. Web page wizard step 7.

To edit or view the document's underlying HTML code, click View > HTML Source or click the HTML Source icon HTMLSourceIcon.png on the Main toolbar.

Top of page

Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
[[Category:Getting Started (Documentation)]
Personal tools