|
Rank: Member Groups: Member
Joined: 1/13/2015 Posts: 14
|
Hi,
While converting Url into Pdf SOMETIMES we have issue in loading Jquery files. ( JQuery file is not at all loaded ).
Code used as :
HtmlToPdfOptions options = new HtmlToPdfOptions(); options.OutputArea = new RectangleF(0.5f, 1.2f, 7f, 9f); options.PageSize = PdfPageSizes.A4; options.NoScript = false; options.NoLink = false; options.JpegQualityLevel = 100; options.RetrieveNodeText = false; options.MaxLoadWaitTime = 300000; options.NoCache = true; options.BaseUrl = **** ( its optional , even though we are setting this property ). options.UserName = ***** options.Password = *****
foreach (string pageUrl in pageUrls) {
HtmlToPdf.ConvertUrl(pageUrl, EoDocument, options);
}
Please help on this as this is blocking point.
Thanks , Ranjeet KUMAR
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, Please try to use the solution mentioned in this thread and see if it works: http://www.essentialobjects.com/forum/postst8340_EOPdf--SVG-renders-blank-using-NVD3.aspxIf that still does not work, please try to isolate the problem into a test app and send us the test app. See here for instructions on sending test app: http://www.essentialobjects.com/forum/test_project.aspxThanks!
|
|
Rank: Member Groups: Member
Joined: 1/13/2015 Posts: 14
|
Thanks for your response.
But why is it not loading SOMETIME as it will be executing same piece of code everytime ?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Ranjeet wrote:Thanks for your response.
But why is it not loading SOMETIME as it will be executing same piece of code everytime ? You will need to debug your code to find that out. It's unlikely that's is because JQuery not loaded. It might be that a script error occurred somewhere. You can use the built-in debug console feature to find out: http://www.essentialobjects.com/doc/4/htmltopdf/js.aspxThanks!
|
|
Rank: Member Groups: Member
Joined: 1/13/2015 Posts: 14
|
Hi,
There is partial rendering of page. Using HtmlToPdf.DebugConsole = Console.Out; we found following issue in one of the jquery.js (send separate mail to support). We never this issue in Essential Studio Syncfusion.
Case 1: undefined: JS ERROR: TypeError: 'undefined' is not an object Case 2: undefined: JS ERROR: ReferenceError: Can't find variable: jQuery undefined: JS ERROR: ReferenceError: Can't find variable: jQuery undefined: JS ERROR: ReferenceError: Can't find variable: jQuery undefined: JS ERROR: ReferenceError: Can't find variable: $ undefined: JS ERROR: ReferenceError: Can't find variable: $ We are blocking with this point to roll out into production.. Can you please help !!!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
Can you send us a working test project instead of just one script file? We need to be able to run it here to reproduce the problem first.
Thanks!
|
|