You are not logged in.
Pages: 1
Do you mean TextPositioning parameter in RenderMetaFile function?
I've tried using RenderMetaFile with the full parameter set, adjusting the 2 kerning parameters, but none of them works as I expected.
I have simple html code
<FONT SIZE = 5>
<p align="justify">long long long simple text...</p>
</FONT>
In ThtmlViewer it's looks fine, but after export to PDF file (lPdf.Canvas.RenderMetaFile(MFPrinter.MetaFiles[i-1],96/MFPrinter.PixelsPerInchX,0,0);), text is not justified.
How to fix it?
In HTML Viewer my HTML code looks fine
But in PDF file background image is vary small.
Please look on images:
my html code: https://drive.google.com/file/d/1_GBHJZ … sp=sharing
I've downloaded the newest version (2019-11-15) from GitHub and I still have the same error (unknown Arial font)
code page is 1252.
Does it work with English-only (A..Z) characters?
Yes, it does.
There is problem with polish characters only.
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?
I've tried the htm2pdf tool, but there is a problem.
if the list goes to a new page, an empty list element is left on the first page.
See the picture.
My simple HTML code:
<OL>
<LI>LIST 1</LI>
<LI>LIST 2</LI>
<LI>LIST 3</LI>
<LI>LIST 4</LI>
<LI><EM>LIST 5</EM>:
<UL>
<LI><P><EM>SUBLIST 1</EM></P></LI>
<LI><P><EM>SUBLIST 2</EM></P></LI>
<LI><P><EM>SUBLIST 3</EM></P></LI>
<LI><P><EM>SUBLIST 4</EM></P></LI>
<LI><P><EM>SUBLIST 5</EM></P></LI>
<LI><P><EM>SUBLIST 6</EM></P></LI>
<LI><P><EM>SUBLIST 7</EM></P></LI>
<LI><P><EM>SUBLIST 8</EM></P></LI>
<LI><P><EM>SUBLIST 9</EM></P></LI>
</UL>
</LI>
</OL>
How can I fix it?
Pages: 1