Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8948179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:55:22+00:00 2026-06-15T12:55:22+00:00

Im generating a PDF in my Android Application with iText. I need to add

  • 0

Im generating a PDF in my Android Application with iText. I need to add a LIST to the pdf. This list needs to come form data I allready have in an Adapter. My Adapter is Allready filled with the correct data so I just need to know how to Add that Data from the Adapter to my PDF file in a LIST form of even Cells regardsless. PS: It’s Dynamic Data that’s fill in another part of the Application. So this data just need to be displayed in the PDF.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:55:23+00:00Added an answer on June 15, 2026 at 12:55 pm

    this is the way to add data in PDF table..

    private static void descriptionTable(Document p,ArrayList<String> list) throws BadElementException 
          {
                PdfPTable table = new PdfPTable(3);
    
                table.setWidthPercentage(100);
    
                PdfPCell c1 = new PdfPCell(new Phrase("Site Address",ele_noraml_black));
                c1.setHorizontalAlignment(Element.ALIGN_LEFT);
                c1.setColspan(1);
                c1.setBorderWidth(1);
                c1.setPaddingBottom(10);
                c1.setBorderColor(celalBorderColor);
                table.addCell(c1);
    
    
    
                c1 = new PdfPCell(new Phrase(list_tree_tree.get(0),ele_noraml_black));
                c1.setHorizontalAlignment(Element.ALIGN_LEFT);
                c1.setBorderWidth(1);
                c1.setColspan(2);
                c1.setPaddingBottom(10);
                c1.setBorderColor(celalBorderColor);
                table.addCell(c1);
     try {
                    p.add(table);
                } catch (DocumentException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My application is generating PDF documents using itext#. The files open fine and display
I am generating PDF document using iTextSharp (winforms), now i need to print this
I am generating pdf using java and itext. When I add image that we
I have worked on generating PDF about 3 years ago and used FPDF lib
For generating PDF from HTML, i need to fill a variable with output from
In this case I have XML data source and external images files whole together
I am generating a pdf using itext. So when the content of a page
I'm automatically generating a PDF-file with Platypus that has dynamic content. This means that
I am generating a PDF with fPDF. I need to strikethrough a long text
I'm working with generating .pdf's from PHP using this library: http://www.fpdf.org/ I am currently

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.