We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

PDF import [closed]

asked 2014-12-16 09:47:24 +0200

alle_meije gravatar image

updated 2020-07-26 23:47:09 +0200

Alex Kemp gravatar image

On LibreOffice (default for Debian Wheezy) importing PDFs is not a core feature, so I installed the package libreoffice-pdfimport to read a PDF file into Writer.

What I get with 'File' -> 'Open' -> 'test.pdf' is still the ASCII filter dialog and the PDF just opens as an ASCII file:

5 0 obj
<</Length 6 0 R/Filter /FlateDecode>>


Converting the file to PostScript and back to PDF using pdf2ps and ps2pdf makes no difference. Is there a trick to importing PDFs into Writer that I am not using?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-07-26 23:47:48.327806

2 Answers

Sort by » oldest newest most voted

answered 2015-03-01 08:24:57 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi - The pdf import extension allows to open a pdf in Writer only if it is an hybrid pdf.

See our Wiki FAQ

If it is not a hybrid it could be only opened in Draw. That may be the problem?

edit flag offensive delete link more

answered 2015-03-01 07:45:55 +0200

meolar gravatar image

I am not sure if my experience will help with LibreOffice I'm using version 4.4. However, the last version I used (4.2, I think) worked the same way as what I have now. So with that caveat, I'll try to address your question.

I have not found a good way to do get pdf files into Writer and keep the formatting. I have used Calibre to convert a pdf to a text file. It did not give me all the bizarre characters that showed in your example.

To use this approach, you'll need to have Calibre installed.

If you have Calibre open:

  1. Click “Add books” and then “Add books from a single directory”
  2. Browse to the pdf file, click it, and then click the "Open" button
  3. Back in the main window of Calibre click the pdf file
  4. Click the “Convert books” button at the top and choose "Convert individually"
  5. In the upper right corner where it says “Output format,” change it to “TXT”
  6. Click the “OK” button at the bottom right
  7. In the main window of Calibre on the right side where it says “Path” click on “Click to open”
  8. Open the .txt version of the file

Unfortunately, all you have is the text with this method. It is possible to open a pdf and get the pictures along with the formatting and text in Draw, but the text does not flow from one line to the next.

It isn't an elegant solution, but perhaps a combination of the above will get you what you want.

edit flag offensive delete link more


This worked brilliantly for me with latest version of Calibre, but of course, it's file / filetype dependent, I guess. Thanks for posting it.

OzKiwi gravatar imageOzKiwi ( 2015-10-04 10:42:51 +0200 )edit

You're welcome. I'm glad it helped.

meolar gravatar imagemeolar ( 2016-04-04 00:59:59 +0200 )edit

If your question is answered, please click on the check mark by the answer that helped to mark it as answered. Thanks!

meolar gravatar imagemeolar ( 2016-11-12 19:33:20 +0200 )edit

Question Tools

1 follower


Asked: 2014-12-16 09:47:24 +0200

Seen: 43,954 times

Last updated: Mar 01 '15