This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Div inner Html to PDF

 
Atul Darne
Ranch Hand
Posts: 118
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,

I have a page designed in html and has Div tags in it,
i want to make a PDF of the inner html in the div,

how can i achieve it ?
any way to achieve this ?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you researched PDF creating tools in java? That would seem to me to be the first step.

Bill
 
Atul Darne
Ranch Hand
Posts: 118
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iam using iText libraries for converting HTML to PDF, but i need to add the forms, swf files and images to the created PDF.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iText can handle forms and images. I don't think there's a way to embed SWF in PDFs, and if there is, I'm just about certain that iText does not support it.
 
Atul Darne
Ranch Hand
Posts: 118
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried embedding ready swf file in the pdf using the itext, it works fine.
here is the code


now the issue is , my swf file is a fusion chart file that iam using, which gets the data on fly. iam not having a swf file on disk to embed.

any way to get this solve ?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic