Solved

PDF Generate issue using pdf converter

  • 20 March 2020
  • 4 replies
  • 59 views

Badge +7

hi,

 

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.


16411i2E96996A14892271.png
11686iE9F970358BC69E7B.png
15526i743A8169C9FA94D7.png

icon

Best answer by chruff1 21 March 2020, 03:54

View original

4 replies

Hello,


 


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"


 


https://help.k2.com/onlinehelp/K2Cloud/UserGuide/Update_11/default.htm#ServiceBrokers/PDFConverter/PDFConverter.htm


 


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.

Hello Bhushan,

 

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. 

 

 

 

Hey,

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.

 

Userlevel 3
Badge +5

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. 

Reply