|
Rank: Newbie Groups: Member
Joined: 6/4/2013 Posts: 3
|
Hi, When rendering a large page (+20 pages) to PDF, we got an internal error: (tested under EO.PDF file version 5.0.59.2, latest release a.t.m.). Can this be fixed in a new release? It there a workaround for now possible?
Code:
HtmlToPdfException: Convertion failed. Buffer cannot be null. Parameter name: buffer
at EO.Pdf.HtmlToPdfException.b(Exception A_0) at EO.Pdf.Internal.lz.d() at EO.Pdf.HtmlToPdfSession.RenderAsPDF(PdfDocument doc) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc) at EO.Pdf.Mvc.MVCToPDF.d.a() at EO.Pdf.Mvc.MVCToPDF.a() at EO.Pdf.Mvc.RenderAsPDFActionFilter.OnResultExecuted() at EO.Pdf.Mvc3.RenderAsPDFAttribute.System.Web.Mvc.IResultFilter.OnResultExecuted(ResultExecutedContext filterContext) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>cDisplayClass1c.<>cDisplayClass1e.<InvokeActionResultWithFilters>b__1b() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) EO.Pdf.HtmlToPdfExceptionBuffer cannot be null. Parameter name: buffer at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable) at System.IO.MemoryStream..ctor(Byte[] buffer) at EO.Pdf.Internal.bf.a(Byte[] A_0, Single A_1, Single A_2, Single A_3, Single A_4, Double A_5, Double A_6) at EO.Pdf.Internal.lz.b(String A_0) at EO.Pdf.Internal.lz.d() System.ArgumentNullException
our code
Code: C#
public ActionResult ExportPDF()
{
MVCToPDF.RenderAsPDF();
return GetExport(); //returns ActionResult
}
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
Please try the latest from our download page. We have recently fixed a similar issue.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 6/4/2013 Posts: 3
|
Hi,
I just downloaded and installed the new version, but this is still an issue.
So we get the same error on the last version (EO.Total 2013.0.72, 5.0.64.2 is the dll version)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
In that case please try to isolate the problem into a small test project and then send the test project to us in zip format. Once we have that we will be happy to investigate further. We will PM you as to where to send the test project.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 7/26/2013 Posts: 6
|
We have same issue and we also try out newest version of EO.PDF component (5.0.68.2). Our website page has more than 82 pages (A4) if we will try to print it. Our page contains more than 400 highstock charts (see http://www.highcharts.com/products/highstock)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi Pavel,
Can you PM us with a test page so that we can run it here and see if we can see the problem?
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 6/4/2013 Posts: 3
|
For your information:
In our case we also use canvas (jqplot library). The page was +50 pages an with +50 canvas objects.
For us it wasn't possible to provide a (small) testcase
|
|
Rank: Newbie Groups: Member
Joined: 7/26/2013 Posts: 6
|
We have already PM via email to support link to web, where is possible to reproduce it.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Pavel Srot wrote:We have already PM via email to support link to web, where is possible to reproduce it. We will look into that and get back to you as soon as possible. Please do NOT post our emails publicly in the forum. The reason is not because we do not want to publish our email address, but because posting in the forum will cause the email address be harvested by bots and eventually get flooded by spams. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 5/19/2014 Posts: 1
|
hello sir, how to change generate pdf page size and font and margin and how to add header and footer in pdf page.please reply me as soon as possible. thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
kashyap wrote:hello sir, how to change generate pdf page size and font and margin and how to add header and footer in pdf page.please reply me as soon as possible. thanks Hi kashyap, Thanks for posting in the forum. However please be considerate while posting in the forum: 1. Unless you are sure that your question is related to an existing thread, we recommend you to post your question in a new thread. Do not just reply a totally unrelated thread; 2. Please do not just post everything that you are asked to do here and expect that we will be able to do for you. Take a look of the documentation and sample first. Most likely your questions are already answered there; 3. Please maintain basic manner and respect to all other users and to us in all your post and pay attention to your tone and language. In order to provide the best service for all of our customers, we need to maintain a friendly and respectful atmosphere here, and that requires effort from everyone. I hope you understand. If you still have any questions after you take a look of the documentation and sample, please feel free to make a new post and we will be happy to help you further. Thanks!
|
|