Create the font like this:
 
BaseFont bf = BaseFont.createFont("c:\\windows\\fonts\\arialuni.ttf",
BaseFont.IDENTITY_H, true);
Font arabicFont = new Font(bf, 12);

Best Regards,
Paulo Soares

________________________________

        From: Alawi albaity [mailto:[EMAIL PROTECTED] 
        Sent: Thursday, July 22, 2004 6:38 PM
        To: Itext; Paulo Soares
        Subject: Re: [iText-questions] How can add footer in first page
of an existing pdf file
        
        
        I have choose an arabic font but its not work ,it write un
understandable words like the software does not support arabic ,  how
can I load an arabic font from a specifec folder in my c: drive & not a
font compiled with iText 
        ----- Original Message ----- 

                From: Paulo Soares <mailto:[EMAIL PROTECTED]>  
                To: Alawi albaity <mailto:[EMAIL PROTECTED]>  ; Itext
<mailto:[EMAIL PROTECTED]>  
                Sent: Wednesday, July 21, 2004 11:52 AM
                Subject: RE: [iText-questions] How can add footer in
first page of an existing pdf file

                PdfContentByte cb = stamper.getOverContent(1);
                ColumnText.showTextAligned(cb, Element.ALIGN_LEFT, new
Phrase("My arabic text", arabicFont), 100, 100, 0,
PdfWriter.RUN_DIRECTION_RTL, 0);
                 
                Best Regards,
                Paulo Soares


________________________________

                        From: Alawi albaity [mailto:[EMAIL PROTECTED]

                        Sent: Wednesday, July 21, 2004 1:28 AM
                        To: Itext; Paulo Soares
                        Subject: Re: [iText-questions] How can add
footer in first page of an existing pdf file
                        
                        
                        to be more clear, I want to add footer in an
exiting pdf file using Pdf Stamper and I want to write on that footer
the word "Hello word" & and an Arabic text can you give me an example
how to do that please because I get more confuse in this point ...and I
do not figure out how,
                        I found that getOverContent is give me a
pdfcontentbyte object 
                        but the qestions how to write the footer 

                                ----- Original Message ----- 
                                From: Paulo Soares
<mailto:[EMAIL PROTECTED]>  
                                To: Alawi albaity
<mailto:[EMAIL PROTECTED]>  
                                Cc:
[EMAIL PROTECTED] 
                                Sent: Tuesday, July 20, 2004 8:00 PM
                                Subject: RE: [iText-questions] How can
add footer in first page of an existing pdf file

                                PdfStamper.getOverContent(1)
                                 
                                See examples at itextpdf.sf.net.
                                 
                                Best Regards,
                                Paulo Soares


________________________________

                                        From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alawi
albaity
                                        Sent: Tuesday, July 20, 2004
5:52 PM
                                        To:
[EMAIL PROTECTED]
                                        Subject: [iText-questions] How
can add footer in first page of an existing pdf file
                                        
                                        
                                        after I read my document by pdf
reader I want to write footer to it and meta data after that I want to
encrypt it how that can be possible ? and sorry for repeat some points
but I want my aim to be clear 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to