spring-framework / org.springframework.web.servlet.view.document / AbstractPdfView

AbstractPdfView

abstract class AbstractPdfView : AbstractView

Abstract superclass for PDF views. Application-specific view classes will extend this class. The view will be held in the subclass itself, not in a template.

This view implementation uses Bruno Lowagie's iText package. Known to work with iText 2.1.7 as well as its fork OpenPDF.

Note: Internet Explorer requires a ".pdf" extension, as it doesn't always respect the declared content type.

Author
Rod Johnson

Author
Juergen Hoeller

Author
Jean-Pierre Pawlak

See Also
AbstractPdfStamperView

Constructors

<init>

AbstractPdfView()

This constructor sets the appropriate content type "application/pdf". 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.