Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to convert a large number of PDFs (~15000) to plain text using pdftotext. This is working pretty well except for a few of the PDFs (~600) which, I guess, are "PDF portfolios."

When I run these PDFs through pdftotext, it just outputs:

For the best experience, open this PDF portfolio in Acrobat 9 or Adobe Reader 9, or later. Get Adobe Reader Now!

If I do open these PDFs in Adobe Reader, they look like two or more PDFs inside a single file.

Has anyone encountered this issue before? Is there any tool I can use to convert these PDFs automatically? (Either directly to text or at least to regular PDFs that pdftotext can then understand.)

share|improve this question
up vote 0 down vote accepted

You can use Xpdf.

It has a utility pdfdetach which can extract the files from a Pdf portfolio.

pdfdetach -saveall your_pdf_portfolio.pdf

I don't know which pdftotext you are using, but Xpdf also has its own pdftotext.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.