Beiträge von brian_v

    I realize that this may be a non-starter, but a client wants this functionality.

    I'm using wRTF2PDF to convert RTF entered by the user to PDF for viewing on the web. The user wants to be able to insert an image in the RTF, select it, and add the underline attribute to it. The RTF spec allows this (our 3rd-party control and also Word displays this properly), but the wRTF2PDF conversion drops the underline. It's probably because underline is a text decoration and can't be applied to an image, but that's what the client is asking for.

    For example, the user would insert an image and underline it, like this:

    [this is the image]

    The RTF displays this ok, but the conversion drops the underline in the PDF, so it's just the image:

    [this is the image]

    Is there anything I can do to get this to work?

    Thanks.

    I'm having a problem getting any image (gif, jpg, etc) to render properly in the PDF file on Windows 2003 Server when converting from RTF. The output is perfect on Windows XP Pro, however.

    The components in use by my VB.NET 2003 application are:

    wRTF2PDF02.dll (version 3.2.3.1)
    wPDFControl02.dll (version 2.6.1.8)
    wPDF.dll (version 2.6.2046.26857)

    I do not recieve any compilation errors when building the application on the Windows XP box, and the program works fine (converting a user-defined RTF to PDF). But when the code is run (server-side) on a Windows 2003 Server machine, the resulting PDF is not correct. It contains a very small red and gray design, that doesn't look like much of anything, instead of where the actual image should be. I should also mention that the image in the RTF is a reference to an external file, not embedded. No exceptions are thrown.

    The code I'm using to perform the conversion is:

    Dim myRTF2PDF As New RTF2PDF
    Dim myFileStream As FileStream
    Dim myStreamWriter As StreamWriter

    myFileStream = New FileStream(myRTFFilePath, FileMode.Create)
    myStreamWriter = New StreamWriter(myFileStream)
    myStreamWriter.Write(rtfContent)
    myStreamWriter.Close()
    myFileStream.Close()

    Try
    myRTF2PDF.SetLicense(...)
    myRTF2PDF.LoadRTF(myRTFFilePath)
    myRTF2PDF.FontMode = eFontMode.EmbedSymbolTTF
    myRTF2PDF.Export(pdfFilePath)
    Catch ex As Exception
    Throw ex
    End Try

    To whoever is going to help me with this: just email me and I'll send you an example of the PDF that's produced.