Image not rendered properly in PDF on Windows 2003 Server

  • 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.