I have an existing pdf that I need to add one line of text to in an absolute
position. How do I add the line of text where I want on the existing pdf and
have it horizontally centered on the page when the text I want to place has
different fonts and I don’t know how long my text will be? The amount of
text can change from time to time but the use of two separate fonts will
always be consistent.

 

I have tried using PDfContentByte to add the text, which allows me to
specify the location and center aligned, but it only allows me to use one
font. I have also tried using a Chunk and adding it to the page, which
allows me to use multiple fonts, but doesn’t allow me to specify the
location or alignment.

 

Any help that gets me looking in the right direction will be appreciated.

 

Thanks,

 

Jeff Brint

.NET Technical Consultant

HYPERLINK "mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]

 

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.10/651 - Release Date: 1/24/2007
6:48 PM
 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to