[poppler] Remove form and any other scripting from PDF
Leonard Rosenthol
lrosenth at adobe.com
Thu Nov 29 04:22:39 PST 2012
I don't know what your functional requirements are for your project, so
don't know if a conversion to raster will be acceptableŠ.
On 11/29/12 7:04 AM, "Daniele Depetrini" <daniele.depetrini at cp.net> wrote:
>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" <daniele.depetrini at cp.net>
>>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" <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.
>>>>> _______________________________________________
>>>>> poppler mailing list
>>>>> poppler at lists.freedesktop.org
>>>>> http://lists.freedesktop.org/mailman/listinfo/poppler
>
More information about the poppler
mailing list