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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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
24 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
24 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 ...
1
vote
0answers
14 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
59 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
28 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
15 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
18 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
39 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
34 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
21 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
39 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
57 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
89 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
20 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
257 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
12 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
33 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
14 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
31 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
28 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
55 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
20 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
44 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
57 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
36 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
74 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
1answer
49 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
47 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
53 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
40 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 ...
0
votes
1answer
62 views

Code/Tool to extract metadata from malicious PDFs

I am studying features of malicious PDFs. I have am using a Python wrapper of pdfinfo to extract some features like file size and page size of the code. This is the wrapper part of the code. def ...
0
votes
0answers
51 views

How to crop each page of a PDF individually?

How can I automatically trim margins of a multi-page PDF via Linux command line such that each PDF page gets cropped individually? http://pdfcrop.sourceforge.net/ does not do the job as confirmed by ...
2
votes
1answer
404 views

How to make mupdf automatically refresh a document

Upon opening a pdf in evince and then making a change to that document (recompiling it in LaTeX), evince will automatically refresh to the latest version of the document. mupdf however does not do ...
2
votes
1answer
215 views

Evince not saving annotations

I am using ubuntu 16.04's default pdf viewer (evince) to annotate pdf files. I have saved a copy of the PDF but unfortunately none of my annotations appear in the new copy. I still have the annotated ...
2
votes
1answer
113 views

How to read url link in pdf using shell script?

I have a chrome bookmark export file in pdf format with hyperlinks to news article, blogs in the internet. I want to write a shell script to parse this file and save the content of each hyperlink (i.e,...
0
votes
1answer
473 views

Print PDF from command line in Linux: similar to enscript -2lr

I used to print two pages of text on a single side of letter/A4 size paper, each page being a single column on that side. It was a good balance between readability and saving paper. I was able to do ...
1
vote
3answers
85 views

Does a PDF file need execution permissions?

What are reasonable PDF file permissions? Lately I've found that inside a directory, with many PDF files, all files have all possible permissions set on. Being uncomfortable with that I thought about ...
1
vote
0answers
67 views

Playing pdf with embedded animations

I have been trying to find a PDF viewer in Linux with the ability to play embedded animations (with the video data saved into the PDF). I have read tens of forum questions and tried many different ...
1
vote
1answer
222 views

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 ...
2
votes
1answer
177 views

Convert Webp to PDF

I want to convert a bunch of Webp images to individual PDFs. I'm able to do it with this command: parallel convert '{} {.}.pdf' ::: *.webp or I can use this FFMPEG command: find ./ -name "*.webp" -...
3
votes
2answers
204 views

Tool for mirroring PDF-file?

There are plenty of tools that can rotate a PDF. Is there a tool that can mirror it, too? I am not looking for a solution that first converts to a bitmap, then mirrors and then converts the bitmap to ...
0
votes
0answers
1k views

Lightweight PDF to mobi and epub converter for Ubuntu.

By lightweight I mean NOT Calibre. Please. I do not need a cataloging/library management software- which would not only consume unnecessary disk space but also ignore my current cataloging which I ...
0
votes
0answers
28 views

Reading .pdf on the command line [duplicate]

Most of my textbooks are text only with some formulas. My laptop is ancient and initializing Xorg takes forever and takes a significant pat of the 1GB working memory. Can I read those file from the ...
1
vote
3answers
100 views

pages of pdf file into variable

I have a problem with putting output of following instructions (instruction works) into variable: pdftk file.pdf dump_data | grep NumberOfPages | awk '{print $2}' when I do for example: VARIABLE=$( ...
2
votes
1answer
87 views

Merge pdf comments into single file

I have two pdf files, which are copies of the same document. But one has comments and highlights that the other does not have. I want to merge all the comments into the same document. Adobe Acrobat ...
1
vote
0answers
110 views

Copy script-code-snippets from a PDF file (repair line breaks)

I'm experiencing the problem with pdf files containing script examples. When I manually copy the snippets the structure (line breaks) get completely messed up. As far as I understand this is because ...