Problem converting html to pdf

  •  12-13-2007, 10:19 AM

    Problem converting html to pdf

    Simple HTML conversion is working fine. When I try a more complex conversion I get the following error:
     
    Message: Unable to cast object of type 'CuteEditor.Convertor.PDF.PDFAnchor' to type 'CuteEditor.Convertor.PDF.PDFObject'.
     
    Inner Exception:
     
    Source: CuteEditor
     
    StackTrace: at CuteEditor.Convertor.PDF.PDFRect.AdjustContentWidth(Int32 width)
     
    at CuteEditor.Convertor.PDF.PDFTable.AdjustWidth(Int32 padding)
     
    at CuteEditor.Convertor.PDF.HTML2PDF.a(HTMLNode A_0, FontStyle A_1, Int32& A_2)
     
    at CuteEditor.Convertor.PDF.HTML2PDF.a(HTMLNode A_0, FontStyle A_1, Int32& A_2)
     
    at CuteEditor.Convertor.PDF.HTML2PDF.a(HTMLNode A_0, FontStyle A_1, Int32& A_2)
     
    at CuteEditor.Convertor.PDF.HTML2PDF.a(HTMLNode A_0, FontStyle A_1, Int32& A_2)
     
    at CuteEditor.Convert
     
    TargetSite: Void AdjustContentWidth(Int32)

    This is not using a complete html document  so no <Head><html><body> etc just a <div> and it's contents, I presume it is ok to do this? The html displays in the editor ok

View Complete Thread