DrawText Word spacing

Discussions about PDF management.
Post Reply
GeorgeZ
Posts: 3
Joined: Fri Oct 31, 2014 3:36 pm

DrawText Word spacing

Post by GeorgeZ » Fri Nov 21, 2014 4:12 pm

I used the below codes to draw texts on 2 different pdfs

Code: Select all

            var pdf = new GdPicturePDF();
            pdf.LoadFromFile(@"Third2.pdf", false);

            var fontResName = pdf.AddStandardFont(PdfStandardFont.PdfStandardFontHelvetica);
            pdf.SetTextSize(50);

            pdf.SetFillColor(Color.Black);

            pdf.DrawText(fontResName, 0, 500, "Hello World");
            pdf.SaveToFile("test2.pdf");
            pdf.CloseDocument();
Same codes but 2 different results:
helloworld1.png
helloworld1.png (3.58 KiB) Viewed 2602 times
helloworld2.png
helloworld2.png (3.93 KiB) Viewed 2602 times
Any thought where the word spacing comes from, Can I set the word spacing? and how do I make sure all the texts are drawn as the first picture?

Thank you in advance.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: DrawText Word spacing

Post by Loïc » Sat Nov 22, 2014 12:33 pm

Hello,

Are you using the latest version of GdPicture.NET ?

If yes, you should open a ticket on our helpdesk through https://www.gdpicture.com/support/getting-support-from-our-team as we will need further information to investigate the issue (snippet + input documents used).

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest