- Fix your PDF, just in case:
pdftk original.pdf output fixed.pdf
- Uncompress your PDF for text manipulation:
pdftk fixed.pdf output uncompressed.pdf uncompress
- Remove text watermark with SED:
sed "s/Wow! eBook <WoweBook.Com>/ /g" uncompressed.pdf > unwatermarked.pdf
- Compress the edited PDF:
pdftk unwatermarked.pdf output compressed.pdf compress
It turned out that sed -e "s/Wow! eBook <WoweBook.Com>/ /" did not work for me, but somehow the one without the -e option and with the /g flag did.
Nincsenek megjegyzések:
Megjegyzés küldése