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?
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'sBCYOHX). From what I understand, when creating the subfont name, 6 random characters from the setQWERTYUIOPASDFGHJKLZXCVBNMare 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?