Skip to content

Commit c92393b

Browse files
committed
Compatibility with OpenPDF as alternative to iText 2.1.7
Issue: SPR-16107 (cherry picked from commit 9efdadc)
1 parent 75a813a commit c92393b

File tree

3 files changed

+126
-50
lines changed

3 files changed

+126
-50
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractPdfStamperView.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,6 +32,11 @@
3232
* document with an AcroForm. Application-specific view classes
3333
* will extend this class to merge the PDF form with model data.
3434
*
35+
* <p>This view implementation uses Bruno Lowagie's
36+
* <a href="http://www.lowagie.com/iText">iText</a> package.
37+
* Known to work with iText 2.1.7 as well as its fork
38+
* <a href="https://github.com/LibrePDF/OpenPDF">OpenPDF</a>.
39+
*
3540
* <p>Thanks to Bryant Larsen for the suggestion and the original prototype!
3641
*
3742
* @author Juergen Hoeller

spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractPdfView.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,13 +30,17 @@
3030
import org.springframework.web.servlet.view.AbstractView;
3131

3232
/**
33-
* Abstract superclass for PDF views, using Bruno Lowagie's
33+
* Abstract superclass for PDF views. Application-specific view classes
34+
* will extend this class. The view will be held in the subclass itself,
35+
* not in a template.
36+
*
37+
* <p>This view implementation uses Bruno Lowagie's
3438
* <a href="http://www.lowagie.com/iText">iText</a> package.
35-
* Application-specific view classes will extend this class.
36-
* The view will be held in the subclass itself, not in a template.
39+
* Known to work with iText 2.1.7 as well as its fork
40+
* <a href="https://github.com/LibrePDF/OpenPDF">OpenPDF</a>.
3741
*
38-
* <p>Note: Internet Explorer requires a ".pdf" extension, as
39-
* it doesn't always respect the declared content type.
42+
* <p>Note: Internet Explorer requires a ".pdf" extension, as it doesn't
43+
* always respect the declared content type.
4044
*
4145
* @author Rod Johnson
4246
* @author Juergen Hoeller

0 commit comments

Comments
 (0)