Rank: Newbie Groups: Member
 
 
Joined: 1/10/2019 Posts: 2 
	 | 
		   
	     
		    Hi Support Team,
  I start my adventure with eo and I have a problem when I want download page as pdf. I used a MVCToPDF.RenderAsPDF() function. Some of data which is displayed in page is set by javascript function. From time to time pdf is generated with wrong data and without pictures. I tried to use solution:
  in javascript, after all operations are done:
  if (window.eoapi && eoapi.isEOPdf())      eoapi.convert();
  controler:
          [System.Web.Mvc.HttpPost]         [System.Web.Mvc.ActionName("PrintPdf")]         [ValidateInput(false)]         [EO.Pdf.Mvc.RenderAsPDF(AutoConvert = false)] public ActionResult DoAction([FromBody] string data, [FromUri] bool debug = false)         {              HtmlToPdf.Options.TriggerMode = HtmlToPdfTriggerMode.Manual;             MVCToPDF.RenderAsPDF()             return View("~/view", model);         }
  but it does not work. I have problem with eoapi, eoapi is always undefined. I used version EO.Pdf.16.2.60.0. Can you help me with this issue? Maybe you could create an example how eoapi can be used together with MVCToPDF?
		 
	 | 
	
		Rank: Administration Groups: Administration
 
 
Joined: 5/27/2007 Posts: 24,427 
	 | 
		   
	     
		    Hi,
  Please try the latest version and see if it works for you. eoapi does not exist in old versions. 
  Thanks!
		 
	 | 
	
		Rank: Newbie Groups: Member
 
 
Joined: 1/10/2019 Posts: 2 
	 | 
		   
	     
		    Hi,
  I try with the latest version and it works. Thank you for help.
		 
	 | 
	
		Rank: Administration Groups: Administration
 
 
Joined: 5/27/2007 Posts: 24,427 
	 | 
		   
	     
		    Great. Glad to hear that it works for you!
		 
	 |