My task is this,
If the user attaches a file(image or pdf or docx(word 2007 format))
it saves it in the DB.
-> succeded this module.
After that, if the user press save button, it has to save it to a pdf file.
I googled how to display images
<fo:page-sequence master-reference="my-page">
<fo:flow flow-name="xsl-region-body">
<fo:block text-align="center">
<fo:external-graphic src="C:\Users\spark\Desktop\ui.png" />
</fo:block>
</fo:flow>
</fo:page-sequence>
but i don’t have any clue how to display other formats…pdf and docx…
Can you suggest me a way?
Apache FOP has an extension that may be helpful which adds the
<fox:external-document>tag which supports embedding PDFs. Documents can be embedded at the page-sequence level.Apache’s Documentation
Author’s Documentation