I am generating the table dynamically using this code. Whenever I add one
extra row, I am getting "acrobat may not display the page correctly". If I
remove that row, Its working fine. I know its something with the BT and CT
but could not able to locate it.  I have used cd.begin and end  twice in the
same document because the content after the table was not displayed . Please
see the at http://old.nabble.com/file/p26604458/codeforgeneratingPDF.java
codeforgeneratingPDF.java tched document also.

code:



for generating the table rows:

 while(rs.next()){
                           
                           if(rs.getString("sup_name").equals("Allianz")){
                      
add_Quoted_Total_Supplier=add_Quoted_Total_Supplier+Integer.parseInt(rs.getString("total_quote"));
                      
add_CurrentPeriod_Total_Supplier=add_CurrentPeriod_Total_Supplier+Integer.parseInt(rs.getString("converted_current_period"));
                      
add_PreviousPeriod_Total_Supplier=add_PreviousPeriod_Total_Supplier+Integer.parseInt(rs.getString("converted_previous_periods"));
                      
add_TotalQuotes_Total_Supplier=add_TotalQuotes_Total_Supplier+Integer.parseInt(rs.getString("total_converted"));
                      
add_Premium_Total_Supplier=add_Premium_Total_Supplier+Float.parseFloat(rs.getString("converted_premium"));
                        }
                           
                      
add_Quoted_Total=add_Quoted_Total+Integer.parseInt(rs.getString("total_quote"));
                      
add_CurrentPeriod_Total=add_CurrentPeriod_Total+Integer.parseInt(rs.getString("converted_current_period"));
                      
add_PreviousPeriod_Total=add_PreviousPeriod_Total+Integer.parseInt(rs.getString("converted_previous_periods"));
                      
add_TotalQuotes_Total=add_TotalQuotes_Total+Integer.parseInt(rs.getString("total_converted"));
                      
add_Premium_Total=add_Premium_Total+Float.parseFloat(rs.getString("converted_premium"));
                           
                        if(rs.isLast()){
                                                   
                                // Adding the Allianz total
                               items.add("Allianz");
                               items.add("Total");
                              
items.add(Integer.toString(add_Quoted_Total_Supplier));
                              
items.add(Integer.toString(add_CurrentPeriod_Total_Supplier));
                              
items.add(Integer.toString(add_PreviousPeriod_Total_Supplier));
                              
items.add(Integer.toString(add_TotalQuotes_Total_Supplier));
                              
items.add("$"+Float.toString(add_Premium_Total_Supplier)); 
                                
                            // Adding the Suppliers total
                               items.add("All Suppliers");
                               items.add("Total");
                              
items.add(Integer.toString(add_Quoted_Total));
                              
items.add(Integer.toString(add_CurrentPeriod_Total));
                              
items.add(Integer.toString(add_PreviousPeriod_Total));
                              
items.add(Integer.toString(add_TotalQuotes_Total));
                              
items.add("$"+Float.toString(add_Premium_Total)); 
                                                           
                           }
                   }
                
-- 
View this message in context: 
http://old.nabble.com/acrobat-may-not-display-the-page-correctly-tp26604458p26604458.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to