Skip to main content

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
0 votes
1 answer
83 views

ddjvu: using '-quality' option with values higher than 100

I try to figure out how to use ddjvu to convert DjVu files to PDF. If I use ddjvu -format=pdf input.djvu output.pdf the output PDF is very huge and consists of lossless images. Also, there appears a ...
jsx97's user avatar
  • 69
1 vote
1 answer
70 views

How to use COMPRESSION_ADOBE_DEFLATE instead of DEFLATE?

When converting to PDF using ddjvu: ddjvu -format=pdf input.djvu output.pdf there is a warning: TIFFWriteDirectorySec: Warning, Creating TIFF with legacy Deflate codec identifier, ...
jsx97's user avatar
  • 69
-1 votes
1 answer
36 views

ps2pdf vs. ps2pdfwr

To convert a PostScript file to PDF, I can use either ps2pdf input.ps output.pdf ps2pdfwr input.ps output.pdf But what is the real practical difference between the two? I do know ps2pdf provide the -...
jsx97's user avatar
  • 69
0 votes
0 answers
32 views

Why does my printer add a "M6" when I print a pdf?

I got forwarded here from the askubuntu forum. Hope you can help: Recently, I printed a pdf document and I noticed that sometimes on the print there was an additional M6 in the corner that wasn´t on ...
reloxujaku's user avatar
0 votes
1 answer
23 views

How to concatenate various jpgs pngs and pdf into single pdf leaving their sizes as they where?

I am trying to make a kind of dossier out of various pngs,jpgs and single page pdf images. It has to be a single pdf file, but it doesn't matter that results into something conveniently printable. As ...
wpkzz's user avatar
  • 113
0 votes
1 answer
78 views

How to search in a pdf or text file by a regex pattern and output locations of matches?

Is there a pdf viewer that allows me to search its text by a regex expression? In case that I haven't found one, I am thinking about extracting the text and layout from a pdf file by less my.pdf > ...
Tim's user avatar
  • 103k
0 votes
0 answers
19 views

Remove PDF pages if content is subset of next page

I have a lot of uni-slides where a list of bullet points gets shown page by page until one slide contains all points. For the sake of explaining a topic this is quite nice but for learning I would ...
BillGatesPriv's user avatar
3 votes
1 answer
161 views

How to get display to show a pdf properly

When I do: display file.pdf it shows this: I can't resize the little window that it adds but I can remove it by clicking on the x. I can also remove the checkerboard effect that comes from assuming ...
Simd's user avatar
  • 367
0 votes
2 answers
59 views

Create pdf output file alternating pages between two files

I have a pdf file, let's call it A, composed of a lot of pages. Then I have a second pdf file, let's call it B, composed of a single page. My goal is to have an output file, let's call it O, with the ...
Mark's user avatar
  • 733
0 votes
1 answer
266 views

Is there a tool that preserves CSS formatting during HTML to PDF conversion?

I tried the options in Is there a script or tool that converts HTML to PDF? with command: pandoc documentation.html -o test.pdf --pdf-engine=xelatex but unfortunately they do not preserve the CSS ...
Harry McKenzie's user avatar
1 vote
1 answer
106 views

How to generate full-page QR code from command line?

I'd like to generate a full-page QR code from the command line. The following command sort of accomplishes this: qrencode -o- https://example.net | convert png:- -gravity center -units pixelsperinch -...
user3188445's user avatar
  • 5,359
-1 votes
1 answer
173 views

How do I password-protect PDF file so that it may be opened in Windows with only Adobe installed? [duplicate]

I am running Ubuntu Linux and would like to password-protect some pdf files such that the recipient, running Windows, can open them with nothing more than Adobe, if they know the password. Can this ...
Steve Cohen's user avatar
0 votes
1 answer
33 views

double sided mpage

Hi I can easily use mpage to condense multiple single sided sheets on a single page. However I am finding it tricky to do the same for double sided sheets. In this case I am printing badges. Say my ...
gmatht's user avatar
  • 121
1 vote
1 answer
152 views

How to stop Ghostscript from adding "Producer" metadata to PDF files

I processed a PDF file using Ghostscript: gs -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -q -o output.pdf input.pdf When I used a text/binary editor to look into the output PDF, I noticed that ...
Flux's user avatar
  • 2,978
0 votes
1 answer
56 views

Compare text in pdfs when text has been re-flowed

I'm trying to compare text between two versions of a PDF document. I was able to create a diff with pdftotext, format some replacements with perl and colordiff. This output a lot of differences, but ...
snaut's user avatar
  • 101
0 votes
2 answers
64 views

Groff -ms .R macro not working; Can't format heading

groff version: 1.22.4 My style guide insists on formatting headings following way: Level 1 UPPERCASE BOLD 12pt Level 2 Bold italic letters 10pt Level 3 Italic letters 10pt According to reference for ...
p4wos8000's user avatar
0 votes
1 answer
54 views

pdfgrep multiple files with different passwords

