[jira] Created: (DISPL-450) Update PDF export to use iText 2.0

View: New views
4 Messages — Rating Filter:   Alert me  

[jira] Created: (DISPL-450) Update PDF export to use iText 2.0

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Update PDF export to use iText 2.0
----------------------------------

                 Key: DISPL-450
                 URL: http://jira.codehaus.org/browse/DISPL-450
             Project: DisplayTag
          Issue Type: Improvement
    Affects Versions: 1.1
            Reporter: Duc M Trinh


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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-devel mailing list
displaytag-devel@...
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

[jira] Commented: (DISPL-450) Update PDF export to use iText 2.0

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/DISPL-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130985#action_130985 ]

Yannick Haudry commented on DISPL-450:
--------------------------------------

Here are the patches to make use of the latest iText version (tested with 2.0.8 and 2.1.0)
Basically nothing more than replacing deprecated methods (most of them since 2.0.3 and finally removed in 2.1.0)

> Update PDF export to use iText 2.0
> ----------------------------------
>
>                 Key: DISPL-450
>                 URL: http://jira.codehaus.org/browse/DISPL-450
>             Project: DisplayTag
>          Issue Type: Improvement
>    Affects Versions: 1.1
>            Reporter: Duc M Trinh
>         Attachments: DISPL-450-DefaultPdfExportView-patch.txt, DISPL-450-ItextTableWriter-patch.txt, DISPL-450-ItextTotalWrapper-patch.txt, DISPL-450-PdfView-patch.txt
>
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
displaytag-devel mailing list
displaytag-devel@...
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

[jira] Commented: (DISPL-450) Update PDF export to use iText 2.0

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/DISPL-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=179852#action_179852 ]

LusuM commented on DISPL-450:
-----------------------------

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

> Update PDF export to use iText 2.0
> ----------------------------------
>
>                 Key: DISPL-450
>                 URL: http://jira.codehaus.org/browse/DISPL-450
>             Project: DisplayTag
>          Issue Type: Improvement
>    Affects Versions: 1.1
>            Reporter: Duc M Trinh
>         Attachments: DISPL-450-DefaultItextExportView-patch.txt, DISPL-450-DefaultPdfExportView-patch.txt, DISPL-450-ItextTableWriter-patch.txt, DISPL-450-ItextTotalWrapper-patch.txt, DISPL-450-PdfView-patch.txt
>
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
displaytag-devel mailing list
displaytag-devel@...
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

[jira] Commented: (DISPL-450) Update PDF export to use iText 2.0

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/DISPL-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=192433#action_192433 ]

Corporate Gadfly commented on DISPL-450:
----------------------------------------

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()

> Update PDF export to use iText 2.0
> ----------------------------------
>
>                 Key: DISPL-450
>                 URL: http://jira.codehaus.org/browse/DISPL-450
>             Project: DisplayTag
>          Issue Type: Improvement
>    Affects Versions: 1.1
>            Reporter: Duc M Trinh
>         Attachments: DISPL-450-DefaultItextExportView-patch.txt, DISPL-450-DefaultPdfExportView-patch.txt, DISPL-450-ItextTableWriter-patch.txt, DISPL-450-ItextTotalWrapper-patch.txt, DISPL-450-PdfView-patch.txt, displaytag-itext-2.1.5.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
displaytag-devel mailing list
displaytag-devel@...
https://lists.sourceforge.net/lists/listinfo/displaytag-devel