CeTe DynamicPDF Merger cant merge CE Generated PDF's.

  •  09-23-2009, 2:56 PM

    CeTe DynamicPDF Merger cant merge CE Generated PDF's.

     Hello,
     
    I have a paid licensed copy of CE for Net in addition to a paid license for a Cete DynamicMerger / Crystal Reports. Any ideas/help on the issue below would be greatly appreciated.
     
    Thanks,
     
    Alex
     
    I. What we want to accomplish:
    1. Use the CE for Net to generate PDF's 
        a. Crystal Reports / Cete also can generate dynamic PDF's, but they both support a limited HTML subset so we can't use that in this situation as we need to use certain HTML tags that are supported in CE, but that are not supported in Cete/Crystal.
     
    2. Use Cete DynamicPDF Merger to merge the individually created CE PDF's into one PDF.
        a. CE nor Crystal can merge individual PDF's into one PDF, hence, we need to use Cete Merger.
     
    II. Issues Encountered:
    1. The PDF that is generated by CE on the server ["ce_test_pdf.pdf"] opens as expected with Adobe Acrobat -- however, DynamicPDF Merger has an issue with the file (see stack trace below.) I've tested Merger with Crystal Reports generated PDF's [test0.pdf] and Acrobat generated PDF's [test1.pdf/test2.pdf] and they work as expected with Cete Merger, except for the one's generated by CE.
     
    The following is a copy of the stack trace:
    System.NullReferenceException was unhandled by user code
      Message="Object reference not set to an instance of an object."
      Source="ceTe.DynamicPDF.20"
      StackTrace:
           at zz93jy.a(zz93ft A_0)
           at zz93ew..ctor(zz93ft A_0, zz93jy A_1)
           at ceTe.DynamicPDF.Merger.PdfDocument.g()
           at ceTe.DynamicPDF.Merger.PdfDocument..ctor(zz93f6 A_0, String A_1)
           at ceTe.DynamicPDF.Merger.PdfDocument..ctor(String filePath)
           at ceTe.DynamicPDF.Merger.MergeDocument.Append(String filePath)
           at BidInvitation.Page_Load(Object sender, EventArgs e) in [...]
     
    III. VB.NET Source Code
    Editor1.Text =
    "CE Hello World <ul><li>hello</li><li>world</li></ul>"

    strPDFName = "c:\ce_test_pdf.pdf"

    Dim objPDF As New CuteEditor.Convertor.PDF.HTML2PDF(Editor1.Text)

    objPDF.Render()

    objPDF.Save(strPDFName)
    Dim objMD As New ceTe.DynamicPDF.Merger.MergeDocument("c:\test0..pdf", MergeOptions.All)

    objMD.Append("c:\test1.pdf")

    objMD.Append("c:\ce_test_pdf.pdf")

    objMD.Append("c:\test2.pdf")

    objMD.Draw("c:\my_merged_document.pdf")

View Complete Thread