Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pdf]

PDF (Portable Document Format) is an open standard for fixed format document exchange. Use this tag to indicate questions involving files in this format and also when software is generating/processing this format. When possible and possible relevant indicate the version of the PDF document (as ...

1
vote
0answers
15 views

What tool can be used to change the orientation of a pdf page without using the `Rotate` key value?

On page 78 of the PDF Specification 2008, it mentions that the PDF's page object has an integer key value Rotate that you can set to tell the software how the page should be displayed. This value ...
1
vote
1answer
35 views

Bash: search for keywords PDF files and return pages [duplicate]

Hopefully somebody can help me out with this, I'm looking for a small script which does a keyword search in a PDF file (actually a folder of PDF files), and it needs to return all pages including the ...
0
votes
1answer
23 views

Why pdftops gives extra padding but pdf2ps doesn't?

I tried both pdftops and pdf2ps to convert a pdf figure(no text) into eps. pdf2ps created a ps figure same to the original one, but the ps file produced by pdftops contains an extra white padding/...
9
votes
1answer
192 views

How shall I generate a pdf file instead of a ps file using enscript?

I was wondering why the following generates a ps file not a pdf file? How can I make it generate a pdf file? Thanks. $ enscript -B -PPDF code/bloom.c -o bloom.pdf [ 2 pages * 1 copy ] left in bloom....
3
votes
3answers
83 views

Mupdf: finding hyphenated words in PDF file

When I search for a word in a PDF file using mupdf. It, only, finds the whole word. For example, searching for the word “meaningless” will find the whole word: This is a short, staggeringly ...
1
vote
1answer
14 views

QPDF renders streams as gibberish

I have been trying to use a variety of programs to render a multilingual pdf (Hebrew/English dictionary) machine readable. QPDF (as well as pretty much every other program) renders the text as ...
1
vote
0answers
26 views

Windows PDF viewer interprets hyperlinks incorrectly from Linux converted PDF?

I am operating on a RPi Model 3B with Jessie OS and Python version 2.7.9. I am using XlsxWriter (ver1.1.0) to write an .xlsx file and then converting it to PDF using LibreOffice's conversion code, as ...
0
votes
0answers
5 views

pdftohtml renders multilingual text as gibberish

I am attempting to convert a multilingual text (a Hebrew-English dictionary) from pdf to html using, you guessed it, pdftohtml. However the pdfs that are being outputted are entirely gibberish, with ...
0
votes
1answer
28 views

Directing output from command to folder

I am using pdfdetach utility which would extract embedded objects in PDF files and dump them to the current folder. Output can be anything such as .doc files or others. All I want to do is that ...
7
votes
2answers
144 views

Printing two pdf on one sheet without scaling

I have a pdf document which covers half of an A4 page. Is there a way to duplicate the text/images of that document, such that I get a single page A4 document (pdf file) with twice the orginal content,...
0
votes
1answer
45 views

pdf-files: results of “pdfid”

Didier Stevens has produced a programme which is called "pdfid" (https://blog.didierstevens.com/2009/03/31/pdfid/ and https://blog.didierstevens.com/programs/pdf-tools/#pdfid). He says: "I’ve ...
4
votes
1answer
43 views

Safely handling PDFs and other ebook formats on Linux [closed]

I'm running Arch Linux and using Okular for opening PDF files and FBReader for other ebook formats (Epub, Mobi, etc.). Simply put, here's my question: Assuming some of those documents come from ...
0
votes
0answers
89 views

Okular for shared annotations

I'm using Okular version: Qt: 4.8.6 KDE Development Platform: 4.14.2 Okular: 0.20.2 I'm trying to understand how the annotations work because I would like to store my progress on git, saving only the ...
0
votes
1answer
44 views

What is this GhostScript error? “/undefined in /BXlevel”

At first I thought this might have been a missing font issue but as far as I can tell from the output, GS is finding the font just fine.. Any hints as to what the problem might be? $ /usr/bin/gs -...
0
votes
0answers
15 views

Certain symbols (mainly Greek letters) are displayed “wrong” in PDF files on Fedora 28 Scientific Spin

I am generating plots in .pdf format non-locally, which include Greek symbols, like this one However, when I copy the files over to my machine, which runs Fedora 28 Scientific Spin, some characters ...
1
vote
0answers
30 views

Qpdf view text in text editor

I have used qpdf with qpdf --qdf --object-streams=disable orig.pdf expanded.pdf As reference from https://unix.stackexchange.com/a/109177/306249 I can see all objects in text editor. But I cannot ...
1
vote
0answers
26 views

Is there a tool for searching keywords super fast in many pdfs files?

I have a bunch of technical books, and I have been using pdfgrep for a while, but it takes substantial amount of time for searching all. can somebody recommend me of a cli tool for searching in pdf ...
0
votes
0answers
39 views

Print PDF from command line: choose colour profile for pages

I have one network printer setup on my Fedora 28 system as two different printers: Printer-BW is set-up to print in BW Printer-colour is set-up to print in colour all other settings are the same. I ...
2
votes
0answers
44 views

How to accept cookie on the wkhtmltopdf command?

I am using the Linux command wkhtmltopdf to convert the HTML page to a PDF file for a report, but the page showing the cookie privacy note on the website which doesn't look good. To convert the ...
1
vote
2answers
85 views

How can I get the page numbers only of a pattern in a pdf file, regardless if the pattern is multiline?

I find the page numbers of a multiline pattern in a pdf file, by How shall I grep a multi-line pattern in a pdf file and in a text file? and How can I search a string in a pdf file, and find the ...
0
votes
0answers
24 views

How shall I grep a multi-line pattern in a pdf file and in a text file? [duplicate]

In the output of less my.pdf, a string image not available appears multiple times, for example: ... Lastly, what remains to ^L image not available ^L Implementations and Systems I ...
0
votes
1answer
32 views

How can I search a string in a pdf file, and find the physical page number of each page where the string appears?

Given a PDF file, I would like to search for a string in its text, and I know pdfgrep can do that. I further would like to have the physical page number of each page where the string appears (as ...
0
votes
0answers
47 views

Zathura shortcut/feedkeys configuration for recolouring

I used to have the following in my .zathurarc config, which used to allow me to change the colour scheme by pressing Shift-1, Shift-2, Shift-3, Shift-4, to switch to original colour scheme, amber on ...
3
votes
0answers
26 views

How can I reverse-engineer a CUPS printer/print job? What decisions did it take, what conversions did it do?

I have quality issue with PDF printing local (CUPS) vs. Google Cloud Printing. (GCP is better, with CUPS I get wrong size, wrong characters, wrong fonts. So I want to know what CUPS does!) The ...
0
votes
1answer
66 views

using Find -exec to rename a file with the grepped contents of the file

I'm attempting to get a list of files with find and then use pdfgrep to get a string from the file, then rename the file with that string. The commands broken down are: find . -name "*...
0
votes
0answers
133 views

If zathura install both zathura-pdf-mupdf and zathura-pdf-poppler, which will be used when open pdf files

The two plugins both support pdf format. I cannot figure which will be used, any way to find which is been used?
0
votes
0answers
40 views

Merge fdf file into pdf (output of skim pdf for OS X)

The skim PDF viewer for OS X saves its annotations as .fdf files. Is there any way to merge these into a common pdf document? The closest that might have worked is pdftk: pdftk doc.pdf fill_form ...
1
vote
1answer
68 views

Merge content of PDF pages from command line without pdftk

I have two PDF files, each has the same number of pages. I want a PDF file with the same number of pages, and each page is a superimposition of the pages of the same number in the two source files. As ...
0
votes
0answers
152 views

How to open PDF-file locked by password?

I discovered a PDF-file in my home directory apparently generated 2 years ago, of which I have no recollection how it got there; all my attempt to open it by using either "okular" or "acroread" ...
0
votes
2answers
190 views

Splitting a single large PDF file into n PDF files based on content and rename each splitted file (in Bash)

I'm working in a method of splitting a single large PDF file (which represents monthly settlements of a credit card). It is builded for printing but we'd like to split that file into single ones, for ...
0
votes
1answer
21 views

PDF editor to highlight text on Lubuntu

I would need a PDF editor that works well on Lubuntu to highlight some sections of a PDF and save the changes.
4
votes
2answers
337 views

Export a man page in pdf

Doing man -t man > man.ps will export the man page for man in postscript. How can I export it in PDF? I have gone through the manuals and learnt about the -T option but it's a bit unclear to me.
0
votes
0answers
13 views

LibreImpress deleting inserted pdf images after a while

I have Libre Office 5.4.6.2 40m0(Build:2) on Ubuntu 17.10 My LibreOffice Impress keeps deleting all the .pdf images I insert to it every so often (can't figure out the periodicity yet). It looks like ...
1
vote
0answers
56 views

ghostscript changes orientation of PDF

I have two single-page PDFs, and want to merge them into a single two-pages PDF. So I ran: gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=merged.pdf 1.pdf 2.pdf Problem: The result has each ...
0
votes
0answers
17 views

How to combine pdfs with inserted blank pages? [duplicate]

There're multiple pdfs with odd or even number of pages, I want to combine them with inserted blank pages so that each pdf is of multiple of 4, for printing purpose(4 slides per page, each individual ...
0
votes
1answer
60 views

Add extra margin (on right) to a pdf without losing outline?

I would like to take an existing pdf and make it's right size wider (add white space), so that I can add my own hand-drawn annotations to it with my graphics tablet (loaded in Xournal++). So far I ...
-1
votes
1answer
52 views

Using Wget to download files in “members only” that require password [closed]

I am almost finished with our new web site and a customer of ours told me today about Wget. He went on to say if someone used Wget they can log in and download the files that we have in a "members ...
1
vote
0answers
84 views

Question about Evince pdf scrolling

I love Evince; along with Zathura for more minimal pdf viewing, it's my favorite document viewer. I have a question about when I scroll using the CTRL key. When I use the "J" or "K" to navigate it ...
1
vote
0answers
24 views

PDFtk on RHEL 5.6

My colleagues and I are trying to install PDFtk on a RHEL 5.6 server. PDFtk requires libgcj which is installed, but an older version (v4.1.2) When we install PDFtk and try to add a password to a PDF ...
1
vote
0answers
19 views

Cropped plot labels in knitted PDF in Linux

Has anyone experienced having their plot labels cropped in knitted PDF's in Linux? This does not happen in my Windows machine. Here is a minimal r-markdown example to replicate this problem. --- ...
1
vote
2answers
89 views

How to reverse the page order of a PDF file?

Is there an easy (preferably command line) way to reverse the pages in a PDF file?
1
vote
1answer
94 views

Set the environment variable in bashrc for preferred PDF viewer

I am currently remoted into my linux workstation's command line environment (bash shell) using SSH with X11 forwarding enabled. I am using the mendeley citation manager's desktop application to ...
0
votes
0answers
16 views

Add image tag into pdf content

I have a bunch of PDF files identified by an ID. Some files have the same ID and I'd like to add a tag on the PDF file itself, not the metadata. For example: file1_1.pdf file1_5.pdf would merge both ...
0
votes
0answers
78 views

Delete/add/replace pages in PDF while preserving bookmarks [duplicate]

Is there an easy CLI method to do that? If I use pdftk, I get a new pdf without the bookmarks of the original one. The bookmarks were created on another system with Adobe Acrobat Pro, and an example ...
0
votes
0answers
16 views

How do I disable following (all / some) hyperlinks in Xpdf 4.0

How do I disable following (all / some) hyperlinks in Xpdf 4.0? In older Xpdf version I could change the "urlCommand" in the config file so it does not follow the link. But Xpdf 4.0 does not ...
0
votes
0answers
124 views

How to change the background color of xreader (document viewer)?

System: Linux Mint 18.2 Sonya I want to change my background color of my pdf-reader "xreader". I don't mean to invert the DinA4-sheets by pressing ctrl + i, but the background-color behind the ...
0
votes
2answers
64 views

How to make one pdf from many pdfs where their filename are also shown in the one pdf?

I have a directory named Titlepage where the files(minimum 10 pdf) are titlepage_1.pdf,titlepage_2.pdf,titlepage_3.pdf... . Each are one page pdf. This directory also hosted in Github so that ...
0
votes
0answers
59 views

How can I get metadata of such corrupted files?

How can I find the page sizes of files which are malicious like the one given in the picture? PDFinfo does not seem to be working on corrupt files.
1
vote
0answers
56 views

Diff of PDF files leaves garbage on next command line [duplicate]

I would call this a curiosity more than a problem or anything else: When using diff on two specific PDF files that are similar but not the same, I get some garbage dumped on the next command line. ...
-1
votes
1answer
43 views

How to open a PDF file from Unix Putty Box( PGP) [closed]

I have a situation where i am unable to open the PDF files from the Unix Putty box.The vendor is placing these files in Server(We called it as Q drive) and we were ftp these from files from Q drive to ...