• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

PDF generation - how to hide the table border

 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have an application which is showing a PDF file with 4 tables, but we don't need to display the border of each table, just simple the structure only.

The following code is written to generate PDF, please check the code and suggest me and also check if there is anything wrong in the code.

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sumant,

Wherever you have ".setBorder(1);", make it ".setBorder(-1);"..I think this should solve your purpose.Please let me know if I am wrong.

Regards,
Rama Krishna
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ramakrishna,

I already tried with the same thing by putting -1, but no use.

any other solution??

anyhow thanks for your reply, if it possible give me another solution.
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A value of -1 instructs iText to set all 4 borders (read the javadocs for why that's the case). Use a value of Rectangle.NO_BORDER instead.
 
reply
    Bookmark Topic Watch Topic
  • New Topic