i'am generating pdf document all of the document is working good but there is
a problem which is when i add the the header and logo for the page, the
problem appears and not all the time it appears, it just appears when the
generated pdf document takes more than one page, when i open the document
the message box that says "there is an error in the generated pdf document" 
it  doesn't appear till i scroll to the following page and when i remove the
part that is responsible for adding the logo and the header, this problem
doesnt appear, the following code snippets is what iam using in my code.


ColumnText.showTextAligned(cb, Element.ALIGN_RIGHT, new Phrase(header,
                                                                        
headerFont), document.right(), document.top() + 
                                                                        
10,0,PdfWriter.RUN_DIRECTION_RTL,ColumnText.AR_COMPOSEDTASHKEEL);

                
                try 
                {
                        Image logo = Image.getInstance(logoUrl);
                        logo.setAbsolutePosition(500, 780);
                        
                        
                        cb.addImage(logo);
                } 
-- 
View this message in context: 
http://www.nabble.com/This-Is-The-Reason-of-my-problem%2C-but-i-want-the-solution-tf4542449.html#a12963179
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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