Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Creating pdf
vinylrecord
hi guys,
I am trying to create a pdf from dcr rather then an html file..but i m unable to suceed ..has anyone ever tried that..pls help...
thanks in anticipation
Find more posts tagged with
Comments
Adam Stoller
How are you trying to do this?
What tool(s) or utility(ies) are you attempting to use to generate the PDF?
What version of TeamSite / TeamSite Templating ?
What platform?
--fish
(Interwoven Senior Technical Consultant)
LooseCannon
I've done this by passing a DCR(xhtml formed) and a XSLT to Apache's FOP Java application. I use the process to create printer friendly's.
tlwaters
how long does it take to set something like this up? does the server on which FOP is running need to be virtualized to the teamsite server?
does anyone have documentation on how to set this up?
nipper
I've done it, it is pretty easy but there is not documentation.
From the PT, have a perl callout that builds up a command
line to run FOP and then exec it.
try it from a command line, build a DCR and FOP it, then wrap it in PERL
Andy
martina
I have done it by installing apache's FOP (
http://xml.apache.org/fop/index.html
) on the TeamSite server. Then I've created a custom tag (I modified iw_xslt.pm) and made it call FOP. I created a TPL which calls this custom tag, passes it name of the xsl which transforms DCR to FO.
It almost works, there is just a little bug with TeamSite's PT parser which adds an empty line and two spaces to any document, so it doesn't do a proper preview yet. But once we have a patch for the empty line, it should work.
Adam Stoller
Can you post (as an attachment) the PT you are using? Perhaps someone might be able to help you figure out how to eliminate those extra lines...
--fish
(Interwoven Senior Technical Consultant)
nico
I would suggest someone at Interwoven put that in the collections section as an article. I would really like to attempt this pdf creation solution.
laj1
I've done this by passing a DCR(xhtml formed) and a XSLT to Apache's FOP Java application. I use the process to create printer friendly's.
Can you post a link to decent howto docs, and/or your XSLT. I downloaded FOP the other day, but from a light skim of the docs I couldn't tell how easy or hard it was going to be.
Thanks.
Len.
Len Jaffe
My Heart Is A Flower
Update your DevNet profile - let us know who you are!
abhishek_gupta
Thanks for the XSL. This would be a great help for everyone involved in conversions.
Just needed one clarification. The PDF which would be generated should look exactly the same as the HTML which is generated from the tpl. I am assuming this is possible.
AK
Interwoven Consultant
Edited by a_g on 07/28/03 02:30 AM (server time).
esg93394.pdf
abhishek_gupta
Hey,
I found something more, maybe of use to someone. The XSL FO can be used to convert the same XML (DCR) to RTF too. Check out the info on -
http://www.jfor.org/
Has anyone tried this, so that I can have some samples/inputs before I try my hand on it.
AK
Interwoven Consultant
LooseCannon
>>The PDF which would be generated should look exactly the same as the HTML which is generated from the tpl.
I haven't found a situation where a PDF, using FO and FOP, was unable to meet a projects presentation specs. So yes the PDFs mirror the html pages.
kss
Hi everybody,
I know this is probably a fop question, but I couldnt find any thing on the fop website about this. I am trying to generate pdf files from dcr's using xslt and fop library. Now I need a way that the output pdf file is appended for each dcr as I have number of dcr's. If anybody has done this can you please give me any pointers. I think there has to be an option in fop command line but I am not able to find it out.
thanks
kunjal.
LooseCannon
-----------------------------------------
Now I need a way that the output pdf file is appended for each dcr as I have number of dcr's.
----------------------------------------
I don't understand what you're asking...
Try to re-word or elaborate on the question.
kss
thanks for the quick reply.
I am sorry for being not clear. My problem is that I want one pdf file for all xml files (dcr's). I have created a xslt file(from the xslt file attached in this thread) for converting the xml to pdf, but it takes one xml as input and generates a pdf file from scratch. I dont want to manually combine the generated pdf files into one pdf as the pdf generation would be mostly in the workflow script.
thanks.
kunjal.
log.txt
LooseCannon
...so you want to create one PDF from multiple XML files.
SOLUTION:
You need to combine your multiple XML files into one XML file and pass it to FOP, I suggest using XML:
OM. FOP will only generate the desired output from one input file.
kss
Thanks for the help and suggestion.
kunjal.
gzevin
one of the IWOV consultants in Sydney has done this ages ago, and I believe there should be a paper about it somewhere in the library....
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Migrateduser
the solution is straight forward as long as you are dealing with simple HTMLs.
I have encountered a situation where the DCTs had Visual format text boxes and the users normally copy and paste word document content into the text boxes. Rendering PDFs of these DCRs with the exact formatting as present in word doc I think is impossible. Anyone out there who tried this ?