Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Are qpdf.check and qpdf.qpdf are implemented into node-qpdf2

I have searched the sources in the git-repo, but I can not find anything about that. Basically I want to do this qpdf --check --password=MyPassword filename.pdf in a node.js app with node-qpdf2. Is ...
ruese's user avatar
  • 73
1 vote
2 answers
106 views

document trailer ID in PDF: why does it consist of two strings and how to extract it by a command line tool

Although there are tools to access PDF metadata like pdfinfo, I did not find a proper way to get the trailer id. Instead I use an editor and search... So my first question is, whether there is a ...
user2609605's user avatar
0 votes
2 answers
72 views

Metadata in PDFs from HTML

I need to carry some metadata – which could amount to just an ID – from the source HTML, through to the PDF using WeasyPrint, eventually ending up somehow addressable in the HTML rendered by pdf.js (...
serlingpa's user avatar
  • 12.7k
2 votes
0 answers
299 views

how to select and highlight texts from pdf in pyqt5/pyqt6/pyside6?

I am developing a Python desktop application using PyQt6 where I need to render the pdf in the app. I need to select and highlight the texts from the rendered pdf. After that I need to implement drag ...
Suraj Paikekar's user avatar
1 vote
1 answer
60 views

building qpdf with cmake under microsoft visual 2022 failed

I'm trying to build qpdf latest version for windows using visual 2022. Build failed with message: 1> [CMake] CMake Error at libqpdf/CMakeLists.txt:192 (message): 1> [CMake] libjpeg not found ...
Krzysztof Jeleń's user avatar
0 votes
0 answers
116 views

Encrypt multi PDF files with qpdf

I’m creating a batch file to encrypt multiple PDF files with qpdf. It only works if there is one PDF file even though I use “*.pdf” in the script. Please advise. qpdf --encrypt "" PW123 256 -...
Bruce's user avatar
  • 1
0 votes
2 answers
436 views

Splitting PDF Files into Smaller Chunks Based on Size Using qpdf

How to split large PDFs into 200MB files? qpdf and other Linux tools can only set the number of pages each file has, not file size.
John Smith's user avatar
0 votes
1 answer
70 views

What is the human unreadable in a stream obj of the uncompressed PDF

As It's supposed to be uncompressed by qpdf i.pdf --stream-data=uncompress o.pdf but then there's still some sequential lines which is human unreadable in some stream objects So confused what it is ...
user17227456's user avatar
  • 1,329
0 votes
1 answer
230 views

Decompressing PDF in pure javascript

I have pdfs with compressed data that qpdf decompresses and saves as a decompressed readable pdf. But I would like to make a node javascript-only solution that I can package up so my users don't have ...
user800268's user avatar
1 vote
0 answers
26 views

Packaging MacOS CLI functionality to use on other Macs portably

I wrote a node script to use with a specific PDF format that my MacOS-based company receives to automate some things. It requires the PDF file to be uncompressed, which I am using qpdf to do. Is it ...
user800268's user avatar
1 vote
1 answer
164 views

How do I get Qlistview to include all the search details for pdf hits in QPdfSearchModel Class for python like it does in the documentation

When I do a pdf search using the QPdfsearchmodel class my model only seems to include the word I searched for and context before/context after: However, in the documentation there is also a listing ...
ScottyCov's user avatar
0 votes
1 answer
70 views

Extract arabic-numerated pages with qpdf

The file srcfile.pdf has a variable number of roman-numerated pages (i, ii, iii, etc) and the following arabic-numerated pages (1, 2, 3, ..., n). How to extract only arabic-numbered pages (e.g. #1 to #...
wolfrevo's user avatar
  • 7,353
0 votes
1 answer
131 views

Why can't I add the text when I convert my HTML file to PDF?

My goal is to convert my PDF file to HTML. Then converts HTML back to PDF. When I do this on a normal file which is not secure and without a password, it works perfectly. But when I do this on a ...
savegramer's user avatar
0 votes
1 answer
172 views

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 ...
John's user avatar
  • 119
0 votes
1 answer
52 views

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 ...
guizmo133's user avatar
0 votes
0 answers
149 views

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, ...
Ginko-Mitten's user avatar
0 votes
1 answer
453 views

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 ...
Della's user avatar
  • 1,668
1 vote
0 answers
342 views

Merge >300 PDF files to a single PDF, error: too many open files

I would like to merge 500 PDF files in R. Usually qpdf::pdf_combine worked fine for a few PDFs, but now I get the error: Too many open files. I found that this error is related to the fact that qpdf ...
captcoma's user avatar
  • 1,918
0 votes
0 answers
365 views

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 ...
user1424739's user avatar
  • 13.9k
2 votes
2 answers
2k views

Can I tag a PDF programmatically?

Can an unstructured PDF be tagged using any tools/libraries? Only source of tagging a PDF was using Adobe Acrobat or Auto-Tag APIs (Not something which I am looking forward to + not so great results ...
Harsh Donga's user avatar
0 votes
0 answers
639 views

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 ...
akshat sharma's user avatar
5 votes
3 answers
3k views

Can I bulk-remove links from a pdf from the command line?

I'm downloading some newspapers as pdf (for posterity). One title is a pain, it includes URI links in the pdf itself, if you accidentally click these it opens a browser tab to a page that 500s. It's ...
John O's user avatar
  • 5,513
1 vote
1 answer
379 views

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 ...
pkgitlab's user avatar
-1 votes
1 answer
298 views

qpdf with visual studio console project but lnk1107 - a dll cannot read at 0x308

I follow this link and download the built directory, tring to use qpdf library in a easy way. How to build qpdf on Windows? I do these steps to setup my visual studio project: 1. C/C++ -> General -&...
tian's user avatar
  • 21
0 votes
0 answers
331 views

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 ...
bones225's user avatar
  • 1,738
-1 votes
1 answer
780 views

How to add qpdf module in qt 5.10

I want to add pdfreader in my qt application.when searched online I got to know about qtpdf class. I try to include same in my project. seems I don't have package in my system itself so it don't ...
Rohit Kalelkar's user avatar
0 votes
1 answer
67 views

How can I optimize my pdf repository after splitting it by page?

I have about 20 large pdfs which I have split by pages for easier access. When I split it by pages using qpdf I am observing an inflation of 10x in total size, meaning that I have some redundant data ...
pkgitlab's user avatar
0 votes
1 answer
449 views

How to invert pdf even and odd pages?

I have good amount of PDFs, and I noticed that some of them, have pages in a wrong order: Right Order: 1-2-3-4-5-6-7-8-9-10...120-121 Wrong order: 1-2-4-3-6-5-8-7-10-9...121-120 The first 2 pages are ...
AHellOfAJourney's user avatar
0 votes
1 answer
924 views

Bash script qpdf to split multiple pdfs in 1 directory

I wrote a simple bash script as I need to split multiple pdfs into 2 pdfs on a regular basis. I need them to be split in the same sequence each time (pages 1-5 and 6 to last page). I need the newly ...
PonH's user avatar
  • 11
0 votes
1 answer
626 views

pdf how to batch list pdf having annotations? qpdf? pdfinfo?

I was surprised when I printed a pdf which I annotated with Okular that print was without the annotations eventhough it does show on the screen. I have to save the annoted file as printed pdf, then ...
user2718593's user avatar
1 vote
0 answers
882 views

QPDF how to detect pages size (or ratio)

How can be detected page size (height x width) with qpdf? I know that it could be that size is something relative, but at least I could know ratio between height and width (eg. a3, a4).
Michele Carino's user avatar
4 votes
3 answers
8k views

How can I merge pdf files together and take only the first page from each file?

I am using qpdf to merge all pdf files in a directory and I would like to merge only the first page of multiple inputfiles. According to the qpdf documentation on page selection this should be ...
Human's user avatar
  • 896
0 votes
1 answer
393 views

How to reference text content in preformatted PDF (QDF)?

When editing the source of a PDF file with a text editor, I can use an object more than once by referencing it multiple times. This example is a reference to object 15: /Resources << /...
mabam's user avatar
  • 23
2 votes
1 answer
1k views

Tool / Command for decrypting in source code of a PDF file?

I am using the qpdf command to view the raw code (source code) of PDF files. Specifically I am using the command: qpdf --qdf original.pdf unpacked.pdf However a lot of PDF metadata is encrypted ...
Anon's user avatar
  • 431
3 votes
1 answer
10k views

How to decode PDF file and encode it back?

My overall goal is to make some PDF files conform to the PDF/A standard for archival purposes. They fail one requirement, namely that some glyph mappings map to 0, which they should not. My usual ...
Smogshaik's user avatar
  • 355
15 votes
2 answers
11k views

Split a PDF file into another two PDF files using qpdf

Is it possible to split a PDF file into two parts or n parts using qpdf tool? The docs say so but I couldn't find the exact command to do it. I'm using qpdf version 10.0.1.
Alen Paul Varghese's user avatar
1 vote
3 answers
1k views

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 ...
iateadonut's user avatar
  • 2,279
0 votes
1 answer
2k views

QPDF giving file not found error in python

I am using qpdf to decrpyt pdf files (encrytpted but without password) as pypdf2 decryption doesn't work. It is working on command line but with python giving FileNotFoundError qpdf --decrypt --...
ggaurav's user avatar
  • 1,804
1 vote
1 answer
1k views

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....
AlexPM's user avatar
  • 43
1 vote
2 answers
3k views

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 ...
greatvovan's user avatar
  • 3,175
0 votes
2 answers
1k views

Using Zsh and QPDF to decrypt multiple PDFs

From this answer https://stackoverflow.com/a/59688271/7577919 I was able to decrpypt multiple PDFs in place using this bash script: temp=`ls`; for each in $temp; do qpdf --decrypt --replace-input $...
Chthonyx's user avatar
  • 707
2 votes
1 answer
3k views

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 ...
ths's user avatar
  • 21
0 votes
1 answer
2k views

Unable to decrypt PDF in node using node-qpdf

We need to decrypt the password protected PDF file using node. We are using the node-qpdf. Here is our scenario. 1). We are getting the password protected PDF file as input. 2). using the QPDF , with ...
Shiv's user avatar
  • 11
0 votes
1 answer
1k views

Sending password protected attachments via SendGrid

I want to send password protected pdfs as email attachments using SendGrid for nodejs. I tried to password protect my pdf using qpdf. This outputs a new pdf file that is password protected locally. ...
KangHoon You's user avatar
0 votes
0 answers
623 views

Different cmaps for different pdfs, how to make a global cmap, so as to process many pdfs with same fontmap to /toUnicodemap

I have many pdfs, which when copied render incorrect text, due to bad fontmap to unicodemapping Something like this : Original - निर्वाचक Rendered when copied : ननरररचक I have gone through ...
aspiring1's user avatar
  • 446
0 votes
1 answer
2k views

PDF: obfuscating text encoding to prevent automatic parsing and copy+paste

I want to make a PDF available on my website, but want to prevent the automatic parsing by bots that might not respect the normal PDF "security". The reason is that this is also commercially published ...
Rob Hall's user avatar
  • 1,418
0 votes
1 answer
141 views

qpdf has started throwing "External component has thrown an exception" on qpdf_init()

As of today, qpdf stopped working on my server. It's been running for a few weeks without any issues, but today I am getting a "External component has thrown an exception" error, I am not getting this ...
Alexander Don'valderath's user avatar
0 votes
1 answer
152 views

check checkBox using ffh.getFieldType() == "/Btn" with qpdf lib

I use the qpdf it works when I use /Tx for filling text field. But it doesn't work for checking a checkBox : Lib header : https://github.com/qpdf/qpdf/blob/aa602fd107a622a3f12e6530220bb0303b95b520/...
smawell's user avatar
  • 43
1 vote
1 answer
1k views

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 ...
smawell's user avatar
  • 43
-2 votes
1 answer
311 views

Get number of pages in a Folder of every pdf and extract only part of pdf when bigger than 30 sites

is there a way to filter out all pds in a folder that have more than 30 pages like qpdf --pages *.pdf and when a documant have more than 30 pages, then extract only the first and last page and ...
user3545432's user avatar