Hi, i have a problem.
i need convert a lot of pages in a PDF document.
Well, the HtmlToPdf work fine when i convert a page to a PdfDocument, but whe i try to convert a page to PdfPage, throw a exception:
Convertion Failed. Object reference not set to an instance of an object
stacktrace:
in EO.Pdf.Internal.e5.a(f8 A_0, Bitmap A_1, Image A_2, Byte A_3, Byte[] A_4)
in EO.Pdf.Internal.e5.a(f8 A_0)
in EO.Pdf.Internal.e5.a(ca[] A_0)
in EO.Pdf.Internal.e5..ctor(kq A_0, Boolean A_1, Int32 A_2, jv A_3, Int32 A_4, Single A_5, Rectangle A_6, PdfPage A_7, ex A_8, Graphics A_9)
in EO.Pdf.Internal.kq.a(PdfPage A_0, Boolean A_1, Int32 A_2, Rectangle A_3, jv A_4, gj A_5, Graphics A_6)
en EO.Pdf.Internal.kq.a(Int32 A_0, HtmlToPdfResult A_1)
en EO.Pdf.Internal.kq.a()
the source is:
Code: Visual Basic.NET
Dim pdfpage As New PdfPage()
Dim pdfdocTemp As New PdfDocument
Dim strUrl As String = "the page"
Dim pdfoptions As New HtmlToPdfOptions
pdfoptions.AutoFitY = HtmlToPdfAutoFitMode.ScaleToFit
pdfoptions.AutoFitX = HtmlToPdfAutoFitMode.ScaleToFit
HtmlToPdf.ConvertUrl(strUrl, pdfpage, pdfoptions)
with ConvertURL to pdfdoctemp, work fine, but with pdfpage, throw the exception.
Any help?