Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Display Tag currently depends on iText 1.3 for its PDF exporting capability. 1.3 is an extremely old version of the iText library (circa 2005).
Our team is working on an application which makes use of both Display Tag and iText 2.0.x. The 2.0.x version brings many enhancements over prior versions. However, there's apparently quite a bit of refactoring (including deprecation of many classes) that went on in the iText codebase.
It would be nice to see Display Tag update this particular dependency.
Our team is working on an application which makes use of both Display Tag and iText 2.0.x. The 2.0.x version brings many enhancements over prior versions. However, there's apparently quite a bit of refactoring (including deprecation of many classes) that went on in the iText codebase.
It would be nice to see Display Tag update this particular dependency.
Attachments
-
- DISPL-450-DefaultItextExportView-patch.txt
- 10/Jun/09 4:21 AM
- 1 kB
- LusuM
-
- DISPL-450-DefaultPdfExportView-patch.txt
- 16/Apr/08 6:27 AM
- 1.0 kB
- Yannick Haudry
-
- DISPL-450-ItextTableWriter-patch.txt
- 16/Apr/08 6:27 AM
- 1 kB
- Yannick Haudry
-
- DISPL-450-ItextTotalWrapper-patch.txt
- 16/Apr/08 6:27 AM
- 1 kB
- Yannick Haudry
-
- DISPL-450-PdfView-patch.txt
- 16/Apr/08 6:28 AM
- 0.8 kB
- Yannick Haudry
-
$i18n.getText("admin.common.words.hide")
- displaytag-1.2-DISPL-450.patch.jar
- 22/Oct/09 7:07 PM
- 217 kB
- Mario Lavarreda
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/displaytag-el.tld 27 kB
- META-INF/displaytag.tld 30 kB
- org/.../AutolinkColumnDecorator.class 3 kB
- org/.../CheckboxTableDecorator.class 3 kB
- org/displaytag/.../ColumnDecorator.class 0.3 kB
- org/displaytag/decorator/Decorator.class 3 kB
- org/displaytag/.../DecoratorFactory.class 0.5 kB
- org/.../DefaultDecoratorFactory$DeprecatedDecoratorWrapper.class 1 kB
- org/.../DefaultDecoratorFactory.class 3 kB
- org/.../DisplaytagColumnDecorator.class 0.4 kB
- org/.../EscapeXmlColumnDecorator.class 1 kB
- org/.../MessageFormatColumnDecorator.class 2 kB
- org/.../MultilevelTotalTableDecorator$GroupTotals.class 4 kB
- org/.../MultilevelTotalTableDecorator.class 12 kB
- org/displaytag/.../TableDecorator.class 2 kB
- org/displaytag/.../TotalTableDecorator.class 6 kB
- org/.../BaseNestableJspTagException.class 2 kB
- org/.../BaseNestableRuntimeException.class 2 kB
- org/displaytag/.../DecoratorException.class 1.0 kB
- org/.../DecoratorInstantiationException.class 1 kB
- org/displaytag/.../ExportException.class 0.8 kB
- org/.../FactoryInstantiationException.class 1 kB
- org/.../InvalidTagAttributeValueException.class 1 kB
- org/.../MissingAttributeException.class 1 kB
- org/.../ObjectLookupException.class 1 kB
- org/.../RuntimeLookupException.class 1.0 kB
- org/displaytag/.../SeverityEnum.class 0.8 kB
- org/.../TablePropertiesLoadException.class 1 kB
- org/.../TagStructureException.class 1 kB
$i18n.getText("admin.common.words.show")- displaytag-1.2-DISPL-450.patch.jar
- 22/Oct/09 7:07 PM
- 217 kB
- Mario Lavarreda
-
- displaytag-itext-2.1.5.patch
- 11/Aug/09 9:19 AM
- 6 kB
- Josef Cacek
Activity
Hide
LusuM
added a comment -
There is actually a bug while using itext 2.0.x to export a multi-page table : if here is a caption the table headers don't appear on the first page (it only affect PDF not RTF)
To solve this issue you have to use the method setNotAddedYet(false) on the table before adding it into the itext document.
I joined the correction file DISPL-450-DefaultItextExportView-patch.txt
Cheers
To solve this issue you have to use the method setNotAddedYet(false) on the table before adding it into the itext document.
I joined the correction file DISPL-450-DefaultItextExportView-patch.txt
Cheers
Show
LusuM
added a comment - There is actually a bug while using itext 2.0.x to export a multi-page table : if here is a caption the table headers don't appear on the first page (it only affect PDF not RTF)
To solve this issue you have to use the method setNotAddedYet(false) on the table before adding it into the itext document.
I joined the correction file DISPL-450-DefaultItextExportView-patch.txt
Cheers
Show
Josef Cacek
added a comment - All-in-one patch for update to iText 2.1.5
Hide
Corporate Gadfly
added a comment -
when using DefaultPdfExportView.java with iText 2.1.6+, I had to use a couple of calls to cb.restoreState() at the end of doEndPage() method. iText 2.1.6+ now throws an exception:
From:
http://1t3xt.com/about/history.php?branch=history.21&node=216
Unbalanced saveState()/restoreState() calls to PdfContentByte now raises an IllegalPdfSyntaxException on close() and newPage()
From:
http://1t3xt.com/about/history.php?branch=history.21&node=216
Unbalanced saveState()/restoreState() calls to PdfContentByte now raises an IllegalPdfSyntaxException on close() and newPage()
Show
Corporate Gadfly
added a comment - when using DefaultPdfExportView.java with iText 2.1.6+, I had to use a couple of calls to cb.restoreState() at the end of doEndPage() method. iText 2.1.6+ now throws an exception:
From:
http://1t3xt.com/about/history.php?branch=history.21&node=216
Unbalanced saveState()/restoreState() calls to PdfContentByte now raises an IllegalPdfSyntaxException on close() and newPage()
Show
Mario Lavarreda
added a comment - Jar with patches for update to iText 2.1.5
Hide
Samuel Wong
added a comment -
I added the attached patch JAR to the classpath and PDF export is working. However the reported bug by LusuM is still showing up when I have a multi-page table.
First export page table will be missing the captions
First export page table will be missing the captions
Show
Samuel Wong
added a comment - I added the attached patch JAR to the classpath and PDF export is working. However the reported bug by LusuM is still showing up when I have a multi-page table.
First export page table will be missing the captions
Hide
The change in DefaultItextView should be setNotAddedYet(true) and not setNotAddedYet(false). This resolves the table header issue! (Using DisplayTag 1.2 and iText 2.1.3)
Show
Vance Cagle
added a comment - - edited The change in DefaultItextView should be setNotAddedYet(true) and not setNotAddedYet(false). This resolves the table header issue! (Using DisplayTag 1.2 and iText 2.1.3)
Basically nothing more than replacing deprecated methods (most of them since 2.0.3 and finally removed in 2.1.0)