• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to write a content into pdf file

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I created a empty pdf file.this is the code for creating pdf file.

but i was unable to write a large content into like students data i.e., name ,roll_num,marks..etc
only using content.drawString("Hello java"); i was able to write only headings but not fields.
can you help me out with above code.
 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I understand you, you have posted the code that works but not the code that doesn't. I would recommend that you create the smallest program that doesn't work and post it here.
 
bunny Indhrani
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
this code is working only for creating a empty pdf file but i wanted to enter large content into that pdf file like data in format of rows and columns
 
Saloon Keeper
Posts: 7582
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The PDFBox API is rather low level. See https://github.com/dhorions/boxable for code that helps with creating tables. Example code for various features can also be found at https://coderanch.com/t/659953/Wiki/PDFBox.
 
reply
    Bookmark Topic Watch Topic
  • New Topic