Skip to content

Convert dangerous PDF files to clean PDF files #27

@bofrese

Description

@bofrese

The detection of wether PDF files are dangerous or not may get too many false positives, as it simply detects if the PDF has an openaction.

It should be possible to convert a PDF to a clean PDF via pdf2ps and back...
pdf2ps input.pdf - | ps2pdf - output.pdf

we of course only need to do this if the PDF has been detected as dangerous.

I got the idea on how to clean PDF's from here: https://security.stackexchange.com/questions/171716/how-to-know-if-a-pdf-file-is-infected

I currently do not have the time to do this myself, so I leave the note here in the hope that somebody else will have the time :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions