How do I align text?

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
Polly
Posts: 2
Joined: Mon Jan 24 2005

How do I align text?

Post by Polly »

I use the following code to print out info contained in my string variable strText into a new pdf document

Printer.CurrentX = 200
Printer.CurrentY = 400
Printer.FontName = "Arial"
Printer.Fontsize = 14
Printer.FontBold = True
Printer.Print strText

I cannot see how I can ensure that the text is centrally aligned.

Many thanks for your help.

Polly
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Unfortunately, I am not sure how to set alignment using the Printer object.

As far as i see from your code you are using the Printer object to draw the text and not our PDF Converter or PDF Creator.

If you have a pdf file, you can add text to it using the PDF Creator and set HorizAlign attribute to 2 to get the text centered.

Hope this helps.
Post Reply