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 retrieved from the file properties, or using "file document_name.pdf"

Filter by
Sorted by
Tagged with
2 votes
0 answers
39 views

A lot of my old PDF files have become unreadable, and pdftk doesn't seem to help

I have an extensive library of my old publications in PDF format. Recently I found that many of the older ones (as recent as early 2000s) are no longer readable by either okular or xpdf. xpdf says: ...
user avatar
0 votes
1 answer
10 views

How do I view information contained in a file produced by `pdfsig -dump`?

pdfsig shows some information about digital signature of a PDF document, and also allows to -dump it to file. How do I view all information from that file in accessible form? It contains much more ...
user avatar
  • 5,176
1 vote
0 answers
20 views

Split pdf document based on section

(This may be a XY problem, more on the context at the end) Is there any way of programmatically splitting a pdf based on the section titles? That is from this pdf, produce 2 pdfs, where one contains ...
user avatar
  • 366
0 votes
0 answers
18 views

PDF reader with thumbnail preview in the opening dialog

Situation: I download lots of PDFs which have unhelpful file names, such as arXiv papers (thanks, 1807.03042.pdf). I'm often reading one of them in Okular and want to switch to another, say just to ...
user avatar
  • 121
0 votes
0 answers
81 views

zathura - The not-so-lightweight pdf reader

Long time user of zathura since it really is 'lightweight' in that there are no extraneous features. However, I often find myself running out of memory due to having several pdf's open at once. From ...
user avatar
  • 107
0 votes
1 answer
57 views

Force pdfjam to fit a specific size in final output

