hand79 / Hadoop

Hadoop 開發實作&筆記
0 stars 0 forks source link

Export to PDF with images #255

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is it possible export to PDF with images like it works in my JMesa? How??

Thanks so much for your attention!! ;)

Original issue reported on code.google.com by andyned...@gmail.com on 19 Mar 2010 at 12:14

GoogleCodeExporter commented 9 years ago
You would have to create a custom view to put images into the PDF export. 
However,
creating PDF can be complex with the PDF api's out there. The flying saucer api 
makes
things easier as you can use html and then generate the PDF, so that might be 
the way
to go.

The easiest way to learn how to create a view is look at JMesa's source code 
for the
export you want to enhance. I can help field questions as well. I generally do 
not
have very complex export requirements and usually the csv export works well 
enough.
The exports we have have been created by other developers.

http://code.google.com/p/jmesa/wiki/View

This is how you would plug in your view.

tableFacade.setView(new CustomView());
<jmesa:tableFacade view="com.mycompany.CustomView">

Original comment by jeff.johnston.mn@gmail.com on 20 Mar 2010 at 6:00

GoogleCodeExporter commented 9 years ago
Thanks so much!! I'll try to follow that way to go.

Original comment by andyned...@gmail.com on 22 Mar 2010 at 7:45

GoogleCodeExporter commented 9 years ago
By the moment, I only show the URL of my imagens in my PDF :(

Original comment by andyned...@gmail.com on 22 Mar 2010 at 10:59

GoogleCodeExporter commented 9 years ago

Original comment by jeff.johnston.mn@gmail.com on 13 Apr 2010 at 6:42