Table of contents

This is a scenario for creating headings in documents and production of valid table of contents in the result PDF (PDF “bookmarks”).

Disclaimer: You are free to reuse it “as-is”, on your own responsibility and without any guarantee whatsoever. No rights can be derived from, successfully or unsuccessfully, completing the steps outlined below.

Steps

1. Create document:

  1. Open the application
  2. Create a new empty text document
  3. Place first line: heading 1, assign style heading 1 (level 1 heading)
  4. Place second line: text 1
  5. Place a page break
  6. Place third line: heading 2, assign style heading 2 (level 2 heading)
  7. place 4th line: text 2
  8. Place a page break
  9. Place 5th line: heading 4, assign style heading 4 (level 4 heading)
  10. Place 6th line: text 4
  11. Place a page break
  12. Place 5th line: heading 3, assign style heading 3 (level 3 heading)
  13. Place 6th line: text 3

Checks:

  1. The processor supports heading levels
  2. The processor allows headings to be “out of sync” (from 2 to 4 back to 3)
  3. PDF presents bookmarks of the right level, at the correct location in sequence, with right indentation, and a click on the bookmark leads to the correct page.

2. Insert a document TOC

Insert a Table of Contents for the entire document:

  1. Created from the outline (= bookmarks), upto at least 4 levels.
  2. Do not include index marks.
  3. Protect the table against manual changes.
  4. Give the TOC the title “Table of Contents”.

Place the table below the paragraph that reads “text 1”.

Check:

  1. The TOC represents 4 headings with the full text of the heading, leading dots, and the page number. The style associated with the headings is Contents 1…4. The TOC entry is *not* a link.
  2. The Title of the TOC is “Table of Contents”. It is associated with the TOC body.
  3. The table cannot be edited manually.

Files

ODF file PDF preview
OOo 3.1

Tracker

A list of known issues. Implementations not listed here may or may not work as expected. Results may vary depending on user settings and computer environment. Use at your own risk.

Step 1 (PDF results generated by the following tools using the Office Shots server application) (Note: this also tests PDF-creation, so issues may be PDF-related):

Nr Status Write Read Comment
001 OK OOo 3.1 Symphony 1.3 (Windows) OK
002 OK OOo 3.1 OOo 3.1 (Windows) bookmarks generated okay, references work
003 OK OOo 3.1 Go-OO 3.0 (Linux/BSD)]] bookmarks generated okay, references work
004 Open OOo 3.1 Aspose 6.4.1 (Windows) no bookmarks
005 Open OOo 3.1 AbiWord 2.6.8 (Linux/BSD) no bookmarks

Step 2 (PDF results generated by the following tools using the Office Shots server application) (Note: this also tests PDF-creation, so issues may be PDF-related):

Nr Status Write Read Comment
001 Open OOo AbiWord 2.6.8 (Linux/BSD) TOC contains unexpected numbering
002 OK OOo Go-OO 3.0 (Linux/BSD) OK
003 Open OOo 3.0.1 (Ubuntu) Symphony 1.3 (Windows) TOC background gray is actual gray (is exported to PDF as gray). When the document is saved again and opened in OpenOffice 3.0.1 ubuntu and printed to PDF again, the background is blank as originally expected.

Analysis

scenarios/20090615/toc.txt · Last modified: 2010/10/24 18:14 (external edit)
www.ez.nl www.noiv.nl www.opendocsociety.org