Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[FEATURE] Same PDF-document hash when using subfonts #597

Copy link
Copy link
@TaoGunner

Description

@TaoGunner
Issue body actions

Is your feature request related to a problem? Please describe.

I generated a PDF file twice in a row from the same template, providing the same context. As a result, I received two documents with different sha256 hashes.

During investigation, I found out that the only difference between them is a subset of fonts (the subfont I use in one document has the prefix XWMNYM, and in the other, it's BCYOHX). From what I understand, when creating the subfont name, 6 random characters from the set QWERTYUIOPASDFGHJKLZXCVBNM are used as a prefix.

Describe the solution you'd like

Is there any way to make the subfont prefix not truly random, but pseudorandom instead? For example, fix random seed or some other methods?

Would you like help with a possible solution or implementation ideas for making the font prefix deterministic?

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.