#1 Re: PDF Engine » Problem with text justification » 2021-03-08 09:37:33

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.

#2 PDF Engine » Problem with text justification » 2021-03-05 13:09:25

kitty80
Replies: 2

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?

#3 PDF Engine » HTML to PDF - small background image » 2020-03-06 14:32:59

kitty80
Replies: 1

In HTML Viewer my HTML code looks fine
But in PDF file background image is vary small.
Please look on images:

ORgtDtb.jpg
NOjqtzJ.jpg

my html code: https://drive.google.com/file/d/1_GBHJZ … sp=sharing

#4 Re: PDF Engine » Missing non English characters when PDF is password protected » 2019-11-19 14:34:28

I've downloaded the newest version (2019-11-15) from GitHub and I still have the same error (unknown Arial font)

#6 Re: PDF Engine » Missing non English characters when PDF is password protected » 2019-11-14 14:32:51

ab wrote:

Does it work with English-only (A..Z) characters?


Yes, it does.
There is problem with polish characters only.

#7 PDF Engine » Missing non English characters when PDF is password protected » 2019-11-14 09:48:39

kitty80
Replies: 6

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?

#8 PDF Engine » HTML->PDF unnecessary list item for page breaks » 2019-10-16 12:32:34

kitty80
Replies: 0

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.

FluxBB bbcode test


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?

Board footer

Powered by FluxBB