Thanks Leonard for pointing other free library may solve my problem.

An approach I was thinking about that should still be possible with poppler is to generate an image from each PDF page and than create a new pdf that is just a concatenation of images, one per page.

What do you think about? Of course you won't be able to do text copy/paste but it may be enough for a document preview.

Cheers,

Daniele.

On 11/29/2012 12:50 PM, Leonard Rosenthol wrote:
Poppler doesn't have the level of APIs that you need for this type of
operation as it is focused on rendering.

You need a PDF processing/editing library such as PoDoFo, Qpdf, etc.

Leonard


On 11/29/12 6:47 AM, "Daniele Depetrini" <[email protected]> wrote:

Hello Leonard,

Fields are ok: I just need to remove any script/action a form may
perform so I was thinking removing the form at all may be easier but I
still don't have a clear understanding about the best way to implement it.

Cheers,

Daniele.

On 11/29/2012 12:31 PM, Leonard Rosenthol wrote:
Why you want/need to remove form fields as part of sanitization?
Scripting, sure, but why fields?

Leonard

On 11/29/12 3:40 AM, "Daniele Depetrini" <[email protected]>
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.
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to