Friday, May 3, 2024
16
rated 0 times [  16] [ 0]  / answers: 1 / hits: 13678  / 2 Years ago, sun, august 14, 2022, 9:39:21

I've got a rather large (~100MB) PDF document with lots of images in it (as illustrations and background images), and I'd like to have a copy of that pdf without images but I can't find out how to do that.



I'm not talking about converting it to text only, I'd like to keep paragraphs/tables/multi-columns as they are.



I'm comfortable with command line and have several computers with different distributions that I can use.


More From » command-line

 Answers
7
cpdf -draft original.pdf -o version_without_images.pdf

It is not in the repositories but you can find a download (pre-compiled or source) on their website.




Manual:



15.1 Draft Documents


The -draft option removes bitmap (photographic) images from a file, so that it can be printed with less ink. Optionally, the -boxes option can be added, filling the spaces left blank with a crossed box denoting where the image was. This is not guaranteed to be fully visible in all cases (the bitmap may be have been partially covered by vector objects or clipped in the original). For example:


 cpdf -draft -boxes in.pdf -o out.pdf


[#24771] Sunday, August 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oreera

Total Points: 472
Total Questions: 121
Total Answers: 116

Location: Mayotte
Member since Thu, Dec 17, 2020
3 Years ago
;