PDF not rendering html text but page displays correctly

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

mkushwaha
Ebase User
Posts: 29
Joined: Mon Nov 02, 2015 7:19 pm

PDF not rendering html text but page displays correctly

#1

Postby mkushwaha » Mon Jul 04, 2016 4:12 pm

I have a situation where I am doing the following:

Code: Select all

   controls.html_display.htmlText.text = str;
   log(str);
   var opts = new PdfOptions();
   opts.display = true;
   opts.save = false;
   opts.filePath = "C:/temp/pdf123.pdf";
   opts.pages = [pages.Page_1];
   form.generatePdf(opts);
html text gets rendered on the page but it fails to do so in pdf pop up. Would anyone know why it is not printing html text in PDF?
0 x

mkushwaha
Ebase User
Posts: 29
Joined: Mon Nov 02, 2015 7:19 pm

#2

Postby mkushwaha » Mon Jul 04, 2016 4:18 pm

Another question is same regards. I suspect that the html is taking long to render and PDF generation process is not able to pick all because it just looks for page instances at that moment. How does EBase PDF generation process picks up data for the page ?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#3

Postby Jon » Mon Jul 04, 2016 4:19 pm

What are the contents of the HTML string? Syntactically it needs to be valid XHTML to work when printed to a PDF.
0 x


Who is online

Users browsing this forum: No registered users and 7 guests