  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Subject: RTF Writer/Parser - Does not appear to handle "auto-color " in \colortbl | Subject: RTF Writer/Parser - Does not appear to handle "auto-color " in \colortbl 2007-11-06 - By Howard Shank
Back Hi,
In the RTF Writer/Parser, iText/iTextSharp does not appear to be able to handle the following during import or during creation of a document
{\colortbl;\red0\green0\blue0;\red255\green0\blue0;}
The RTF Specs state that a \colortbl entry missing definition indicates the color "auto" color.
RTF Spec - "Each definition must be delimited by a semicolon, even if the definition is omitted. If a color definition is omitted, the RTF reader uses its default color. The following example defines the default color table used by Word. The first color is omitted, as shown by the semicolon following the \colortbl control word. The missing definition indicates that color 0 is the ??auto?? color."
When doing an import, the "auto-color" entry is ignored and does not use any default. When creating a document, I cannot locate a method for creating an "auto" color entry in the table.
Is this able to be done?
Thanks! Howard
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|
 |