Html to PDF - Aspose.Total - charts not rendered in pdf


I tried to run your samples (HtmlToPdf and CanvasToPdf) using the attached html file which uses charts js to display charts (bar chart in this case). The rendered pdf does not contain the charts and only renders any standard html data. Am I doing anything wrong or is there an issue rendering these to PDF? (899 Bytes)


Thanks for contacting support.

Can you please share your generated result with us to further investigate this issue.

canvas.pdf (3.1 KB)

As requested, the pdf is just empty. Just to let you know we have a Aspose.Total licence. The code in the runexample I have used is as below:

// instantiate License object
Aspose.Html.License html_license = new Aspose.Html.License();
// license file path information
// ExStart:CanvasToPDF
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Data();

        using (var document = new HTMLDocument(dataDir + "ChartsJS.html"))
            // Create an instance of HTML renderer and XPS output device
            using (var renderer = new Rendering.HtmlRenderer())
            using (var device = new Aspose.Html.Rendering.Pdf.PdfDevice(dataDir + "canvas.pdf"))
                //  Render the document to the specified device
                renderer.Render(device, document);


We have logged an investigation ticket as HTMLNET-2603 in our issue tracking system. We will further investigate the scenario in details and keep you posted with the status of ticket resolution. Please spare us little time.

We are sorry for the inconvenience.