My intentions is to make a full book cover (a wide page including the book’s back, the spine, and the front cover). To achieve this, I have three PDF files containing the front page (first-page.pdf A4 ...
user avatar
  • 960
0 votes
1 answer
46 views

How to remove a specific color from a whole pdf document?

Is their a way, with imagemagick, pdftk or other stuff, to remove a specific color from a whole pdf document? I mean, I give an html hex color code to a tool, and it remove all occurences of this ...
user avatar
  • 960
0 votes
1 answer
34 views

Script for copy bookmarks from one pdf to another

I want to transfer bookmarks from a series of uncompressed pdf files to their compressed copies (these copies do not have the original bookmarks). I know how to do this one by one using pdftk. First I ...
user avatar
  • 218
1 vote
1 answer
55 views

A2 on four A4 pages? | Convert A4 PDF to "A2 on four A4" PDF?

Given e.g. pdf (in any size) how to enlarge it to A2 size and print on four A4 pages? (if possible it would be great if pdf having multiple pages we could split like this, so if there is pdf with ...
user avatar
0 votes
0 answers
53 views

Re-orient (not rotate) PDF content from portrait to landscape

I have a PDF file that looks like this: All the solutions on the internet say I should rotate the PDF to get it to landscape, so I used pdftk and got this result: This just rotates the PDF contents, ...
user avatar
2 votes
0 answers
47 views

PDF Reader that can do handwritten annotations?

I'm looking for a PDF reader that allows to add hand-written annotations to a pdf file using the touchscreen of my convertible laptop. I've tried plenty, none seems really satisfying ... maybe someone ...
user avatar
0 votes
2 answers
47 views

How to make 170mm:240mm PDF paper format visible on printed A4 sheet?

My PDF has a custom paper format of 170mm:240mm and is intended for print publishing in that size. At home, I can only print on A4 paper. How do I print the PDF in such a way that the content is ...
user avatar
  • 429
0 votes
0 answers
30 views

Converting XLSX (or ODS) to PDF with no admin rights

I am writing a code in PHP that open and edit an Excel File (template) using PHPExcel library. At the end convert to PDF. I tried use all writers to PDF that PHPExcel has: Dompdf, Mpdf and Tcpdf. None ...
user avatar
  • 101
1 vote
0 answers
24 views

evince does not show font names in PDF files anymore

$ pacman -Q evince evince 41.4-1 Evince does not show font names in PDF files anymore. They look alright, they seem to be embedded normally and the font tab says as much (see screenshot, although it ...
user avatar
  • 786
0 votes
0 answers
20 views

Groff use rsvg-convert pdf images error

I'm experimenting with troff/groff typesenting system, to be more specific with ms macross, and I'm triing to use plantuml generated diagrams. I found out that I can render plantuml diagrams as svg ...
user avatar
-1 votes
1 answer
145 views

add page numbers to pdf

this guy says enscript worked 'like a charm': http://www.dry-lab.org/blog/2018/numbering-pages-of-a-pdf but it wiped my pdf - producing page numbers on blank pages id rather use something like pdfsam: ...
user avatar
1 vote
1 answer
68 views

chromium: cannot save pdf, get error: "failed - blocked"

for almost any pdf link on the internet, when I click the link I can view it in chromium browser, but when I click on the pdf to save it (ie, right click and "save link as"), I get this ...
user avatar
0 votes
1 answer
131 views

How to convert pdf file to text without breaking lines

I use pdftotext utility to convert pdf file to text. pdftotext *.pdf *.txt It works, but it can not work properly with lines, it makes new lines when it was not. Is there any other utility do this job....
user avatar
0 votes
1 answer
25 views

Rotate pdf pages, parallel to a hand drawn line (less than 90 degrees)

I have a scanned book as a pdf file. Some pages are not correctly align and need some rotation, less than 90 degrees, obviously. The text in the pages has not very good defined limits, but there are ...
user avatar
1 vote
1 answer
178 views

Remove page or page range from pdf with qpdf

I've been growing fond of qpdf's simplicity and speed. Is there a way to use qpdf to remove a page or page range from a pdf document using qpdf? Say I want to remove pg 2. Say I want to remove pg 4-7.
user avatar
0 votes
2 answers
86 views

Edit PDF On The Command Line

Is there a way to blacken parts of a pdf file (i.e. personal data that I don't want to send with the pdf)? Maybe from the command line where I can say make everything black on page 2 from pixel X455 ...
user avatar
0 votes
1 answer
155 views

How to open pdf files inside a pane in tmux?

I am currently using Ubuntu 20.04 Gnome Desktop. My pdf app is zathura and currently using tmux. I was wondering is it possible to show pdf file in another pane in tmux?
user avatar
  • 13
0 votes
1 answer
55 views

Why the option button can't be selected when odf file converted into pdf with libreoffice7.2?

I have installed the latest libre-office version 7.2 , and wrote a fillable odt file. The option button can be selected in libre-office,i have upload the whole sample odt file,you can download it and ...
user avatar
  • 85
4 votes
2 answers
492 views

Search PDF files with more than 100 pages and moving them into directory in UNIX/LINUX terminal

I'm trying to search for PDF files that have more than 100 pages and then moving them into a specific directory in the UNIX/LINUX terminal. Something a bit like this: find . -name '*.pdf' -pagenumber&...
user avatar
  • 143
0 votes
1 answer
14 views

How to show PDF character layer again in Document Viewer when selecting text?

After updating from Fedora 33 to 34 I noticed that PDF files with text layer behave differently in Evince Document Viewer. When selecting text the old version used to display the characters above the ...
user avatar
0 votes
1 answer
41 views

Why can't remove the user password for pdf file?

Install tools for crypt and decrypt pdf file: sudo apt install -y pdftk Crypt a pdf file with it: pdftk inputfile.pdf output outputfile.pdf user_pw mypass Now i have to input mypass to open the ...
user avatar
  • 85
0 votes
0 answers
40 views

From HTML to .pdf - in a recorsive way

I read some (old) treads about this matter, but I've to create a .pdf of a whole part of a site. I was able to download all this with wget -r. Then, I tried to use wkhtmltopdf, but it seems to me that ...
user avatar
  • 153
0 votes
0 answers
22 views

Which pdf files have personal annotations?

I have hundreds of pdf files in a folder, some of them with personal notes. I would like to know which ones have those personal comments. I don't know a command line utility that could read this type ...
user avatar
  • 218
3 votes
1 answer
91 views

Reduce the filesize of a PDF with text?

I have a PDF created with PDF Sandwich. Each page of the PDF contains a background image and some foreground text. I want to reduce the filesize (not the resolution) of the background image - and ...
user avatar
0 votes
0 answers
47 views

Editing single characters in a PDF file (generated from QPDF)

Friends, I would love your help navigating a PDF editing situation. I've extracted the PDF streams using QPDF (per the instructions here). I now have an editable PDF. My task is to replace certain ...
user avatar
0 votes
0 answers
28 views

How to reverse the margins in pandoc (markdown to PDF conversion)

I'm rendering a markdown file to a PDF in Pandoc, with documentclass set to book, for publishing via Amazon self-publishing. It's making extra margin space on the right for odd pages, and on the left ...
user avatar
0 votes
1 answer
132 views

Markdown to PDF Converstion with Pandoc: Make pages a specific size, in inches

So I know you can use pagesize and geometry to set the page size of the PDFs Pandoc makes to presets (like a5, b5, etc), but is there a way to set a precise pair of dimensions? I'm going to be using ...
user avatar
2 votes
2 answers
121 views

How many pages has pdf? (count in bash script)

How many pages has pdf? Could you provide a way to get this information in bash script?
user avatar
1 vote
1 answer
101 views

Blacking out regexp in pdf files from command line

Is there any command line tool (or toolchain) for linux where I can automatically blackout a given regexp in a pdf, or alternatively (maybe better) introduce noise in the match to make the parts ...
user avatar
  • 16.8k
1 vote
0 answers
24 views

Enumeration Stamping pdf pages with Imagemagick

A .pdf file has 100 pages of images. The goal is to enumerate pages 81-90 in the upper left hand corner. I have been able to enumerate .jpg (Raster) images with imagemagick top=/Users/user/Desktop/...
user avatar
  • 1,114
2 votes
1 answer
888 views

How to create a self-signed certificate for Okular PDF

I am at a loss. I want to create a self-signed certificate to sign PDFs with Okular. I have not found any step-by-step directions that work. I tried creating and installing a certificate, but Okular ...
user avatar
0 votes
0 answers
87 views

Programmatically edit pdf files

I'm looking for tools that can help me do automated edits to large PDF files. Examples are: A PDF of a book has two book pages on each PDF page. I would like to split. Each page in the middle to ...
user avatar
  • 11
0 votes
1 answer
18 views

Combine Multiple pdfs with a new page with text between each

I've read through and tried multiple posts on similar topics and none satisfied my purpose. I have multiple pdfs which are project reports for each week of a 16-week project and are titled Week1.pdf, ...
user avatar
0 votes
0 answers
203 views

Change PDF page size without re-scaling a content (CLI)

Question I have a PDF with a non-standard page size. I would like to change PDF canvas size to A4 without re-scaling the content. I can receive the expected result with Printing to PDF (picture below, ...
user avatar
  • 1
0 votes
1 answer
27 views

Annotate series of pdf documents with page counter

The goal is to enumerate a set of .pdf files using command line tools. Ideally a free open source package would lend itself to performing the enumeration tasks on both Catalina and Ubuntu 20.04. ...
user avatar
  • 1,114
0 votes
0 answers
73 views

cURL downloads aspx files instead of pdf ones

I am trying to use curl to download lots of files from a website (completely legal, I have a subscription and it's about 1.2K files I want offline, I can't really go and donload each one manually). ...
user avatar
0 votes
0 answers
35 views

cups-pdf : Multiple printers with different targets

I have on my CUPS server multiple network printers, and I added a cups-pdf virtual printer. All this is working. Now I want to add another virtual printer who save the PDF file to another folder. I ...
user avatar
  • 1
1 vote
1 answer
95 views

Disable "speak text" in Okular

I have personally no need for this feature and have never activated it except by error. Sometimes I click that instead of copy and that unpleasing voice starts without any obvious way to make it stop....
user avatar
  • 1,007
0 votes
0 answers
27 views

Printing wine via CUPS PDF

for years I printed a MS Access (via wine) report via the CUPS PDF printer. I used custom margins to make it fit perfectly on 2 sheets of a5 (ledger style / landscape). Something has changed and I can ...
user avatar
  • 1
1 vote
0 answers
18 views

Is there software to manually OCR / teach OCR for handwriting (non-english) texts?

I had a problem that can't solve Tesseract/Abbyy Finereader etc - they can't recognize handwriting Russian as example. So I search OCR software for such things or a way to manually OCR my pdfs (...
user avatar
  • 11
0 votes
0 answers
106 views

mutt & attachment encoding

So, I have a simple bash script that is intended to send a note to a user (say, the fictitious fflintstone@bedrock.com), where said note contains a short snippet of text (contained in the file message....
user avatar
1 vote
0 answers
51 views

No option for printing to PDF within Wine in NixOS

Most forum posts for other distros recommend installing a "cups-pdf" package to enable printing to PDF in non-standard applications like Wine. I can't find any such package or option in ...
user avatar
  • 47.1k
0 votes
1 answer
344 views

How to convert a directory of jpg files to a pdf with filenames as bookmarks?

I have a directory of jpg files that are scans of my handwritten notes. How do I convert them to a single pdf file that has the filenames as bookmarks? (I eventually also want to add ocr. As mentioned ...
user avatar
  • 1
0 votes
1 answer
420 views

xpdf: Config Error: No display font for

When I open xpdf, I'm seeing a bunch of errors printed to my console: Config Error: No display font for 'Courier' Config Error: No display font for 'Courier-Bold' Config Error: No display font for '...
user avatar
1 vote
1 answer
184 views

extract document information from PDF file like width of margins?

I have used tools like qpdf and pdfinfo from the poppler-utils to get information about PDF documents. However I am looking for a way to get more specific information like the width of margins, the ...
user avatar

1
2 3 4 5
13