jQuery in Action, 3rd edition
The moose likes XML and Related Technologies and the fly likes Div inner Html to PDF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Div inner Html to PDF" Watch "Div inner Html to PDF" New topic

Div inner Html to PDF

Atul Darne
Ranch Hand

Joined: Jul 05, 2009
Posts: 118

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 ?

Regards, Atul.
I came to this world on a Learner's License
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13027
Have you researched PDF creating tools in java? That would seem to me to be the first step.

Atul Darne
Ranch Hand

Joined: Jul 05, 2009
Posts: 118

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

Joined: Mar 22, 2005
Posts: 42959
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

Joined: Jul 05, 2009
Posts: 118

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.
subject: Div inner Html to PDF
It's not a secret anymore!