Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27116

    I’m testing your conversion library to convert HTML file to RTF but when the HTML files contain images the conversion generates a huge RTF files.
    In our testing we try to convert a html file like

    green

    • 1
    • 2

    The image file size is 6KB, but the RTF result file size is 210KB…
    is this the normal behaviour?

    #29978

    Do you convert to RTF or to RTF_WMF mode?

    RTF_WMF for wordpad.exe compatibility converts image bytes to WMF format, which causes a significant size grow of resulting RTF.

    #29979

    I use RTF_WMF, because if i use RTF thene image is not transfered to the result file.
    Is there any way to add the image in the source compression format instead of convert it to WMF format?
    I have tested to create the final result using “wordpad” and the result file size is 70KB.

    #29980

    > if i use RTF thene image is not transfered to the result file.

    In fact the images are there, but can only be displayed by MS Word (and may be some other viewers).

    > I have tested to create the final result using “wordpad” and the result file size is 70KB.

    It can also be, Wordpad downscales the image with a detailization loss. But we’ll check the RTF spec if there are compression options for such images available, supported by the major viewers.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.