Hi,
I have uploaded the forge compoenent called HtmlToPdfConverter to convert the pages to pdf :
here's the action :
I have also configured the backoffice :
but when I click the button to convert the page to pdf I have this error :
means : specified file is not found Problem generating PDF from HTML.
Do you know what could the problem please ?
thanks
You can use this Forge to download a PDF in the mobile app. Just pass the binary data obtained from PrintToPDF.
https://www.outsystems.com/forge/component-overview/16040/download-file
Regards
Nikhil kumar vijay
When you install this application on your mobile device, it will detect the Cordova plugin. Therefore, it will not work on the PWA emulator.
Here's a link to my application. Please install it and let me know if it works for you.
https://personal-zju7lmqr.outsystemscloud.com/NativeAppBuilder/App?AppKey=d3b816f7-11f2-426f-9759-10f6f3d3353f
Hello @you asen
Instead of using this converttohtml forge, you can refer to this forge which helps in converting webpages to PDF.
https://www.outsystems.com/forge/component-overview/5641/ultimate-pdf
I have shared a demo link with you which will help you fulfil your requirements.
Demo
hi,
thanks for your reply, I have installed this one as you see :
but when I click the button nothing happens . what do you think this problem ?
"I am able to use it without any issues."
"I have created a demo and you can check the results."
https://personal-zju7lmqr.outsystemscloud.com/HelloWorld/Screen1?_ts=638399877393596465
thanks for your time, I'm using actually a PWA, and I dont have the Download tool as you.
is there an widget which I can use please ?
I did what did you suggest but nothing happens
Yes you are right when I run it in the browser it says Cordova not defined, but I when I try it with the tablete nothing happen, but you example works fine,can you share the .oml please ?
thnaks, I think there will be another issue even if it works, when I try to use the demo :
Demo app, with an URL of My application :the PDF exports just the splash screen.
You can test that on your own, you will see the same result, Do you know why please ? because the URL provided is a valid URL.
"I am sharing my application's OML file with you. Please feel free to check it out."
"Could you please share your oml file with me? If possible, I will check it and fix the issue."
this one you can access it anonymously
here's the .oml, it exports just the splash screen and not the test page, thanks a lot for your help
"You didn't enable the anonymous feature, which is why you can't see the screen."
but you are able to generate the pdf with the URM provided in my example ?
because for me it gives me "An error occurred while generation the pdf"
in my example, when I keep the URL provided in my example it doest work, but I change to your URL provided in your .oml, it works as exapected, what could be the problem ?
"Could you please try changing the visibility of the screen to anonymous and see if that resolves the issue?"
with link I gave, I switch to anonymous mode, when I click the button to generate the pdf it gives this error :
"An error occurred while generation the pdf"
when I past the link in the https://leonardofernandes.outsystemscloud.com/UltimatePDF_Demo/
it gives this result :
and remember I switch to anonymous mode. you can try that
Please correct me if I'm wrong, but based on my understanding, it seems like you passed the application screen URL in printtopdf, which means that when the action is executed, it will capture the entire screen screenshot. However, every time the screen is rendered, the splash screen appears first. If you want to capture only the test screen, you will need to delete the splash screen first. After that, you should receive the specific result you are looking for.
but we are agree that the splash screen only appears when The app is loaded ? ok, support it is the case, but why when I try to export the pdf it gives this error :"An error occurred while generation the pdf" do thing it is because of the splash screen ?
"In my case, I am not encountering any errors similar to the ones you are experiencing in your application."
I have shared a demo using the same URL that you shared with me.
it is wierd, this is what I'm facinf :
any way I will try to understand this isssue thanks a lot for your time ser.
Hi @you asen ,
Can you please tell me which outsystems version you have used traditional or reactive?
Thanks,
Amit
I'm using a PWA