I am creating pdf file through the XML, XSL and FOP. I want PDF file contents to display external file contents such as word document.
I know for displaying image in PDF we use <fo:external-graphic> but what tag we should to display file contents other than pdf file type.
Thanks in advance.
Rahul
Rahul Ba
Ranch Hand
Joined: Oct 01, 2008
Posts: 203
posted
0
Ok, now I found workaround to this as extenal-garphic is only for images. I am reading the file contents and putting it into XML, XM L is pretty fine but when I use xslt to it it gives me following error:
My file data in XML is as
so, what I need to do so that I can put proper data into the PDF.
ok, I did the same changes but the same exception. Let me put the XSL code here for your better understanding:
Thanks in advance.
Lester Burnham
Rancher
Joined: Oct 14, 2008
Posts: 1337
posted
0
It is my understanding that using PDFs for fo:external-graphic and fox:external-document will only work if you've installed the FOP extensions I pointed you to; did you do that?
Rahul Ba
Ranch Hand
Joined: Oct 01, 2008
Posts: 203
posted
0
Ya, I have put the following jar files in the classpath but it did not work
Be sure to read the instructions carefully; it seems you missed a jar file.
Rahul Ba
Ranch Hand
Joined: Oct 01, 2008
Posts: 203
posted
0
I have this pdfbox-0.8.0-incubating.jar in class path..bymistakely I forgot to mention in the previous mail.
Same thing is happening..Sorry for bothering...but I need some help ASAP.