

I am redact a lot of PDF files everyday, so I spend a lot of time thinking how to do it the best way.įor me the best way is split PDF in 1-page PDF file, next to edit with GIMP, next to combine it.
#Redacted image install#
To install, run in a terminal: sudo apt-get install xournal or just select it from the Software Centre This does not seem to be true: with simple annotations, the text remains selectable and searchable and the file size does not increase by much (it increased from 205 kb to 220 kb in the example below). There are some stories on the internet suggesting that Xournal rasterises the text in the exported PDF (thanks for pointing this out, MHC). With Xournal you'd choose "Annotate PDF", then use a solid black marker to mask the parts you want to redact, and "Export to PDF". This should maintain the layout, fonts, etc. By default it'll save your annotations as a separate file but also allows you to export the annotated PDF as a new PDF. It is a tool that allows you to make handwritten notes but has extra features allowing you to annotate a PDF. One of the highest rated answers recommends Xournal, which has not been mentioned here and would be my weapon of choice. īasically what you are trying to do is highlight/annotate a PDF, but with some flexibility towards marker opacity and colour (you mentioned you don't need to censor/remove something, merely redact).

You can also get good results with ImageMagick's convert command if you tell it to increase resolution: convert -density 300x300. The amount of quality loss in the process is a matter of resolution you choose when importing - 300 dpi should give you a very decent quality (the default is 100). Regarding "quality loss" when opening the page in Gimp: you can directly open a PDF file in Gimp.

Increase the rasterization resolution when opening in a bitmap editor Note that any method that does not involve rasterization is only acceptable if you're going to print the redacted document on paper and not distribute it electronically, as the text still can be retrieved from under blackouts.Ģ. Some fonts looked wrong though - probably because the document was created on Windows machine with fonts which are absent on mine. Inkscape is a vector editor so no rasterization involved. I was able to open a PDF file in Inkscape, draw a rectangle over a piece of text and print it out. (originally I recommened Okular but it didn't work as I expected)
