[poppler] Remove form and any other scripting from PDF

Ihar `Philips` Filipau thephilips at gmail.com
Thu Nov 29 03:16:12 PST 2012


Hi!

I once used for similar purpose `pdftk uncompress`. Not a library,
yet. It decompresses all the compressed parts so that PDF becomes
(mostly) textual. ("Mostly," because the binary blobs of images and
embedded fonts have to remain binary.) Then textual presentation can
be patched/etc with a program/script and finally compressed back with
`pdftk compress`.

http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ or `apt-get install pdftk`

But probably poppler pros would have a better suggestion.

wbr.

On 11/29/12, Daniele Depetrini <daniele.depetrini at cp.net> wrote:
> Hi All,
>
> For a project I'm working on I need to "sanitize" PDF files: take any
> pdf and remove any eventually present form/scripting from it.
>
> Any idea what's the best way to implement this?
>
> Cheers,
>
> Daniele.


More information about the poppler mailing list