i am using pdf generator smo with url to generate pdf from another form using create pdf from url method but everytime it gives me pdf with login screen(not actual form data) in k2 cloud.
please help me on it, if anyone have idea.
Solved! Go to Solution.
K2's documentation on the PDF Converter SmartObject states the following:
"When running the PDF Converter executed as the Service Account, the PDF document will contain all data that the Service Account can see for the specific execution request. For Example: If Forms Authentication is set to true, the execution request will return a login screen, which will reflect in the PDF"
If you would like to avoid this scenario, you can try setting the forms to 'Anonymous Access.' This should by pass the login screen, and it shouldn't be captured by the PDF SmartObject.
Hope this helps.
Yes this is expected when you load the form on the server. So what you can do to achieve it please change the form anonymous form and try to create PDF this will not ask for login details.
Let me know if this works for you.
Yeah, it's a common issue. You can try another pdf converter and editor. I use https://www.picverse.com/ to edit my photos and then convert them into pdf. Any images converted to PDF format online, quickly and easily, without having to install any software.
JamesTheBest, but you're not able to use that as an SmO are you? How would you get the saved file in the rules?
BB33, just remember that an anon form in the cloud is accessible by anyone. For my anon forms I add a query string parameter like https://myname.onk2.com/Runtime/Runtime/Form/MyForm?ID=33
Then in a server side rule I use a stored proc to verify that the id=33. I don't put it in the rules of the form because it's possible to find them in the page. If the stored proc returns false I also hide all the views in the form so you only see a blank page. The downside is if someone can see the URL they can see the ID=33. Not sure if there is a better way to handle this.