|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2012 the original author or authors. |
|
|
|
* Copyright 2002-2017 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -30,13 +30,17 @@ import com.lowagie.text.pdf.PdfWriter; |
|
|
|
import org.springframework.web.servlet.view.AbstractView; |
|
|
|
import org.springframework.web.servlet.view.AbstractView; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Abstract superclass for PDF views, using Bruno Lowagie's |
|
|
|
* 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. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* <p>This view implementation uses Bruno Lowagie's |
|
|
|
* <a href="http://www.lowagie.com/iText">iText</a> package. |
|
|
|
* <a href="http://www.lowagie.com/iText">iText</a> package. |
|
|
|
* Application-specific view classes will extend this class. |
|
|
|
* Known to work with iText 2.1.7 as well as its fork |
|
|
|
* The view will be held in the subclass itself, not in a template. |
|
|
|
* <a href="https://github.com/LibrePDF/OpenPDF">OpenPDF</a>. |
|
|
|
* |
|
|
|
* |
|
|
|
* <p>Note: Internet Explorer requires a ".pdf" extension, as |
|
|
|
* <p>Note: Internet Explorer requires a ".pdf" extension, as it doesn't |
|
|
|
* it doesn't always respect the declared content type. |
|
|
|
* always respect the declared content type. |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Rod Johnson |
|
|
|
* @author Rod Johnson |
|
|
|
* @author Juergen Hoeller |
|
|
|
* @author Juergen Hoeller |
|
|
|
|