Questions tagged [qpdf]

QPDF is a free command-line program that can convert one PDF file to another equivalent PDF file.

QPDF is a command-line program that does structural, content-preserving transformations on PDF files. It could have been called something like pdf-to-pdf. It also provides many useful capabilities to developers of PDF-producing software or for people who just want to look at the innards of a PDF file to learn more about how they work.

QPDF is capable of creating linearized (also known as web-optimized) files and encrypted files. It is also capable of converting PDF files with object streams (also known as compressed objects) to files with no compressed objects or to generate object streams from files that don't have them (or even those that already do). QPDF also supports a special mode designed to allow you to edit the content of PDF files in a text editor.

49 questions
1
vote
3 answers

merge pdf files with extra blank page at the end of odd-paged documents - qpdf

i'm hoping to use qpdf for this. I'm printing lots of small files and need to print them double sided, so I merge, say, 20 documents and wind up with a single 200 page pdf. I then can let the printer print, even pages reversed, then flip the stack…
iateadonut
  • 1,951
  • 21
  • 32
1
vote
1 answer

Classic asp VB Wscript output

Thanks for reading / helping. On an old win2003 server, in this scenario: Const WshRunning = 0 Const WshFinished = 1 Const WshFailed = 2 Dim shell, exec, strOutput Set shell = CreateObject("WScript.Shell") Set exec = shell.Exec("cmd.exe /c echo…
AlexPM
  • 43
  • 4
1
vote
2 answers

Can QPDF utility be used to extract attachments from a PDF file?

I have a PDF file with other PDF files attached to it. Acrobat shows them in "Attachments" tab and allows to open them in turn. QPDF documentations says something about extracting attachments but I failed to find any particular commands that do…
greatvovan
  • 2,439
  • 23
  • 43
1
vote
1 answer

qpdf - replace text in existing PDF file

this is the first I'm working with PDFs on this level. So please be patient with my noob question. I understand the logical and physical structure of an PDF file on a basic level. I have an PDF that contains a dummy ID that needs to be replaced. To…
ths
  • 11
  • 3
1
vote
1 answer

linking qPDF in Qt

I need to fill pdf form. To do this I found and use qPDF c++ library. I added libqpdf.dll.a on fillPdf.pro using : win32:CONFIG(release, debug|release): LIBS += -L$$PWD/qpdf/lib/ -llibqpdf.dll INCLUDEPATH += $$PWD/qpdf DEPENDPATH += $$PWD/qpdf I…
smawell
  • 43
  • 10
1
vote
1 answer

splitting and rejoining PDFs with Poppler results in larger file? (despite stripping metadata)

If I have a multi page PDF, and split it into separate pages using the excellent poppler package (installed on macOS using brew install poppler) like this: pdfseparate foo.pdf bar-%04d.pdf and then rejoin the resulting bar-####.pdf files, like…
RocketNuts
  • 9,958
  • 11
  • 47
  • 88
1
vote
3 answers

removing password from using qpdf is failing

qpdf --password=pwd –-decrypt a.pdf b.pdf This is failing with the following message qpdf: unknown argument b.pdf Password is correct and a.pdf exists. All the examples on the net has the same format. I am running the same on ubuntu 18.04. pdftk…
gagan singh
  • 1,591
  • 1
  • 7
  • 12
0
votes
1 answer

install latest qpdf with locally installed openssl

I'm trying to install the lastes qpdf (https://github.com/qpdf/qpdf/releases/tag/v11.5.0) , with my locally compiled openssl at non-standard location. How to specify the path to my locally installed openssl? I looked at its libqpdf/CMakeLists.txt…
John
  • 119
  • 5
0
votes
1 answer

sed : swap 2 lines of text into legend from matplotlib

I have the following PDF produced from matplotlib : I have inverted in the legend, during the generation of this plot, the lines "Observed data" and "Model". I would like to swap them to be right. From this link : How to swap text based on patterns…
guizmo133
  • 11
  • 3
0
votes
0 answers

How to pipe exiftool into qpdf in bash?

I am on Linux Mint 21.1. I receive many documents which are either .pdf, .png, .csv or .jpg (rarely a .xlsx) from unknown parties. While my company email seems to have malware detection in the emails, I do not trust them completely. I want to purge…
Ginko-Mitten
  • 304
  • 1
  • 11
0
votes
1 answer

How to Concatenate PDFs via Pikepdf and Python without Unnecessary Disk Read-Write?

Current technology stack img2pdf==0.4.4 pikepdf==7.1.2 Python 3.10 Ubuntu 22.04 The requirement A pdf file (let's call it static.pdf) exists in the disk. Another pdf (let's call it dynamic.pdf) is being generated dynamically in memory with img2pdf…
Della
  • 1,264
  • 2
  • 15
  • 32
0
votes
0 answers

qpdf unable to output to stdout

I am trying to write qpdf output to stdout. qpdf --empty --pages 1.pdf 1 2.pdf 2 -- /dev/stdout But it says open /dev/stdout: Permission denied. Why qpdf can not write the output to stdout? Does it require random access in the output file to…
user1424739
  • 11,937
  • 17
  • 63
  • 152
0
votes
0 answers

Search PDF In Qt C++ in QPDFView

I want to Search Words in PDF File in my Qt C++ Application. I am using Qt 6.4.1 widget, QPDFView class, and QPdfSearchModel, and I don't know what the syntax is. As input I am taking in LineEdit Signal from PushButton. void…
0
votes
1 answer

automation to shrink page margins in pdf

I happen to have dozens of pdfs with over 500 pages in each. They written content in all these pdf occupy a small portion in the center of the page leaving a lot of margin outside of the page. This shrinks the character size. I am trying to see…
pkgitlab
  • 3
  • 2
0
votes
0 answers

Installing pikepdf on Elastic Beanstalk

I first tried adding pikepdf in requirements.txt src/qpdf/annotation.cpp:14:10: fatal error: qpdf/QPDFAnnotationObjectHelper.hh: No such file or directory I think it was missing a dependency. So I tried installing qpdf using yum install…
bones225
  • 1,488
  • 2
  • 13
  • 33