Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

Extend FopTemplate with the possibility to configure the Apache FOUserAgent #50

Open
belahorvath opened this issue Apr 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@belahorvath
Copy link

When using the girders FopTemplate class and its methods, the underlying implementation instantiates a new "Fop" object with a default factory and user agent from apache. This introduces a minor security issue when generating PDF's that the producer is visible in the meta data and there is no nice way of getting rid of it.

Example excerpt from inspecting a generated PDF with notepad:

image

To address said concern the producer should not be publicly visible.

Could you please adapt the FopTemplate in such a way that the FOUserAgent can be passed in from the outside so I can manually configure it?

Thanks for checking this issue.

@meierval meierval added the bug Something isn't working label May 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants