You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does not produce any error. However, when viewing the document and opening its properties, it shows a garbled string regardless of whether the last argument is true or false. In GO all strings are UTF8.
The same occurs with pdf.SetSubject() and pdf.SetTitle().
However, that only happens when pdf.SetProtection(fpdf.CnProtectPrint) is used. In that case even after the reader has entered the correct password, only the document content is decrypted but the document properties remain encrypted.
If on the other hand no protection is used during generation, the document properties are plain text and readable.
Fix:
After the correct password is entered, decrypt both content & properties.
Alternatively, don't encrypt document properties.
The text was updated successfully, but these errors were encountered:
The following code:
pdf.SetKeywords("one two three", true)
Does not produce any error. However, when viewing the document and opening its properties, it shows a garbled string regardless of whether the last argument is true or false. In GO all strings are UTF8.
The same occurs with
pdf.SetSubject()
andpdf.SetTitle()
.However, that only happens when
pdf.SetProtection(fpdf.CnProtectPrint)
is used. In that case even after the reader has entered the correct password, only the document content is decrypted but the document properties remain encrypted.If on the other hand no protection is used during generation, the document properties are plain text and readable.
Fix:
The text was updated successfully, but these errors were encountered: