org.springframework.web.servlet.view.document
Class AbstractPdfView
org.springframework.context.support.ApplicationObjectSupport
|
+--org.springframework.web.context.support.WebApplicationObjectSupport
|
+--org.springframework.web.servlet.view.AbstractView
|
+--org.springframework.web.servlet.view.document.AbstractPdfView
- public abstract class AbstractPdfView
- extends AbstractView
Abstract superclass for PDF views, using Bruno Lowagie's
iText package. Application-specific view classes will extend this class.
The view will be held in such a subclass, not a template such as a JSP.
See Expert One-On-One J2EE Design and Development
by Rod Johnson, pp 571-575 for an example of use of this class.
NB: Internet Explorer requires a .pdf extension, as
it doesn't always respect the declared content type.
Exposes page width and height as bean properties.
- Author:
- Rod Johnson, Jean-Pierre Pawlak
- Version: $Id: AbstractPdfView.java,v 1.6 2003/12/12 19:46:13 jhoeller Exp $
AbstractPdfView
public AbstractPdfView()
- Sets the appropriate content type.
Note that IE won't take much notice of this, but there's not a lot we
can do about this. Generated documents should have a ".pdf" extension.