File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 13036
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: 42965
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 ?
I agree. Here's the link:
subject: Div inner Html to PDF
It's not a secret anymore!