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

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

@belahorvath

Description

@belahorvath

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions