DO NOT REPLY [Bug 47481] New: RTF files don't work in TextEdit.app or Pages.app on the Mac

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

DO NOT REPLY [Bug 47481] New: RTF files don't work in TextEdit.app or Pages.app on the Mac

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=47481

           Summary: RTF files don't work in TextEdit.app or Pages.app on
                    the Mac
           Product: Fop
           Version: 0.95
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: rtf
        AssignedTo: fop-dev@...
        ReportedBy: mw5300@...


Generated RTF files from fop don't work on TextEdit.app or Pages.app. When I
try to open them i get an error that says "The document “helloworld.rtf” could
not be opened. The file is not in the right format. The file might be
corrupted, truncated, or in a different format than you expect."

I edited the rtf and narrowed it down to the font declaration section.

FOP sample font declaration:
{\fonttbl; {
\f0 Arial}{
\f1 Symbol}{
\f2 Times New Roman}{
\f3 sans-serif}
}
(for a simple document)

TextEdit.app sample font declaration:
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}

The issue is the ";" after "fonttbl". When I change the FOP declaration to this
it works fine in TextEdit.app:
{\fonttbl {
\f0 Arial}{
\f1 Symbol}{
\f2 Times New Roman}{
\f3 sans-serif}
}

I don't know anything about how the RTF spec works, so this may be different in
larger documents.

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47481] RTF files don't work in TextEdit.app or Pages.app on the Mac

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=47481





--- Comment #1 from Pavel Kysilka <goldenfish@...>  2009-07-22 08:01:59 PST ---
Already fixed. See bug #45606. Please close bug.

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47481] RTF files don't work in TextEdit.app or Pages.app on the Mac

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=47481


Mark Watson <mw5300@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #2 from Mark Watson <mw5300@...>  2009-07-22 08:12:09 PST ---
(In reply to comment #1)
> Already fixed. See bug #45606. Please close bug.

My bad, I guess I didn't test in the development version.

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.