Win a copy of Microservices in Action this week in the Web Services forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Export to pdf  RSS feed

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i have doubt on export to pdf. I have given my code. In that code, i have drawn a circle in jPanel2. I need to export this circle to pdf i.e., export the jPanel2 content to pdf.(In pdf i can print the circle if needs)...

please give any solution or refer any link...
please help me....
 
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using IText you can generate PDF documents through Java.
You might have to convert your "circle" to an image first before inserting it into the PDF.
 
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The iText library can export Swing components to PDF. Chapter 12 of the excellent iText in Action book explains this. If you're at all serious about creating PDFs you need this book.
 
author
Posts: 3281
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search for Open Source java PDF libraries in Google, you'll find plenty of libraries for this task . iText is one and here is a link to several more.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!