[ 
https://issues.apache.org/jira/browse/JCR-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcel Reutegger resolved JCR-1831.
-----------------------------------

    Resolution: Cannot Reproduce

Works for me. See also test case added in JCR-1833.

> RTFTextExtractor not extracting text from RTF file
> --------------------------------------------------
>
>                 Key: JCR-1831
>                 URL: https://issues.apache.org/jira/browse/JCR-1831
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-text-extractors
>    Affects Versions: 1.4
>         Environment: Reproduced in Linux
>            Reporter: hector rovira
>
> This extractor is not working.  I debugged it and found that the 
> doc.getLength() is zero and doc.getText(...) is returning an empty string:
>             RTFEditorKit rek = new RTFEditorKit();
>             DefaultStyledDocument doc = new DefaultStyledDocument();
>             rek.read(stream, doc, 0);
>             String text = doc.getText(0, doc.getLength());
>             return new StringReader(text);
> There are no exceptions thrown, or warnings in the log.  
> This code has dependencies on javax.swing.text classes, and I'm not familiar 
> with that API, so I have not been able to figure out a quick fix or 
> workaround.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to