19

I need to view a .pub file. How can I view the file or convert it to a more mainstream format (such as a PDF?)

8 Answers 8

10

I don't know of any applications that do this but, you can use this to convert PUB files to PDF. An alternative would be to install Microsoft Publisher through Wine (available in the repositories).

2
  • Opening them in Publisher in Wine (or Crossover) appears to be the only way of doing this short of a virtual machine but it still stinks. Online Pub-to-PDF converters might be easier for one-off operations.
    – Oli
    Sep 1, 2010 at 15:38
  • I don't know of any batch conversion tools, though I haven't looked. I only use M$ products for school at school.
    – user415
    Sep 1, 2010 at 20:55
9

In case anyone runs into this question, a Microsoft Publisher importer is expected in LibreOffice 3.7. More info:

http://libregraphicsworld.org/blog/entry/microsoft-publisher-support-makes-its-way-to-libreoffice http://fridrich.blogspot.ch/2012/06/libreoffice-ms-publisher-import-filter.html

1
  • 2
    As it is an old question, maybe an update is good: I was able to open .pub in Libre Office Draw (version 4.0) and seems to import it quite nice.
    – conualfy
    Aug 28, 2013 at 1:06
5

I spent a long time investigating this recently as I needed to index .pub files for use in Xapian.

The conclusion is that the only thing that can read .pub files is publisher.

You can run publisher in CrossOver Office with some success. I have used this in the past and I had no problems.

1
3

This website: http://www.zamzar.com/ appears to be able to convert .pub files to a number of formats including .odt and .pdf (source: http://blog.zamzar.com/2008/01/25/convert-ms-publisher-files-pub-files-to-doc-pdf-odt-rtf-and-more/)

The file needs to be under 100MB and the converted file will be sent to you by email.

3

LibreOffice Draw now can open .pub document.

0

The only website able to convert PUB files online to PDF I found was http://convert.neevia.com/

0

I know this isn't an actual ubuntu software, but this website can help you. It converts the pub file to pdf

http://pubtopdf.com

0

How to view a Microsoft Publisher .pub file and convert it to PDF on Linux Ubuntu

A couple answers mention LibreOffice and/or LibreOffice Draw. Here are some more details on that.

I just tested these steps on Linux Ubuntu 20.04, with LibreOffice 6.4.7.2.

1. GUI method: open it up in LibreOffice Draw:

In any of the LibreOffice programs, including Draw, Calc, Impress, or Writer, go to File --> Open... --> navigate to your .pub file, select it, and click on the Open button.

It will open up in LibreOffice Draw, regardless of which LibreOffice program you used to go to File --> Open.

Once it is open in LibreOffice Draw, you can optionally export it as a PDF if you want by going to File --> Export As --> Export as PDF... --> change any export settings you'd like to and click on the Export button.

Done.

2. Command-line method: convert .pub files to .pdf from the terminal

Libreoffice also supports a fantastic --headless command-line option which lets you convert from .pub to .pdf files from the command-line! I learned how to do this by studying this answer here: Command libreoffice --headless --convert-to pdf test.docx --outdir /pdf is not working. The command I came up with, which works great, is this:

libreoffice --headless --convert-to pdf:draw_pdf_Export "path/to/myfile.pub"

It takes just a couple seconds.

Other attempts

I tried opening it up in Google Drive/Google Docs too, since that work great for converting Excel and Microsoft Word docs between formats, but it looks like Google doesn't yet support the .pub file format. Perhaps they will in the future.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .