#1 2021-03-05 13:09:25

kitty80
Member
Registered: 2019-10-16
Posts: 8

Problem with text justification

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?

Last edited by kitty80 (2021-03-05 14:56:12)

Offline

#2 2021-03-06 08:15:05

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: Problem with text justification

Did you try to change the kerning options of the PDF renderer?

Offline

#3 2021-03-08 09:37:33

kitty80
Member
Registered: 2019-10-16
Posts: 8

Re: Problem with text justification

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.

Offline

Board footer

Powered by FluxBB