Yepp, printing is not basically a Magnolia issue.
In addition you can of course write your own jsp script for printing,
e.g. have a "print" button and then use a template script to do
whatever you want to do.
If you want to create a document "on-the-fly", you can use e.g. the
iText library to generate a PDF.
And if you visit the "Magnolia Developer Training", you will have a
sample how to do that (new trainings will start in April, based on Mg
4).
But as Will mentioned, generating a PDF might be "overengineered" if
you just want to allow printing of a page. However, a print script to
pass only some content paragraphs to a printer might the browser-
printing, which prints the whole Web page.
HTH
Giancarlo
On Mar 13, 2009, at 9:46 AM, Will Scheidegger wrote:
http://www.w3schools.com/CSS/css_mediatypes.asp
;-)
Add a print CSS to your page - This is a common HTML problem and has
nothing to do with Magnolia.
To answer your question about PDF: No, this feature does not exist
in Magnolia. There are however some libraries that can do this.
Google is your friend here. So one could add this functionality.
IMO converting a webpage to PDF only to get it out of the printer is
not user friendly.
-will
On 13.03.2009, at 17:32, saurabh seth wrote:
Hi
We want to print the web pages generated by magnolia, when we hit
print then it does print pages but soem of the matter is cut off,
especially the images on a A4 size paper. Is there any
functionality in Magnolia where by we could export the data
genearted on the page to a pdf document on the fly and then print it?
I was wondering if anyone has come across this before and has found
a solution to it?
Any help would be much appreciated.
Thanks.
Kind Regards
Saurabh Seth
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------