WordPerfect lets you publish documents to HTML, XML, and to Portable Document Format (PDF). HTML documents can be viewed on the World Wide Web. PDF documents are viewed using the Adobe Acrobat Reader.
In this section, you'll learn about
publishing to HTML
publishing to XML
publishing to PDF
saving documents as PDF files
working with fonts in PDF files
editing PDF files
optimizing PDF files
Publishing to HTML
When you publish a document to HTML, WordPerfect saves it with a .htm filename extension. You can preview a document in a browser from within WordPerfect.
When you publish graphics to HTML, they are automatically converted to a commonly used Web format. You can also specify a graphics file format. If a graphic consists of few colors or sharp edges, such as in a line drawing, you may want to convert the graphic to the GIF format. If a graphic consists of broad tonal ranges, such as in photographs or scanned images, you may want to convert the graphic to the JPEG format.
To publish to HTML
1 Click File Publish to HTML.
2 Type a name in the HTML filename box.
3 Click Publish.
Tip
You can also choose a file by clicking the Browse button in the HTML filename box.
To preview a Web document
Click View Preview in browser.
To convert a graphic to GIF format
1 Right-click a graphic, and click HTML properties.
2 Click the Publish tab.
3 Enable the GIF option.
4 Enable any of the following check boxes:
Interlaced-lets the image appear interlaced
Transparency-lets you choose a transparency color by opening the Transparent color picker, and clicking a color.
To convert a graphic to JPEG format
1 Right-click a graphic, and click HTML properties.
2 Click the Publish tab.
3 Enable the JPEG option.
Publishing to XML
With WordPerfect, you can publish a document to XML, which enables you to reuse the content you created. The XML version of the WordPerfect document is based on the Docbook 4.2 XML DTD. For more information about the the Docbook 4.2 XML DTD, see http://www.docbook.org or http://www.oasis-open.org/docbook/xml/4.2/index.shtml.!ef(http://www.oasis-open.org/docbook/xml/4.2/index.shtml)
Most of the WordPerfect document content is mapped to an equivalent element in the XML document, however, some of the content is not published to XML. In addition, subdocuments are not published as separate documents, they are integrated into one XML document.
For information about the WordPerfect document features that are supported when publishing to XML and how the document content is mapped to the Docbook elements, see "Publishing documents to XML."
To publish a file to XML
1 Click File Publish to XML.
2 Type a name in the XML filename box.
3 In the Graphic output options area, enable one of the following options:
GIF
JPEG
4 Click Publish.
You can also
Specify that a GIF image appear interlaced Enable the Interlaced check box.
Specify that a GIF image be transparent Enable the Transparent check box.
Specify the transparency color of GIF images Click the Transparent color picker, and click a color.
Specify the quality of a JPEG image Move the Quality slider or type a value in the Quality box.
Tip
You can also choose a file by clicking the Browse button in the XML filename box.
Publishing to PDF
WordPerfect lets you publish documents to PDF. Adobe Acrobat Reader allows you to print, view, and share PDF files. You can install Adobe Acrobat Reader from the WordPerfect Office CD.
You can publish the active document or a document to which you have access.
When you publish a table of contents, index, list, or table of authorities to PDF, WordPerfect numbers each marked heading or subheading sequentially. The entries display in the PDF as numbered bookmarks in the document.
To install Adobe Acrobat Reader
1 Insert the WordPerfect Office CD 2 into the CD drive.
If the Setup wizard does not start automatically, proceed to step 2; otherwise, proceed to step 4.
2 Click Start on the Windows taskbar, and click Run.
3 Type D:\SETUP, where D is the letter that corresponds to the CD drive.
4 Click Adobe Acrobat Reader setup.
5 Follow the instructions in the Adobe Acrobat Reader setup program.
To publish the active document to PDF
1 Click File Publish to PDF.
2 Click the General tab.
3 In the Filename list box, click Browse.
4 Choose the drive and folder where you want to save the file.
5 Type the filename in the Filename box.
6 Click Save.
7 In the Export range area, enable one of the following options:
Full document-publishes the entire file
Current page-publishes the active page only
Pages-publishes a portion of the file
Selection-publishes selected text
Notes
The following document summary information is retained when you publish a document to PDF: title, subject, author, and keywords.
You can view the progress of a document on the PDF status bar. The status bar notifies you when a document has finished publishing.
Tip
If you enable the Pages option in the Publish page number boxes, you can type the numbers of the pages that you want to publish. For example, typing 1-5 lets you publish pages 1 to 5, whereas typing 1,5 lets you publish pages 1 and 5.
Saving documents as PDF files
You can save a document as a PDF file. A PDF file can be viewed, shared, and printed on any platform provided that users have Adobe Acrobat or Adobe Reader installed on their computers. A PDF file can also be placed on an intranet or the World Wide Web.
When you save a document as a PDF file, you can choose from five preset PDF styles, which apply settings that are specific to a particular PDF style. For example, with PDF for the Web style, the resolution of the images in the PDF file will be optimized for the World Wide Web. You can also create a new PDF style or edit a preset style.
To save a document as a PDF file
1 Click File Publish to PDF.
2 Click the General tab.
3 From the PDF style list box, choose one of the following options:
PDF for document distribution-is best used for general document delivery. These documents can be printed on a laser or desktop printer.
PDF for the Web-uses JPEG bitmap compression, embeds fonts, and compresses text for publishing the document to the World Wide Web
PDF for editing-uses LZW compression, embeds all fonts, and includes hyperlinks, bookmarks, and thumbnails. It displays the PDF file with all the fonts, all of the images at full resolution, and hyperlinks, so that you can edit the file later
4 Choose the drive and folder where you want to save the file.
5 Type a filename in the Filename box.
6 Click Save.
To create a PDF style
1 Click File Publish to PDF.
2 Click the General tab.
3 Click Add.
4 In the Save PDF style dialog box, type a name for the style in the Save PDF style as list box.
Tip
If you want to delete a PDF style, choose a style from the PDF style list box, and click Delete.
To edit a PDF style
1 Click File Publish to PDF.
2 Click the General tab.
3 Click Add.
4 In the Save PDF style dialog box, choose a style from the Save PDF style as list box.
Note
When you edit a preset PDF style, you must save the preset style settings with a new name to prevent the original settings from being overwritten.
Working with fonts in PDF files
You can embed fonts in a PDF file, including base 14 fonts. Embedding fonts increases the file size but makes a PDF file more portable, since the fonts do not have to reside on other systems. When you embed base 14 fonts, WordPerfect adds them to your system, thus eliminating font variances on different systems. The base 14 PostScript fonts are resident on all PostScript devices.
You can also convert TrueType fonts to Type 1 fonts, which can increase file size if there are many fonts in a file. When you convert fonts, you can reduce file size by subsetting Type 1 fonts if you use only a smaller number of characters (for example English characters A to E).
You can also eliminate font variances on different computers by exporting text as curves. For example, if you are using unusual text characters, you can export the text as curves. This method does not use fonts, thus eliminating problems with font variances on different systems. Exporting text as curves increases the complexity of the file and can increase file size. For general document publication, embed fonts in a document rather than convert text to curves.
To embed fonts in a PDF file
1 Click File Publish to PDF.
2 Click the Objects tab.
3 Enable the Embed fonts in document check box.
If you want to install the basic fonts to your computer, enable the Embed base 14 fonts check box.
To convert TrueType fonts to Type 1 fonts
1 Click File Publish to PDF.
2 Click the Objects tab.
3 Enable the Convert TrueType to Type 1 check box.
If you want to reduce file size, you can create a subset of Type 1 fonts by enabling the Subset fonts check box and typing a percentage of fonts used in the Under % of charset box.
Note
If you create a subset of Type 1 fonts, you should not edit or correct the PDF file using Adobe Acrobat, since the characters you add when editing may not be present in the file.
To export text as curves
1 Click File Publish to PDF.
2 Click the Objects tab.
3 Enable the Export all text as curves check box.
Editing PDF files
You can include hyperlinks and bookmarks in a PDF file. Hyperlinks are useful for adding jumps to other Web pages or to Internet URLs. Bookmarks allow you to link to specific areas in a PDF file. When the PDF file is first opened in Adobe Acrobat or Acrobat Reader, you can specify whether bookmarks are displayed.
You can reduce the size of a PDF file by compressing bitmaps. Bitmap compression is available for JPEG, LZW, or ZIP files. Bitmaps using JPEG compression have a quality scale ranging from 2 (high) to 255 (low). The higher the image quality, the larger the file size. Downsampling color, grayscale, or monochrome bitmaps also reduces file size.
ASCII and binary are encoding formats. When you publish a file to PDF, you can choose between exporting ASCII or binary files. ASCII creates files that are fully portable to all platforms. Binary creates smaller files that are less portable, since some platforms cannot handle the file format.
You can embed any type of file in a PDF file. For example, you can embed the WordPerfect file from which the PDF file was generated.
When you publish to PDF, you can choose the color model to apply to a file. WordPerfect lets you publish a PDF file with no color (grayscale) or use the RGB or CMYK color models. If you go to prepress, you may want to maximize color processing by selecting CMYK. If you post a PDF file to the World Wide Web, you may want to optimize the file size for the medium and choose RGB. Selecting grayscale produces the smallest PDF file of the three methods.
To include hyperlinks and bookmarks in a PDF file
1 Click File Publish to PDF.
2 Click the Document tab.
3 Enable any of the following check boxes:
Include hyperlinks
Generate bookmarks
If you want to display bookmarks on startup, enable the Bookmark option in the On start, display area.
To compress bitmaps in a PDF file
1 Click File Publish to PDF.
2 Click the Objects tab.
3 Choose one of the following from the Compression type list box:
LZW
JPEG
ZIP
Tips
If you choose JPEG compression, you can specify the compression quality by moving the Quality factor slider.
You can compress text and line art in a PDF file by enabling the Compress text and line art check box.
To export a PDF file in an encoding format
1 Click File Publish to PDF.
2 Click the Objects tab.
3 In the Encoding area, enable one of the following options:
ASCII
Binary
To embed a file in a PDF file
1 Click File Publish to PDF.
2 Click the Advanced tab.
3 Enable the Embedded file check box.
4 Click Browse.
5 Choose the drive and folder where the file you want to embed is stored.
6 Double-click the filename.
To choose a color model
1 Click File Publish to PDF.
2 Click the Advanced tab.
3 Choose one of the following from the Output all objects as list box:
RGB
CMYK
Grayscale
Native
Optimizing PDF files
You can optimize PDF files for different versions of Adobe Acrobat or Acrobat Reader. You can select a compatibility to match the kind of viewer the recipients have. In WordPerfect, you can select from three compatabilities.
To optimize viewing of a PDF document on the Web, you can linearize a file to speed up processing time by loading one page at a time.
To select a compatibility
1 Click File Publish to PDF.
2 Click the General tab.
3 From the Compatibility list box, choose one of the following:
Acrobat 3.0
Acrobat 4.0
Acrobat 5.0
To linearize a PDF file
1 Click File Publish to PDF.
2 Click the Advanced tab.
3 Enable the Optimize for Web check box.
Reference: Publishing to the Web
This section contains detailed information about publishing documents to XML.
Publishing documents to XML
This contains information about publishing WordPerfect documents using the Docbook 4.2 XML DTD. The section also lists the categories of items contained in a WordPerfect document and to which Docbook DTD elements they are mapped to when publishing to XML.
The categories are as follows:
General document notes
Paragraph and text
Text attributes
Styles
Tables
Hyperlinks and bookmarks
Comments
Footnotes and endnotes
Chapters
Graphics
Textboxes and legacy equations (Equation editor 5.1 to 7.0)
Outlines
Table of Contents
Table of Authorities
Lists
Indexes
Cross-References
General document notes
When you publish a WordPerfect document to XML, each XML document begins with the standard <?xml?> processing instruction. Each XML document contains the following attributes: UTF encoding, UTF-8, and the XML specification version 1.0. In addition, each document contains a <!DOCTYPE> tag to specify that the Docbook 4.2 XML DTD is used by the xml document.
Each document will begin with the root element <book>. A book will consist of at least one chapter which is contained in the <chapter> element.
If the WordPerfect document contains document properties, the XML document includes a <bookinfo> element. The elements contained within <bookinfo> contain the document properties. For information about document properties see "Using document summaries."
Paragraphs <para> Text is published as it appears in a WordPerfect document, except for extended characters (symbols). Characters or symbols are published using the entity value, which is similar to what happens in HTML.
Text attributes
The only text attributes that are published to XML are: bold, italic, underline, superscript, and subscript. All other attributes are ignored.
Tables <table> Each table contains one <tgroup> (table group) tag which is used to group all table elements.
Table names, for example TABLE A <title> The <title> element is a child of the <table> element .
Columns <colspec> Each column contains three attributes: colname, colwidth, and align.
colname attribute of <colspec> colname identifies a generated column name which may be used for cells that span horizontally
colwidth attribute of <colspec> colwidth specifies column width in inches.
align attribute of <colspec> align specifies column text alignment (justification).
Table headers <thead> <thead> is a child of the <tgroup> element. If applicable, it specifies the header rows in a table. Each <thead> element contains one or more <row> elements, one for each header row in the table. For information about table header rows, see "Creating table header rows and adjusting table rows."
Table rows <row> <row> can be a child of the <thead> or <tbody> element.
Table body <tbody> <tbody> is a child of the <tgroup> element. It contains all non-header rows. Each <tbody> element contains one or more <row> elements, one for each row in the table.
Table cells <entry> The <entry> element can contain the following attributes: align, valign, morerows, namest, and nameend.
align attribute of <entry> Specifies the text justification in a cell.
valign attribute of <entry> Specifies the vertical alignment in a cell.
morerows attribute of <entry> Specifies that the row spans vertically.
namest of <entry> Specifies the column name of the first column for column spanning.
nameend of <entry> Specifies the column name of the last column for column spanning.
Endnotes <footnote> For endnotes, the <footnote> tag contains a role attribute.
role attribute of <footnote> Specifies that the footnote is an endnote.
Chapters
WordPerfect uses chapter numbers to create chapters. For each chapter number that appears in a document, a new chapter is created in an XML document using the <chapter> tag.
Graphics box (anchored to a page or a paragraph) <graphic> The <graphic> element can contain the following attributes: align, valign, width, depth, and format.
Graphics box (anchored to a character) <inlinegraphic> The <inlinegraphic> element can contain the following attributes: align, valign, width, depth, and format.
align attribute of <graphic> or <inlinegraphic> Specifies the horizontal alignment of a graphic.
valign attribute of <graphic> or <inlinegraphic> Specifies the vertical alignment of a graphic.
format attribute of <graphic> or <inlinegraphic> Specifies that a graphic is a GIF or JPG. The value depends on the option chosen in the Publish to XML dialog box.
width attribute of <graphic> or <inlinegraphic> An optional attribute which specifies the width of a graphic in inches.
depth attribute of <graphic> or <inlinegraphic> An optional attribute which specifies the height of a graphic in inches.
Note
A graphic can include an OLE object, but the OLE links will not work in the XML document. You can publish only the graphic portion of the OLE object.
Textboxes and legacy equations (Equation editor 5.1 to 7.0)
mark attribute of <itemizedlist> Specifies the bullet character.
Numbered lists <orderedlist>
List items (bulleted or numbered) <listitem>
numeration attribute of <orderedlist> Specifies the numbering type of the outline. For example, arabic or roman.
continuation attribute of <orderedlist> Specifies if the numbering continues from the previous outline or restarts.
inheritnum attribute of <orderedlist> Specifies if the numbering of the interior levels should contain the number of previous levels (i.e. 4.2.3) or their own number (i.e. 3).
Table of contents entries <tocentry> Includes a series of levels <toclevel1> to <toclevel5> which represent the levels found in the table of content entries.
Table of authorities
Docbook does not have an equivalent element for table of authorities.