We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

RTF formating problem

Hi,

I have problem with rtf file format. Problem is the following: I need to read rtf file and change some runs. Way I do that is:

public static void main(String argp[]) throws Exception {
String source = “d:/rtf/test.rtf”;
String target = “d:/rtf/new-test.rtf”;

Document doc = new Document(source);

List runs = getDocumentRuns(doc);

for(Run run : runs) {
run.setText("New_ " +run.getText());
}

doc.save(target);
}

private static List getDocumentRuns(Document doc) throws Exception{
final List runs = new ArrayList();

doc.accept(new DocumentVisitor(){
@Override
public int visitRun(Run run) throws Exception {
runs.add(run);

return super.visitRun(run);
}
});

return runs;
}

, but table in new-test.rtf is different then the source (test.rtf). It seems there is more then one table.
Can you please explain me what is problem.

Example file is in attachment.

Thanks,
Zeljko

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for reporting this problem to us. I managed to reproduce it on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards.

Hi,

Can you please update me about this issue?

Thanks,

Zeljko

Hi Zeljko,

Thanks for your request. Unfortunately, the issue is still unresolved. You will be notified as soon as it is fixed.

Best regards,

Hi,

Thanks for fast response. When it is planned that this issue be solved? Lots of my functionality depends on this.

Zeljko

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Unfortunately, I cannot provide you any reliable estimate regarding this issue at the moment. Please expect a reply before next hotfix (within 4-5 weeks). We might just fix the problem or provide you more information.

Best regards,

Hi,

It would be great if you fix this issue in next hotfix.

Zeljko

The issues you have found earlier (filed as WORDSNET-3086) have been fixed in this .NET update and this Java update.