danfickle / danfickle/openhtmltopdf

Allow setting an override for `createdDate` in `PdfRendererBuilder`

Open
#980 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

In a similar fashion to this PR: https://github.com/danfickle/openhtmltopdf/pull/158, it would be dynamite to be able to specify/override the `createdDate` in the builder in the saem style as the `producer`.

My use case is to set some fixed `createdDate` value - there are cases when I want to generate a PDF with identical inputs and have a hash of the document remain fixed. While having a "true" `createdDate` value is useful in many cases, there are times (like in automated testing) where it would be useful to be able to hash documents, and be able to rely on there being no volatile, changing tags that might break the hash.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.