PDF Export in OpenOffice.org

Originally, PDF export in OpenOffice.org was limited to three levels of quality, whose exact differences were obscure to most users. But that was many releases ago. The latest versions of OpenOffice.org provide, for no cost, most of the features available in Acrobat Standard for $299 -- to say nothing of a few features that even Acrobat Pro Extended does not include even at $699. The problem for many people is knowing what options they might want, especially since the wording of the dialog window is sloppy in a couple of places.

For some reason, OpenOffice.org has two Export items listed in the File menu: plain Export and Export to PDF. Which you choose is irrelevant: if you choose PDF as the format in Export, the same PDF Options dialog window opens as when you choose Export to PDF.

The dialog window is divided into five tabs: General, Initial View, User Interface, Links, and Security. Generally, the defaults are reasonable selections, so, if you prefer, the most you have to choose is the range of pages to print. However, the options are worth understanding for those occasions when you need more control over the PDF creation process.

ooo-pdf-export

The General Tab

The General tab contains settings that determine the general structure of the PDF document that you are creating.

In the first section of the tab, you set which pages of the original document will be included in the PDF. The default is All, but you can also export the pages currently selected in the original, or designate a range of pages. In setting a range, you can include single page numbers, a range of pages separated by a hyphen (for example, 7-10), or a list of single pages or ranges, with each item separated by a semi-colon (for example, 1; 7-10.

If you want to minimize the size of the PDF file, you can reduce space by your selections in the Image section of the tab. You can reduce the size of JPEG images by selecting an image quality expressed as a percentage, or a general resolution for all images, expressed in dots per inch.

However, be aware that there is a trade off when you reduce image quality. The lower the JPEG setting, the more "noise" that is introduced into the displayed image. If the PDF will be printed by users, then you want a resolution of at least 200dpi, if not 300. If you are not willing to make these trade offs, then use the Lossless setting.

The General tab also contains a number of other unorganized settings. For instance, you can choose whether you want the PDF to include bookmarks, comments (notes), or blank pages from the original.

You can also choose the variant of PDF format you want: PDF/A-1a, which is a standard for long-term document preservation; Tagged PDF, which marks the structure of the PDF export so it can be viewed on devices that otherwise could not open it properly; or Hybrid, which is a large file that contains both PDF and Open Document Format versions of the original file and is useful if you are using the Sun PDF Import extension to edit PDF files. However, unless you have a specific need, you can ignore all these choices.

Yet another formatting choice is to make the PDF export a form that users can fill in. Here, you can select the format in which you will receive data from each form that readers fill.

The Initial View Tab

The Initial View tab lists options for what readers will see when they open the PDF. In the Panes section, you can choose whether only the page is visible, or whether bookmarks or thumbnails are also available, as well as the first page to display. Usually, of course, a PDF opens on the first page, but you might decide to skip over the table of contents and front matter so that readers can start to read at once.

You also have a choice of Magnification -- that is, the size of the displayed page. If you select Default, then pages will be displayed without any zoom. Alternatively, you can choose to fit the page(s) displayed to fit the window or its width, or to ensure that everything is visible. But the most useful option is to set an exact zoom, so you know exactly what readers will see.

Other options on the Initial View tab determine what pages the reader sees. The Default setting leaves this formatting choice to the PDF browser used, while Single page displays only one page. By contrast, Continuous shows pages, one at a time, in a vertical column, while continuous facing shows two pages at a time beside each other. Single page is probably the most popular page layout, but you might opt for Continuous facing if you a diagram that occupies two pages.

The User Interface Tab

Depending on the PDF viewer you use, the settings on the User Interface tab may not have much effect. For instance, if you use XPDF, the options to set bookmark levels is irrelevant, because XPDF does not display bookmarks.

However, assuming that your PDF viewer has the controls mentioned on the tab, you have several groups of user interface options. To start with, you can set the size and placement of the windows. You can adjust the window to fit the initial view settings, center the window on the screen, display the window in full screen mode, and include the document title. In addition, you can hide the menu, toolbar, or other window controls, although in most cases there seems no reason to do so. Hiding these items does give more space to display the PDF, but if you want to maximize the display, why not just set the PDF to open in full-screen mode instead of removing controls that users might want?

When you create a PDF from an Impress file, you have the option of enabling transition effects. Practically speaking, this option turns the PDF into a presentation that can run without OpenOffice.org -- a handy means of making sure that anyone can view it.

The fourth pane on the User Interface tab is for the bookmarks that display, but appears to be broken in OpenOffice.org 3.2, the latest version as I write. The usage also appears to be confused, because, from the mention of levels of bookmarks, the pane is not talking about the bookmarks you enter from the OpenOffice.org's Insert menu -- which have no levels -- but the heading styles that you use in outline numbering, which include up to ten levels. This bug is a nuisance, because bookmarks are used in PDFs to provide a table of contents. However, when it is fixed, I advise setting the levels to three at the most, so as not to produce unnecessary clutter.

The Links tab

The only people likely to need the settings on the Links tab are those making a set of inter-connected PDFs. If you are one of them, be aware that, on this pane, "bookmarks" is used as a synonym for hyperlinks, and does not refer to headings or actual bookmarks.

When you produce inter-connected PDFs, you will want to select Export bookmarks as named destinations and Convert document references to PDF targets so that you can refer to the bookmarks in other documents. Furthermore, you will want to make all URLs relative to the filesystem, so that they function when the PDF exports are transferred to another document.

Another consideration is how links open. If you select Default, then you leave it to the PDF viewer's settings. Alternatively, you can set the links to open in the PDF viewer, or in a web browser. Which you choose depends whether the links are to other PDFs -- in which case, opening in the PDF viewer makes sense -- or to web pages -- in which case, opening in the web browser is the obvious choice.

The Security Tab

Security in PDFs is extremely low. A web search will quickly give you several means of bypassing both encryption and permissions, including many free software options.

All the same, you might be professionally required to write a PDF with security settings. If that happens, in OpenOffice.org you can encrypt the password so that only those with the password (or a way of bypassing it) can read the PDF. Note that this option is not the same as digital encryption, and can even be set and left blank.

Another set of security options is to limit what users can do without a password. For example, you can keep users from printing, or restrict them to printing only in low resolution. You can forbid users to make any changes, or allow them limited ability, such as rotating pages, filling in form fields, or adding comments, or from anything except extracting pages. Others options include whether content can be copied, or accessed by accessibility tools like Orca.

Just remember, though, that all these options are easily sidestepped. All you can really do is guard the PDF from people with limited knowledge or initiative.

Saving and Other Considerations

When you are content with all the settings, click the Export button at the bottom of the Window dialog. A file saving dialog opens, set to the same directory as the original file or, if the original is unsaved, to ~/.openoffice.org/3/user/gallery -- which you will almost certainly wish to change.

The only feature I really miss in the current PDF Export document is the ability to open the new export as soon as it is made. Otherwise, if OpenOffice.org does not supply the feature I need, than pdftk or the Sun PDF Import extension almost certainly will. There may be one or two tools in the proprietary Acrobat packages that advanced users will miss, but, for the most part, today you can create and edit PDFs using free software just as well as you can with proprietary software.

AttachmentSize
ooo-pdf-export.png63.87 KB
______________________

-- Bruce Byfield (nanday)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

pdf optimisation

Neil's picture

I don't know how it works but Acrobat Professional (well the v7.0 that I have) has a nice feature that is called Reduce File size which I guess is some form of optimisation.
Particularly with scanned images it works a treat to significantly reduce the file size without any apparent drop in quality.
When exporting out of openoffice I always choose "Lossless compression" but if I then open the document in Acrobat Professional and use the reduce file size feature I can get a significant reduction in size (an 8 page doc with a couple of images reduced to 66% of the size outputted by openoffice)
Are there any such file optimisation utilities available under Linux (ubuntu)?

PDF Output as Booklet

David Brown's picture

Another useful PDF output option in OpenOffice is the booklet format - two book pages on each side of each sheet. "Export as PDF" does not provide the necessary option, so "Print", then select "Print_to_PDF". In the bottom left corner of the Print dialog box is a button called "Options". Select this. The magic button is "Brochure".

I home-publish a 100 page guidebook using OOo. Each OOo page is sized 8.5" x 5.5". The paper size is US letter (8.5" x 11"), and curiously, portrait. Each PDF page gets two book pages. I burn the PDF file to a CD, drop this at my local Insta-print shop, they print the file duplex, fold, staple and trim.

http://www.climbers.org/guide-to-rock-climbs-bon-echo-fifth-edition

Acrobat reader does not like saving forms

Forms with Adobe Reader's picture

I created a simple one-page pdf form using OOo. This is a "flat" form, meaning that users can fill in the form and save it on the local disk with the data intact. However, people who use Adobe Acrobat Reader v8 and above are unable to save the data. Adobe only allows the physical printing of the form.

re: Acrobat reader does not like saving forms

Doug - not the registered user Doug's picture

but you can create a button which will email the form data.

In the Push Button form Properties for a SUBMIT button:
set the "Type of Submission" to "get"
set the "submission encoding" to URL
set the "URL" to "mailto:email@address1,email@address2,etc"

In the Push Button Control Properties;
set the "Action" to "Submit Form"

do that and when you click on the SUBMIT push button from within Acrobat Reader( only on the desktop, not in the browser ) you should see a dialog box pop up asking if you have desktop email configured or are you used webmail. If it's desktop, then it will invoke that program with everything setup and you just click send. If using webmail, it'll prompt you to save the xfdf or fdf data to a file and you'll have to email it out manually if that is really what you want.

It's a great way to use PDF forms on web servers but you have to have people educated enough to know to download the PDF from the web page instead of clicking on it.

extracting form data to csv

brunus's picture

HI,
is there anyway to extract the input data from a form in OO Writer or PDF so that it can be easily imported into Calc, like .csv format?

thanks

if only it set the PDF file name in the form data

Doug - not the registered user Doug's picture

I've been using OOo for about a year now generating PDF forms using a SUBMIT button to email the form data back to us. But I keep having problems with generic Windows users who don't get it that they have to associate the xfdf file with Acrobat Reader and then click "yes" you want to find the original PDF file used so they can view the xfdf data in the original context.

All the OOo people need to do is add a field in the document to set the PDF file name and possible a URL and it would automatically load the PDF file when the data file was opened.

The PDF form capabilities of OOo are outstanding and quite the little secret. Your article may help but too bad it's not getting press in the 'other' online press sites.

Doug

Corrections/Suggestions

Chris Bumgarner's picture

I have a few technical corrections and some suggestions for everybody.

First, xpdf does show bookmarks. I'm looking at some in xpdf 3.02 right now.

Second, setting the magnification level to 'default' will set the page to the zoom level of the browser/agent's default value. It will only show "without zoom" if the browser/agent has no default zoom setting.

I recommend that the magnification level and page layout be set to defaults when you export to pdf. When a pdf producer sets these values to anything other than default, the setting will override the user's default preferences (at least that's how Adobe says it should be done, but this may vary between different viewers). This is extremely annoying.

I prefer continuous view and "fit width" magnification, that's just how I like to read my pdfs. It really irks me when I open a pdf file that overrides my preferences. Why does the author think he/she knows better than I how to read a document? (slideshow style pdfs might be an exception). It's a pain to have to keep changing the settings back to my already set preferences _every_time_I_open_the_file.

Don't you get annoyed when you visit a web page and some javascript re-sizes your browser window? That really sticks in my craw, and most user agree.

So, please, everyone, don't set any initial view settings. Especially full screen mode. For usability's sake.

cmyk

Anonymous's picture

Please, correct me if i'm wrong, but any ghostscript products (that i've
seen) only produce rgb pdfs, and have no option to output a cmyk pdf.

This isn't an issue if you just want to write some documentation and host
it online, but if you want to send something to a professional printer
it means they will need to convert it to cmyk and not all of them will
do colour matching after the conversion (after all they only print, you're
supposed to be the designer).

As i said, correct me if i'm wrong, but i'm pretty sure OO.o doesn't have
this...and Adobe products do...which is probably why they have the biggest
market share for anything that needs to be printed professionaly.

cmyk is supported by

Anonymous's picture

cmyk is supported by ghostscript. Scribus uses ghostscript to create PDFs and it is developing into professionally usable desktop publishing program that some magazines are using. I am in the printing industry and use Scribus and ghostscript personally and have tested it at my shop and it works great for cmyk. Now I am just waiting for gimp and inkscape to catch up.

