Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6753499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:10:07+00:00 2026-05-26T13:10:07+00:00

We use ABCPDF to convert a HTMl page to a PDF. Everything works fine,

  • 0

We use ABCPDF to convert a HTMl page to a PDF. Everything works fine, except the charts generated with highcharts.The usescript tag is set to true, but the area where the chars is rendered stays empty. In IE9 the charts is rendered. anyone knows a solution?

        Doc theDoc = new Doc();
        theDoc.HtmlOptions.UseScript = true;
        theDoc.HtmlOptions.ImageQuality = 100;          

        theDoc.AddImageUrl("/factsheet.html", false, 984, true);

        byte[] theData = theDoc.GetData();
        Response.Clear();
        Response.ContentType = "application/pdf";
        Response.AddHeader("content-disposition", "inline; filename=MyPDF.PDF");
        Response.AddHeader("content-length", theData.Length.ToString());
        Response.BinaryWrite(theData);
        Response.End();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:10:08+00:00Added an answer on May 26, 2026 at 1:10 pm

    This issue can be caused by animated graphics that dynamically fade in.

    ABCpdf will attempt to capture a page as soon as it has finished loading. So, if the initial state of the chart is blank, this is how it will appear in the rendered PDF document.

    To get the Highchart graphics to display properly you may need to delay the rendering slightly. You can achieve this by specifying Gecko as the HTML rendering engine, and setting a delay via the HtmlOptions.OnloadScript property, something like:

    Doc doc = new Doc();
    doc.HtmlOptions.Engine = HTMLEngineType.Gecko;
    doc.HtmlOptions.UseScript = true;
    doc.HtmlOptions.OnLoadScript = "(function(){window.ABCpdf_go = false; setTimeout(function(){window.ABCpdf_go = true;}, 1000);})();";
    doc.AddImageUrl("http://example.com/");
    doc.Save("example.pdf");
    

    In the example above, JavaScript is assigned to the HtmlOptions.OnLoadScript property, which will run client-side, setting the ‘window.ABCpdf_go’ property to ‘true’ after 1 second.

    ABCpdf will wait for window.ABCpdf_go to become ‘true’ or ‘undefined’ before rendering any HTML. ABCpdf will stop watching if the HtmlOptions.Timeout is exceeded.

    The window.ABCpdf_go property is a recent addition to ABCpdf, so check you’re working with the latest version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Which is the right/best tag to use in my HTML file when I want
Use Html element SELECT in aspx page like: <SELECT id=MySelection name=MySelection runat=server DataValueField=ID DataTextField=Name></SELECT>
Use case: 3rd party application wants to programatically monitor a text file being generated
I have a command-line process that creates a PDF file from an HTML file
I'm attempting to make a PDF from a HTML document, and this document has
I am using ABCPDF to print a PDF file to a local printer via
I'm trying to add a radio button to a pdf page I'm rendering through
Use of rails 3 recaptcha. In view _form.html.erb insert <%= recaptcha_tags %> But when
'''use Jython''' import shutil print dir(shutil) There is no, shutil.move, how does one move
Use case: A does something on his box and gots stuck. He asks B

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.