I have a PDF book that I want to remove a few pages from to reduce the file size. My normal solution to this didn't work, and when I tried others they introduced new problems:
As you can see, it's surprisingly tricky to remove pages while otherwise leaving the document the same. Any advice on other solutions, or figuring out what's going on with these, would be much apreciated!
It is quite strange that pdftk yields a bigger document in your case. Have you tried the exact following command, taken from
here
[1]?
pdftk infile.pdf cat 1-r2 output outfile.pdf
(please note that you can change the page selection, following your needs, by specifying multiple ranges as stated in a comment from the link I point to)
If, for some reason, there is no way to avoid pdftk yielding bigger files, you might want to try pdfjam, following that example:
pdfjam infile.pdf <page ranges> --landscape -o outfile.pdf
But bare in mind that pdfjam might want to add extra margins in order to fit a printed page format, unlike pdftk.
--helpor see the examples on the website:cpdf in.pdf 1-3,12-end -o out.pdf- Arkadiusz DrabczykLinux-Intel-64bitorLinux-Intel-32bitand run it./cpdf- Arkadiusz Drabczyk./cpdf --help. And, as I already said, look into examples posted on the website. - Arkadiusz Drabczyk