Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] API to sanitize documents #433

Closed
MarcGodard opened this issue May 3, 2020 · 6 comments
Closed

[Feature Request] API to sanitize documents #433

MarcGodard opened this issue May 3, 2020 · 6 comments

Comments

@MarcGodard
Copy link

I am looking for a function that will open a pdf, and remove harmful script tags and other harmful elements in the meta data.

Usually a security scan finds these, but I would like to prevent them without having to do a scan.

I would also like to preserve the remaining pdf, unlike just scanning and deny the file.

@Hopding Hopding changed the title [Feature Request] Sanitize pdf function [Feature Request] API to sanitize documents Sep 20, 2020
@Hopding
Copy link
Owner

Hopding commented Sep 20, 2020

Hello @MarcGodard!

I think an API like this could belong in pdf-lib, if it's just a matter of removing scripts, links, etc... That being said, I don't personally have time to work on this right now. But I'd be happy to accept a PR for it, and answer any questions you (or others) might have about implementing it.

Please also see #375 and #536. They have some additional information/examples about removing scripts and links.

@MarcGodard
Copy link
Author

@Hopding Great, I will do a deep dive into this and the auth stuff that you mentioned a similar response to. Just lately work has been crazy.

@github-actions
Copy link

This issue is stale because it has been open 2 weeks with no activity. It will be closed in 2 days unless there is new activity. See MAINTAINERSHIP.md#issues for details.

@github-actions github-actions bot added the stale label Sep 20, 2021
@MarcGodard
Copy link
Author

This isn't an issue, it is a feature-request.

@Hopding
Copy link
Owner

Hopding commented Sep 22, 2021

@MarcGodard please see #177 (comment)

@Hopding
Copy link
Owner

Hopding commented Sep 24, 2021

Added this to the roadmap for tracking: #998.

@Hopding Hopding closed this as completed Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants