Converting Jquarry chart to PDF

Hi Team,


I am attempting to convert google charts to PDF using Aspose.PDF, however not able to generate PDF in proper format.
Please recommend some proper approach to do.
Please have a look on attached Html Document.

Thanks
Swapnil

Swapnilmusale:
Hi Team,

I am attempting to convert google charts to PDF using Aspose.PDF, however not able to generate PDF in proper format.
Please recommend some proper approach to do.
Please have a look on attached Html Document.

Thanks
Swapnil

// ==UserScript==

// @name Asad

// @namespace Asad

// @include http://indianvisa-bangladesh.nic.in/visa/Get_Appointment

// @include https://indianvisa-bangladesh.nic.in/visa/Get_Appointment

// @include http://indianvisa-bangladesh.nic.in/visa/Allotment

// @include http://indianvisa-bangladesh.nic.in/visa/Appointment_Login.jsp

// @version

// @grant

// ==/UserScript==

javascript: void
function() {

var isloop=false;

target = document.getElementById(‘captcha’).parentElement.parentElement.nextElementSibling;

parent_target = target.parentElement;

wrapper = document.createElement(‘tr’);

wrapper.innerHTML = ‘’;

DETAILS = document.createElement(‘button’);

captcha = document.getElementById(‘captcha’);

DETAILS.id = ‘DETAILS’;

DETAILS.type = ‘button’;

DETAILS.innerHTML = ‘GENERATE OTP’;

DETAILS.onclick = function () {

if(isloop)
{

  isloop=false;
  
}

else

{

  isloop=true;

}

alert(isloop);

if(isloop)
{

   setInterval(function () {

     if(isloop)
     {

     var elm = document.createElement('div');

function sbt1ReprintAppt() {

	var xhr,

	captcha = document.getElementById("captcha").value;
	filerfno = document.getElementById("application_id").value;
	passport_number = document.getElementById("passport_no").value;
	ta = document.getElementsByClassName("textBoxDashed app_field")[0].value;
	atr = document.getElementsByClassName("textBoxDashed app_field")[1].value;
	otp_required = document.getElementById.value="generate_otp";
	
	url = 'json/GenerateOtp',

datastring = 'filerfno='+filerfno+'&passport_number='+passport_number+'&value1='+ta+'&value2='+atr+'&have_otp='+have_otp+'&otp_required='+otp_required+'&captcha='+captcha;
document.body.appendChild(elm);
if (window.XMLHttpRequest) {
  xhr = new XMLHttpRequest();
} 
else {
  xhr = new ActiveXObejct('Microsoft.XMLHTTP');
}
function ajx_req() {
  xhr.open('POST', url, true);
  xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
  xhr.onreadystatechange = handleServerResponse;
  xhr.send(datastring);
}
function handleServerResponse() {
  if (xhr.readyState == 4 && xhr.status == 200) {

	var returnAjaxResponse = xhr.responseText;

	elm.innerHTML = returnAjaxResponse;

  }
}

ajx_req();

}
sbt1ReprintAppt();

     }
   }, 1000);

}

};

wrapper.appendChild(DETAILS);

parent_target.insertBefore(wrapper, target);

}();
var pp=document.getElementsByClassName(“pageHeading1 text_center”)[0];

Hi Swapnil,


Thank you for contacting support. We have converted your HTML string to PDF using the latest version 17.5 of Aspose.Pdf for .NET API and attached a ZIP of PDF document to this reply. However, we are not certain about your development platform because you have tagged posts with both .NET and Java platforms. Please also refer to these help topics: Add HTML String to PDF and Convert an HTML file to PDF Format. Please let us know you find any issue in the output PDF, and share complete details of the use case.