# PDF - Export

`Spec related test of PDF-export`

### Test description:

### There are four ways to export to PDF:

- From the Function bar -> direct export without the option dialog.

- From Menu File – Export...

- From Menu File – Export as PDF...

- From Menu File – Send – Document as PDF Attachment

> Enable the „StarOffice dialogs“ under Menu Tools -> Options -> StarOffice -> General!

> The export to PDF operates in the background so the user can't see the process, only the progress in the status bar.
> The result can only checked with an external program like acroreader.

- Create a wirter document with several pages or open any file.

- Click on the "Export Directly as PDF"-button on the Function bar.
  Save as dialog will appear and the title of the dialog shows “Export as PDF”.
  Give a name and click on the Export button.

- Open the exported file with Acrobat-Reader and compare the document.

- Export the same document to PDF over the Menu – File – Export as PDF.

- If you choose the same file name for the PDF file, a warning should popup about overwriting the existing file.

- After clicking on Export the Options dialog should appear. !The range between the options- and Save as-Dialog will changed! (OOo issue 13154).

- The PDF options dialog is persistent. The last settings should be the same on next call.

### PDF-Options - General

- Test this section (TabPage General) 3 times to test all options about the page ranges.

  - Export once all pages of the document. (default)
    Compare the result with Acrobat-Reader.

- Export a document with 5 pages as example with page 1, 3 and 5.
  Type in the field for pages: 1;3;5
  So you should get the 3 pages as an PDF-file. Compare with Acrobat-Reader whether the right pages are exported.

- Export several paragraphs as one PDF-file:
  Select several paragraphs with pressed Ctrl-key over more pages.
  Select at the Optionsdialog Selection.
  Compare the result with Acrobat-Reader.
  You should get a PDF file with only your selected Paragraphs or words.

- For the further test, use a document with images to test the image quality options.

  - Export once with lossless compression

  - Export several with JPEG (default) compression by playing with the quality (default = 90%) radio button to see the effect on exported document.

  - Export document with reduced image resulution (default = unchecked) with all given values
    Compare the size of the PDF-files with a file manager.
    The Screen optimized file should have the smallest and the Press optimized should have the biggest size.
    In the same way the Screen optimized has a medium quality and low resolution(600dpi) and Press optimized has the max quality and high resolution(2400dpi).

- Small introduce about the General options

  - Tagged PDF will export special tags into the corresponding PDF tags. Usefull for PDA's.
    Disadvantage: File size increase.

  - Export notes: If the document include notes, they will be also inculded to the exported PDF-Document.

  - Use transition effects will be enabled to export Impress slide transition effect to respective PDF effects.

NOTE: The next options are providing together too much possibilities to list them all. So test them in own discretionary.
They are added to improve the PDF-Export.
See the specification: http://specs.openoffice.org/appwide/pdf_export/PDFExportDialog.odt

### PDF-Options – Initial View

- Panes

  - Page only

- Bookmarks and page

- Thumbnails and page

- Magnification

  - Default

  - Fit in window

  - Fit width

  - Fit visible

- Page layout

  - Default

  - Single Page

  - Continuos

  - Continuos facing

### PDF-Options – User Interface

- Window options

  - Resize window to inital page – Adjust window to the first page.

  - Center window on screen – The PDF viewer window is centered to the screen when the PDF document is opened.

  - Open in full screen mode - The PDF viewer window should opened full screen when the document is opened.

- Display document title - Specifies that the title of the document, if present in the document properties, is displayed in the PDF viewer window title bar

- User interface options

  - Hide menubar - Hides the PDF viewer menubar from opened document.

  - Hide toolbar - Hides the PDF viewer toolbar from opened document.

  - Hide window controls - Hides the PDF viewer controls from opened document.