I am trying to grep strings in password protected PDFs (credit card statements). There are multiple files with different passwords. The manpage(?) says --password=Value can be specified multiple ...
tpb261's user avatar
  • 135
0 votes
0 answers
127 views

Are there any way to restore closed tabs in okular pdf viewer?

I am on an Arch Linux machine and okular is probably the best pdf viewer, except just one lacking feature which is restoring tabs when you reopen Okular. Now since there is no default option for doing ...
souraj ghosh's user avatar
0 votes
0 answers
142 views

How do I create and retain bookmarks in qpdfview or qpdf? I was using Ctrl+b and saving my bookmarks but it's not permanent after restarting qpdf

I think the main question is self-sufficient. To add things that I tried: I am on a linux machine so I was trying opensource options, and qpdf was the software I was already using. Tried to seek ...
souraj ghosh's user avatar
0 votes
1 answer
483 views

Open a new instance of a pdf file with zathura

I love zathura to read my PDF but there is an important feature I am missing. How can I open a copy on the current file (in another instance of zathura)? Thanks for your help! Update (solution): For ...
mahaaaham's user avatar
0 votes
0 answers
57 views

Display the current time during a PDF slides presentation (i.e., totally full screen)

I want to have current time (i.e., HH:MM) displayed in a corner of the screen when I present my slides (at the moment, I'm using Okular but I'm open to change). I have found a working solution $ cat ~/...
gboffi's user avatar
  • 1,454
0 votes
1 answer
48 views

Print two half-sized copies of a two-sided document at once

I have a two-sided, us-letter format document that I'd like to print two copies at once, by resizing it to half letter (a.k.a. statement, or organizer L). My current workflow is very inconvenient: ...
Clément's user avatar
  • 378
0 votes
1 answer
65 views

Image Magick produces two PDF pages from a single TIFF with convert

with Debian and this version of image magick: convert --version Version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org Copyright: (C) 1999-2021 ImageMagick Studio LLC License: ...
freezr's user avatar
  • 11
0 votes
1 answer
46 views

Combine PDF forms including filled-in information

I have been trying to file my taxes by filling out the individual forms, which are fillable PDFs on the IRS's website, and concatenating them using the pdfunite command: pdfunite f1040.pdf f1040s1.pdf ...
Mirlan's user avatar
  • 101
0 votes
1 answer
66 views

How to tell convert command to skip a page in pdf?

I want to split a PDF page because it scanned two page at the time and I found this useful command: convert in.pdf -crop 50%x0 +repage -density 400 out.pdf But now I want this command to skip ...
malloc's user avatar
  • 135
0 votes
0 answers
224 views

Error opening directory with Okular due to "Too many levels of symbolic links" in Ubuntu 22.04

This location could not be displayed. Sorry, could not display all the contents of "Documents": Error opening directory '/home/arijit/Documents': Too many levels of symbolic links I ...
ARIJIT GURIA's user avatar
0 votes
0 answers
2k views

PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?

Currently I am trying to use pdfinfo for extracting the content in the pdf files. I have installed poppler-utils in local using !sudo apt-get install -y poppler-utils and it worked, Now I am running ...
ram_98's user avatar
  • 1
0 votes
0 answers
21 views

Get older revision of signed pdf in command line

I'm creating a multiple signed PDF with JSignPDF. I have an empty PDF file that I sign multiple times. Here is the minimum reproducible example of how I make the PDFs: $ echo '...
Kristian's user avatar
  • 259
5 votes
2 answers
370 views

evince opens pdf in "presentation mode"

when opening a particular pdf file, evince decides to open it in "presentation mode". I see in the man page that evince has -s option to open in presentation mode, but I did not invoke it. I ...
Martin Vegter's user avatar
0 votes
0 answers
163 views

How can I repair a pdf file without losing links within it?

I am using the following gs command: gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=/path/to/output.pdf /path/to/input.pdf to repair a pdf file which may have various unclear problems ...
Tim's user avatar
  • 103k
0 votes
1 answer
61 views

Split and rotate multiple-pages PDF

I have a multiple-pages PDF which I would like to split (each page being split in 2 or 3 pages) and rotated. My aim is to be able to print a scaled version of my PDF. I tried this pdftk input.pdf cat ...
GlinesMome's user avatar
0 votes
0 answers
13 views

Scanned Pdf documents do not print every now and then with Brother MFC-J6930DW

I have the Brother MFC-J6930DW printer. Documents can be printed with Linux Mint without problems. PDF's created from documents are also no problem to print. If I want to print a scanned document, the ...
Lebewesen's user avatar
2 votes
0 answers
157 views

Combine PDFs to new PDF with filenames as bookmarks

I have a directory foo containing .pdf files named with pattern X01, X02, ..., each two pages long. I want to combine them to a new .pdf, named "all_YY-MM-DDTHHMMSS.pdf" that will contain ...
jay.sf's user avatar
  • 227
2 votes
0 answers
39 views

