Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
10
votes
2
answers
8615
views
Remove page or page range from pdf with qpdf
I've been growing fond of [qpdf's simplicity](https://unix.stackexchange.com/questions/394065/command-line-how-do-you-rotate-a-pdf-file-90-degrees/634882#634882) 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...
I've been growing fond of [qpdf's simplicity](https://unix.stackexchange.com/questions/394065/command-line-how-do-you-rotate-a-pdf-file-90-degrees/634882#634882) 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.
mcp
(827 rep)
Feb 8, 2022, 10:02 PM
• Last activity: May 26, 2025, 12:08 PM
0
votes
1
answers
165
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 tried 1. `qpdf general.audience.pdf --object-streams=disable expanded.pdf`, as suggested by https://unix.stackexchange.com...
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 tried
1.
as suggested by https://unix.stackexchange.com/questions/17220/how-to-view-and-edit-the-code-of-a-pdf-file/109177#109177 , but when I try to edit the file, "obestiy" doesn't appear, so this method didn't work. 2. https://askubuntu.com/questions/803850/find-and-replace-with-on-pdf-file-from-command-line suggests that I can use qpdf thus:
but then the word "obestiy" [sic] never shows up. Perhaps there is/are some characters in between the letters, explaining why "obestiy" doesn't show up? How can I edit the PDF to correct the typo? 3. LibreOffice Draw distorts and ruins all of the text in the file, making the PDF unusable. Maybe there is a way for LibreOffice Draw to *not* alter the fonts?
qpdf general.audience.pdf --object-streams=disable expanded.pdf
, as suggested by https://unix.stackexchange.com/questions/17220/how-to-view-and-edit-the-code-of-a-pdf-file/109177#109177 , but when I try to edit the file, "obestiy" doesn't appear, so this method didn't work. 2. https://askubuntu.com/questions/803850/find-and-replace-with-on-pdf-file-from-command-line suggests that I can use qpdf thus:
pdftk general.audience.pdf output uncompressed.pdf uncompress
but then the word "obestiy" [sic] never shows up. Perhaps there is/are some characters in between the letters, explaining why "obestiy" doesn't show up? How can I edit the PDF to correct the typo? 3. LibreOffice Draw distorts and ruins all of the text in the file, making the PDF unusable. Maybe there is a way for LibreOffice Draw to *not* alter the fonts?
con
(109 rep)
Apr 21, 2023, 09:00 PM
• Last activity: Apr 21, 2023, 09:44 PM
2
votes
1
answers
921
views
Prevent PDF form modification
I am likely misunderstanding the concept here, but my case is this: 1. I have a received a PDF with editable fields / form that I have filled. 2. I want to lock it so that it can't be changed, but still read. I use [`qpdf` Encryption feature][1] Have tried various things like: ``` qpdf --encrypt ""...
I am likely misunderstanding the concept here, but my case is this:
1. I have a received a PDF with editable fields / form that I have filled.
2. I want to lock it so that it can't be changed, but still read.
I use
qpdf
Encryption feature
Have tried various things like:
qpdf --encrypt "" password 256 --annotate=n --form=n -- input.pdf locked.pdf
qpdf --encrypt "" password 256 --modify=none -- input.pdf locked.pdf
These leaves the document open for modification.
Does qpdf
or similar have an option to do what I want?
Err488
(25 rep)
Mar 5, 2023, 01:10 AM
• Last activity: Mar 5, 2023, 11:18 AM
Showing page 1 of 3 total questions