Team up with our RPA strategy and tech specialists for maximum automation impact

Find out more
Harness the power of UiPath in your business.

Save money and spend more time on priority work.

Book consultation

Let's choose, design and deploy a process automation solution for your business.

Find out more

Let's analyse your business to discover opportunities for innovation and automation.

Find out more

Begin your business transformation journey

Book consultation

Automate where it matters most. Scale to solve challenges in every area

Find out more

Equip people with user-friendly solutions that save time and make work easier

Find out more

Which business problem
can we solve first?

Book consultation
16 September 2016

How to generate a PDF file in K2 for a K2 SmartForm

Please note, before getting started, check-in the SmartForm will used to generate the PDF file for.
To generate a PDF file in K2 for a K2 SmartForm, follow the following steps –
1. Select the OOB SmartObject PDF Converter and execute ‘Create PDF From URL’.

K2 Automated Testing Software

BenchQA allows full test automation of K2, including fully automated K2 SmartForms and K2 Workflow testing. It promotes test driven development for K2 and ensures continued quality assurance for K2 solutions. Easily apply changes to test cases to accommodate changes to K2 apps and ensure all apps are regression tested to avoid defects and assure continuous quality.


Free K2 Five Upgrade Review

1 - PDF Converter K2 SmartObject

2. Provide the values for required properties and execute method

• URL String – provide the entire URL that you are attempting to access (https://k2.denallix.com/Runtime/Runtime/Form/Velocity ITBlogs.PDFUsingURL/)
• SmartObject Name – Provide the SMO System name used to create the PDF File (PDFFile)

2 - PDF SmartObject Properties

• SmartObject Method – Method name for Creating PDF File (Create)
• SmartObject File Property Name – Property name used for File in Create method (PDF)
• ID Property Name – Property name used for ID in Create method (ID)
• File Name – Provide any file name for PDF File
• Page Size – A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,ArchA,ArchB,ArchC,ArchD,ArchE,B0,B1,B2,B3,B4,B5,Flsa,HalfLetter,Ledger,Legal,Letter,11×7,Note
• Page Orientation – Portrait, Landscape
• URL Base – Provide base value of URL (https://k2.denallix.com)
• Conversion delay – Provide delay if required in seconds

3 - Execute the PDF K2 SmartObject

3. Use the load method of PDF SmartObject to load the PDF file using ID generated as Input value.

4 - Execute the PDF K2 SmartObject

5 - Load the PDF

4. Finally, the PDF file will be generated

6 - Load the PDF

Troubleshooting notes –

1. If you are getting a blank PDF, then it could be due to authentication issue i.e. the K2 service account is not able to access the form. In this case, go to the advance properties of form and set the anonymous access to true and try again.

7 - Troubleshooting

2. Always check-in the SmartForm used for generating PDF, as it always uses the latest on server not the local one.

Need further technical advice or support?