11
submitted 1 year ago* (last edited 1 year ago) by antihero@lemm.ee to c/linux@lemmy.ml

Could not find how to do it with qpdf or pdftk or even a gui tool.

Edit: Solution pdftk A=oldpdf.pdf cat A output newpdf.pdf This removes all metadata and also the attachments.

top 6 comments
sorted by: hot top controversial new old
[-] kleiner_zeh@kbin.social 4 points 1 year ago

https://stackoverflow.com/questions/20676707/remove-delete-all-images-from-a-pdf-using-ghostscript-or-imagemagick

gs -o noimage.pdf -sDEVICE=pdfwrite -dFILTERIMAGE input.pdf

can't test it right now though.

[-] beejjorgensen@lemmy.sdf.org 2 points 1 year ago

Slightly shorter:

pdftk old.pdf cat output new.pdf

[-] garam@lemmy.my.id 1 points 1 year ago

Code Industry Master PDF does use open source tools. Sadly source code only available for paid user. 😂

[-] worfamerryman@beehaw.org 0 points 1 year ago

I forget exactly what I did, but I think I used okukar. It showed the attachments then it just selected them all and copied them to the desktop.

It might have been one of the web browsers, but I’m pretty sure it was okular as i couldn’t do it on windows.

If you have a better solution, please let me know.

[-] antihero@lemm.ee 1 points 1 year ago

I am talking about removing them from pdf. For extracting them this works pdftk [pdf_file.pdf] unpack_files.

[-] Fox@pawb.social -1 points 1 year ago

I've used LibreOffice Draw before to remove content from PDF files without reprinting

this post was submitted on 27 Jul 2023
11 points (86.7% liked)

Linux

47371 readers
808 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS