If(WhereToAddPageNumber="H","--enable-plugins --header-right ""[page]/[topage]""",If(WhereToAddPageNumber="F", "--enable-plugins --footer-right ""[page]/[topage]""","--enable-plugins")) But it doesn't seem to work.
wallace stephen wrote:
i AM USING CHARTS . Will it create any problem ??
"<iframe src='img/logoHeader.jpg' style='border: none; width: 111px; height: 110px;' scrolling='no'></iframe>"
This release has a lot of changes/bug fixes and brings back OS X support due to the efforts of @mn4367.
Binaries for all platforms are available from the website. It is recommended for all users of 0.12.0 to upgrade to 0.12.1 immediately. https://github.com/wkhtmltopdf/wkhtmltopdf/releases/tag/0.12.1
Can Someone help?
Yeah. Use Alt-PrtScr instead of PrtScr for screen dumps! Alternatively, and ideally, apart from a screen dump actually write what problem you encounter, it's more user friendly. Also, we don't know what you've alread tried. In your screen shot, there's even a possible solution to your problem. Did you try what has been suggested there? Etc.
I did try the " --load-error-handling ignore" as suggested but it print an empty pdf.
Could not find file 'C:\Users\ETBA59~1\AppData\Local\Temp\TEMPISJBMTXSHB00000000000000000000000000000000.pdf'.SetProcessDpiAwareness failed: "COM error 0xffffffff80070005 (Unknown error 0x0ffffffff80070005)"Error: Failed loading page https:// (sometimes it will work just to ignore this error with --load-error-handling ignore)Exit with code 1, due to unknown error.
DOn't know what I did wrong
Are you sure that IIS can read that location? It seems the TEMP directory of a local user?
Kilian Hekhuis wrote:
I don't think I understand what u mean?
Hi Conwell, please try reading this thread starting from here. It's about permissions, the RunAs user, and possibly authentication method, etc. If you've followed/checked everything mentioned there, it should work. If not, report back.
I still can't workaroud that Error.
I'm starting to think that maybe it has to do with the app being Multi Tenant.
Can that be the cause of this error?
Because I tried deleting and re-uploading the exe file and run As but I don't know why its looking in the folder
'C:\Users\ETBA59~1\AppData\Local\Temp\TEMPISJBMTXSHB00000000000000000000000000000000.pdf'.
instead of %win%temp%
Isn't there another component I can use to convert html to pdf ?
I tried using the jsPDF plugin but it has so many exclusions.
jsPDF is not very good for this purpose, and it is client-side, not server-side (which has some drawbacks). As an alternative to wkhtmltopdf.exe, you could try PhantomJS, but you'll either need to create an extension by yourself, or modify this one to work with PhantomJS. Also, you might run into the same problems with regards to privileges.
Hi kilian
I managed to generate pdf files using the html2pdf component at last.
I had to create a printable screen that uses none related Silk UI theme and widgets
But now I have an issue, The PDF i print doesn't get the data from the server.
The pdf come with the widgets but no data on it. like I said before, The app is multi tenancy.
I used tenant switch to isolate data between tenants.
But The page that get page that gets printed is this:
No data on it,
Is it the multi tenancy maybe ?
Very likely, yes. When you call html2pdf with the URL from your page, you must make sure the right tenant is known. I'm not sure what the best way is to do this, as I've never used multi-tenancy.
Suggest you do the following:All calls to a page for this should be made using a single unique, random ID (like a GUID) that your screen can use to look up some saved parameters somewhere like the tenant, recored you need to retreive, etc. This will provide security to your screen in case someone else pulls it up. Make your entity a single tenant entity so it always finds the data, then once you do the look up, do tenant switch to the right tenant and perform the rest of the queries.
J.Ja
Justin James wrote:
The Issue now is I didn't make the espace multi tenant but only some entities.
I even tried filtering through the data using the session.tenantId but with no success.
should I pass the Guid as input in my printable screen or ?
1. It doesn't matter if the eSpace is multi tenant or just some entities. A "multi tenant" eSpace is no different from a single tenant eSpace, other than setting defaults for stuff.
2. How are you filtering by tenant ID on entities that are multi-tenant? Did you expose the tenant ID? If so, you don't need to do a tenant switch.
3. Yes, pass the GUID in to the printable screen. Again, the idea here is to make an entity that stores the parameters that you would normally pass to the screen. why? Because the printable screen MUST have "anonymous" be allowed to access the screen (Html2Pdf can't login). That means that anyone who figures out the URL can pass in different IDs to parameters and see things that they probably should not view. By using a single random ID like a GUID, and using that to look up the actual parameters, you make it hard for an attacker to be able to get to data like this... and if you delete that parameter record at the end of the Preparation so it is a one-time use value, you make the system that much stronger.
This component works with Outsystems 10 Free version? I've got same "Temp" error related above.
Saulo Gonçalves wrote:
Yes it does.
You can refer to the FAQ for troubleshooting options.
Please note that this will only work for web applications and not for mobile applications.
Cheers,
Guilherme
Saulo,
I don't think you have access to the local file system in the free cloud, so I am tempted to say it indeed doesn't work.
Shanmuk,
As you can read in this very thread, this question has been asked multiple times. As far as I can see, it is not possible to render charts with this component.
Hi Kilian,
I have a screen with charts and tabular data. How can i download that screen as a report. If HTML to PDF wont work with this case which widget i need to use. Can you clarify please.
Regards,
Shanmuk
Hello! Anybody knows why there are some extra blank pages generated and how to avoid that?
Thanks!
Hello ,
When i am trying to open google page from HtlmlToPdfConverter getting below error, eventhough i am having admin rights
Error:
Could not find file 'C:\Windows\TEMP\TEMPKJJSTMIOPQ00000000000000000000000000000000.pdf'. SetProcessDpiAwareness failed: "COM error 0xffffffff80070005 (Unknown error 0x0ffffffff80070005)" Error: Failed loading page https://www.google.com (sometimes it will work just to ignore this error with --load-error-handling ignore) Exit with code 1 due to network error: UnknownNetworkError
When this error occurs:
after clicking in www.google.com button in the application
Access:
Having admin rights in the outsystems environment
Having read & write access to winows-Temp directory but still getting an error
can anyone suggest me on how to resolve this issue.
Thanks and Regards,
Kiran
Hello Kiran,
Have you checked this related forum post: https://www.outsystems.com/forums/discussion/29258/error-when-clicking-pdf-download/
If the page isn't set to anonymous you should check if using tokens is a usefull workaround.