OCR high res images & combine OCR data later, after image compression?

I have a large number of .tif's coming out of ScanTailor. Is there a way that I might OCR those .tif's with tesseract, holding the OCR data separate from the images; then compress the images, and ...
Diagon's user avatar
  • 680
1 vote
0 answers
279 views

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 ...
Daniel's user avatar
  • 363
0 votes
1 answer
332 views

flatten pdf tool

I need a way to flatten PDFs, treating them as images. I frequently use LibreOffice Draw, as it is the perfect tool for many tasks. However, it has a frustrating bug when it comes to Hebrew text (I'm ...
Chicko's user avatar
  • 1
-1 votes
2 answers
148 views

Why is there "==> append : to filename to view the PDF source" at the beginning of the output of `less` on pdf files

When I use less to view the text part of a pdf file, I get ==> append : to filename to view the PDF source appended to the beginning of the output. Why does that happen? How can I suppress it? $ ...
Tim's user avatar
  • 103k
0 votes
0 answers
756 views

Converting a TXT file to PDF from the command line using a custom font

I want to convert a UTF-8 txt file to PDF for printing with CUPS. The problem I'm facing is that all tools I've tried have either failed to format the PDF (resulting in a fully white document with no ...
psvg200's user avatar
0 votes
1 answer
513 views

How to use evince to open PDF accessed through remote ssh?

It is extremely likely this question comes from a major misunderstanding, but I will explain what I am trying to do/have done. I am also not fully sure this is a Linux/Unix issue. My goal is to view a ...
lingStudent's user avatar
0 votes
1 answer
260 views

How to enable reading PDF annotations in zathura

I'm using Zathura document viewer and I wanted to have some support for PDF annotations, I'm using the ZATHURA-PDF-MUPDF and as far as I know mypdf has support for PDF annotations, but yet Zathura ...
Abdelrahman Dwedar's user avatar
1 vote
1 answer
50 views

Converting non-English manual pages to PDF/PostScript

I'm trying to convert manual pages containing either Japanese or Russian characters to the PDF/PostScript formats. I'm doing it with the following commands. man -Tpdf /usr/share/man/ja/man1/vim.1.gz &...
Shamaoke's user avatar
  • 201
0 votes
1 answer
61 views

How to find a file and copy its directory without copying the other files in that same directory?

I have a lot of different folders with pdf files and other extensions. I want to copy all the pdf files to another destination. But if I do that with find like this: "${SEARCHDIR}" -iname &...
pwrsheller's user avatar
0 votes
1 answer
301 views

How can I fix font issue with a PDF file?

I have a PDF file (this Mazda owner's manual to be precise) with font issues. Therefore I cannot search within. For instance, if you search for the word electric, Okular cannot find it (I've also ...
şaloma's user avatar
  • 531
1 vote
1 answer
165 views

create larger pdf from smaller pdfs by putting several smaller pages onto the large one

I have one or several pdfs with small size like A5, A6 etc.. Possibly with more than one page. I want to create a large pdf like A4 that is completely tiled with the smaller ones, so that I can print ...
Kjara's user avatar
  • 131
0 votes
1 answer
123 views

Correcting typo in PDF, other solutions aren't working

I have a job interview on Tuesday, and I need to correct a typo "obestiy" [sic] to "obesity" in a PDF from LaTeX that I cannot recompile due to missing images and tables. I have ...
con's user avatar
  • 109
2 votes
2 answers
553 views

Any foss apps on Linux that contain the print booklet feature of Adobe Acrobat Reader?

I have been using the Print Booklet -function of Adobe Acrobat Reader on Windows. However the program does not have a Linux version, see download page. Also I don't see the option on Evince. Are there ...
dmy3628's user avatar
  • 21
0 votes
1 answer
89 views

Is it possible to create such a tool that allows to save a being read text from a PDF reader into a string for handling this text afterwards?

The Linux Mint has a tool for PDF reading that is called the "Xreader" and installed by default together with the operation system installation. Is it possible to create such a tool that ...
SFriendly's user avatar
  • 101
0 votes
2 answers
159 views

Thunderbird unable to save file to PDF in gnome google drive

I am having a weird issue, whereby if I want to save an email through print to PDF from Thunderbird to the Gnome managed google drive mounted drive it doesn´t work. It simply returns back to the ...
N.Schipper's user avatar
2 votes
1 answer
487 views

Prevent PDF form modification

I am likely misunderstanding the concept here, but my case is this: I have a received a PDF with editable fields / form that I have filled. I want to lock it so that it can't be changed, but still ...
Err488's user avatar
  • 25
0 votes
1 answer
43 views

Uploading compiled .tex file (.pdf) to the root repo in Gitlab

I need your help with the following problem. I'm trying to compile a .tex document in GitLab and put my compiled .pdf file in the root repo. I have created a .gitlab-ci.yml file which has the ...
Mafsi's user avatar
  • 141

1
2 3 4 5
15