Revision suggestion

Anonymous's picture

I suggest revising "The latest versions of OpenOffice.org..." to "The latest version of OpenOffice.org, 3.2,..." As it took me a search of Open Office and a trip to oo.org to figure my version (3.1 the current Ubuntu repository edition) doesn't have the PDF dialogue window the article describes.

Making one single PDF from multiple .jpgs

Dante's picture

Does anyone know if it is possible to create a single PDF document from multiple image files, without inserting them in openoffice one by one as pictures? I mean: is there any software for Linux which has this capability? That's what I really miss of Adobe Acrobat.

with ghostscript from any

Anonymous's picture

with ghostscript from any file format ghostscript supports. In case you need formats
use scripts e.g. 'convert name1.jpg -o name1.ps

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=name.pdf -dBATCH list_of_files

e.g.

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=test.pdf -dBATCH file1.ps file2.ps .... fileN.ps

Images to PDF file

Anonymous's picture

Under Linux you can use any program that can view/print images to create a PDF file. Just open up f-spot, Gwenview, Picasa, etc. select all your images and choose file...print. On the print dialog screen that comes up choose "Print to file" and set the file type to PDF.

On Windows, download & install PDFCreator, then follow the same procedures as above (selecting PDFCreator as your printer).

BAM, done!

AMAZING! I tried F-Spot, and

