Questions tagged [poppler]

Poppler is a fork of the xpdf PDF viewer developed by Derek Noonburg of Glyph and Cog, LLC. It provides PDF rendering functionality as a shared library, and uses modern components from Freedesktop.org such as fontconfig and cairo to take advantage of modern UNIX desktops.

19 questions
170
votes
10 answers

Command line: How do you rotate a PDF file 90 degrees?

When I scan documents that are landscape-oriented, the output PDF files are portrait and so all the PDF viewers display the scanned documents in portrait. From the command line, how do you rotate a PDF file 90 degrees? I tried searching and found a…
Trevor Boyd Smith
  • 3,772
  • 12
  • 36
  • 44
19
votes
2 answers

Merge pdf files and automatically create a table of contents with each file as an entry

I have several pdf files (chapter1.pdf, chapter2.pdf, etc.), each one being a chapter of a book. I now how to merge them into a single pdf (I use the command pdfunite from poppler), but since the output file is big, it's difficult to find a chapter…
Seninha
  • 1,035
  • 1
  • 9
  • 17
9
votes
1 answer

Can Zathura show pdf bookmarks generated by other pdf programs?

I have pdf ebooks with extensive (nested) bookmarks that are visible in all my other pdf readers (e.g. evince, foxitreader). However, when I open said files in Zathura, running blist gives: No bookmarks available I get the same result with both…
Nadim Hussami
  • 525
  • 5
  • 11
7
votes
1 answer

Fill PDF forms from the shell

Is there a tool to fill PDF forms non-interactively from the shell? For my use case, just setting the text for each field (in whatever order the fields are defined) and saving the PDF file would be enough, but to keep the question more general, any…
eike
  • 478
  • 4
  • 15
4
votes
1 answer

Is it possible to send an xpdf process a signal that causes it to reload the file being displayed?

On page change, redraw, or Reload command, xpdf will reload the file it is currently displaying. Is it possible to cause xpdf to reload the file by sending a signal? Which signal? (I am basically looking for the functionality offered by xpdf…
Norman Ramsey
  • 274
  • 2
  • 8
4
votes
1 answer

How to output files to another directory (Poppler - pdftotext)

I have a directory with a very large number of PDFs that I am converting to *.txt documents with Poppler pdftotext. I have the following command that does the conversion of all the files. for f in *.pdf; do pdftotext $f; done The PDFs are on an…
Brian P
  • 223
  • 2
  • 10
3
votes
1 answer

How does `pdfimages` differ from `pdftoppm`?

For the purpose of processing pdf with Scan Tailor (in order to remove the background of photographed pdf pages, or to split pdf pages) given that this program needs input of images - it cannot input pdf as such - I have used a command like pdftoppm…
cipricus
  • 1,386
  • 13
  • 42
3
votes
1 answer

PDF readers not based on poppler?

It seems that most GNU/Linux PDF readers use poppler for rendering. For testing purposes I would like not to use poppler. Are there any (recent) alternatives ? xpdf doesn't count, since I expect both to share large pieces of code.
2
votes
1 answer

Bad rendering of graphics in Okular at higher zoom levels

Once you have inspected the screenshots below, you will see that Okular is significantly worse at rendering my two test files than many other well-known viewers. This is unfortunate, because in Kubuntu, Okular is the natural default viewer. My…
2
votes
1 answer

Rearrange pdf pages (swap odd pages and even pages)

I have a pdf and I am in need to replace even and odd pages. If I want to be more specific, I must replace (2n-1) page numbers with (2n) ones (1-->2, 2-->1, 3-->4, 4-->3, and the like). How should I do that? Is there any free software that can do…
2
votes
1 answer

How to use pdfsig from poppler-utils

I would like to use pdfsig from poppler-utils in my ubuntu 16.04, at first I installed poppler utils from apt but pdfsig was not part of that package. When I looked man pages for 'pdfinfo' in the SEE ALSO section, according to…
Migdress
  • 23
  • 4
2
votes
1 answer

Does okular/poppler support following intra-document cross-references in PDF files?

Using docbook and Apache FOP I can create PDFs that contain cross-references. For example, the Table of Contents of a book looks like this: Chapter 1 Introduction........................12 Using the ancient xpdf I can click on the page number 12…
Jens
  • 1,738
  • 4
  • 17
  • 36
1
vote
0 answers

How to change PDF version output in pdftocairo?

Command pdftocairo is an utility from poppler-utils package. It's a PDF to PNG/JPEG/PDF/PS/EPS/SVG converter using Cairo. I use this command to update a very old PDF from version 1.2 to 1.5, for example: $ pdftocairo -pdf input.pdf output.pdf The…
Daniel
  • 341
  • 11
1
vote
2 answers

How to re-convert the text file produced by pdftotext to pdf again?

Poppler has the excellent tool pdftotext for converting a pdf file to a text file: pdftotext input.pdf output.txt Is there a way to re-convert this text file to pdf? By conversion, I mean to obtain a pdf file with a similar page content as the…
Name
  • 173
  • 6
1
vote
2 answers

Convert pdf to png, size issue

I have a pdf file created from an impress presentation. I want to convert the pdf to png images to add them to create a video using them. I am using pdftoppm to convert the pdf to png, but the exported images are getting a size of 1654x931 px. I…
jjcasmar
  • 263
  • 2
  • 10
1
2