Welcome Guest Search | Active Topics | Sign In | Register

HtmlToPdf.ConvertUrl problem, to PdfPage Options
FcoCarrasco
Posted: Friday, March 22, 2013 1:58:50 PM
Rank: Newbie
Groups: Member

Joined: 3/22/2013
Posts: 4
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?
eo_support
Posted: Friday, March 22, 2013 2:48:25 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

This looks like a bug. Can you isolate the problem into a separate test project and send the test project to us?

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.