Dante's picture

AMAZING! I tried F-Spot, and it does work absolutely fine!

Thank you for your advice... I switched from Windows to Linux 1 year ago, and I am impressed to see how good it is. They should advertise more, however, all these wonderful features! I'll never go back!

try gscan2pdf , it has an

Anonymous's picture

try gscan2pdf , it has an import command if you already have images .

Install ImageMagicks or libtiff-tools

Ondro's picture

With ImageMagick use command
$ convert img1.jpg img2.jpg img3.jpg all_images.pdf

With libtiff-tools create multipage tiff and than convert to pdf
$ tiffcp 1.tif 2.tif ... N.tif multi.tif
$ tiff2pdf -o out.pdf multi.tif

Images

Dante's picture

Good article. However, with Openoffice you can't convert multiple files (images) into a single PDF document, can you? That's a feature I really miss from Acrobat.

splitting and merging PDF files

David Brown's picture

I don't know exactly if I

Anonymous's picture

I don't know exactly if I understand what you mean but I think it is possible. You can import multiple images in Impress via an extension:
http://extensions.services.openoffice.org/de/project/PortablePhotoAlbum

or

http://extensions.services.openoffice.org/project/PhotoAlbumGUI

The finishing steps were described in the article.

Regards

Webinar
One Click, Universal Protection: Implementing Centralized Security Policies on Linux Systems

As Linux continues to play an ever increasing role in corporate data centers and institutions, ensuring the integrity and protection of these systems must be a priority. With 60% of the world's websites and an increasing share of organization's mission-critical workloads running on Linux, failing to stop malware and other advanced threats on Linux can increasingly impact an organization's reputation and bottom line.

Learn More

Sponsored by Bit9

Webinar
Linux Backup and Recovery Webinar

Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.

In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.

Learn More

Sponsored by Storix