Edit RTF section types

Last post 12-19-2011, 4:23 AM by JC Kevin. 6 replies.
Sort Posts: Previous Next
  •  12-15-2011, 1:37 AM 349437

    Edit RTF section types .NET

    I have RTF files that need to be processed: if there are \sectd sections and \posx parameter of this sections has value 0, section type should be changed from \sectd to \pard.

    I was hoping to use Aspose.Words for this purpose since it's already in my project but I can't find any way to do so.
    Is it even possible to to read position parameters and edit section types of RTF files with using Aspose.Words? Or may be there is any way to create new section of type \pard and copy text with formatting ( size, color, font ) from old one to new one?
    Filed under: . Net;.rtf;Aspose words
     
  •  12-15-2011, 11:16 AM 349639 in reply to 349437

    Re: Edit RTF section types

    Hi Kevin,

     

    Thanks for your request. Aspose.Words does not allow working such a low level. Could you please describe what this change should do in your document? I mean what you would like to change or create in terms of document as whole?

     

    Best regards,


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  12-18-2011, 12:52 PM 349975 in reply to 349639

    Re: Edit RTF section types .NET

    I have software that generate RTF documents. If an RTF document contains \sectd sections, those sections end up outlined by a peculiar border when the file is opened in Word. The borders don't appear if the file is printed, but do appear when viewing the file, which really annoys our managers.
    So I think \sectd can be replaced with \pard in some cases when probability of loosing formatting is minimal. \pard doesn't have such "problem".

    And I do realize it's finding problems where there are none but can't do much about it.
     
  •  12-19-2011, 12:43 AM 350007 in reply to 349975

    Re: Edit RTF section types

    Hi

     

    Thank you for additional information. But could you please attach your sample document here for testing? We will investigate it and provide you more information.

     

    Best regards,


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  12-19-2011, 1:00 AM 350017 in reply to 350007

    Re: Edit RTF section types .NET

    Attachment: Present (inaccessible)
    Thanks for reply.

    Here is small generated file. If you'll open it in Word ( in version 2010 at least ) and click on text, you'll see section containing that text outlined by a peculiar border that used by Word to allow user to edit position of this section.
     
  •  12-19-2011, 3:59 AM 350114 in reply to 350017

    Re: Edit RTF section types

    Hello

     

    Thank you for additional information. As I can see there is Frame inside your document, currently, there is no API that allows working with text frames in Aspose.Words. We will consider adding such API in future. But you should note that text frames are obsolete and that is why this is not a very popular feature.

     

    Best regards,


    Andrey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  12-19-2011, 4:23 AM 350122 in reply to 350114

    Re: Edit RTF section types

    Well, thank you anyway.
     
View as RSS news feed in XML