Removes PDF standard password padding from a buffer. Searches from the end of the buffer for the padding pattern and removes it.
The buffer with potential password padding.
The buffer with padding removed.
const unpadded = removePdfPasswordPadding(paddedPassword) Copy
const unpadded = removePdfPasswordPadding(paddedPassword)
Removes PDF standard password padding from a buffer. Searches from the end of the buffer for the padding pattern and removes it.