You are not logged in.
When I create a normal PDF file, my document looks fine.
But when I try to create a password protected PDF file I get an error message in Adobe Reader (Unable to find/create font Arial)
I use a code:
lPdf:=TPdfDocument.Create(false,0,false,TPdfEncryption.New(elRC4_40,_UserPassword,_UserPassword,PDF_PERMISSION_NOMODIF))
lPdf.Info.Author := mainProgramName;
lPdf.Info.CreationDate := Now();
lPdf.Info.Creator := mainUserName;
I tried to use an EmbeddedTTF option, but it doesn't helps.
P.S. Autor and Creator informations also can't be read when PDF is password protected (both are written in unreadable characters and Creation Date is empty)
What can I do?
Last edited by kitty80 (2019-11-14 10:01:37)
Offline
Does it work with English-only (A..Z) characters?
Yes, it does.
There is problem with polish characters only.
Offline
code page is 1252.
Offline
I found something wrong in TPdfWrite.AddUnicodeHex...
Please check https://synopse.info/fossil/info/9588237ed5
Offline
I've downloaded the newest version (2019-11-15) from GitHub and I still have the same error (unknown Arial font)
Last edited by kitty80 (2019-11-19 14:49:02)
Offline