How to create the PDF dynamically and download for both Android & IOS

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hi,

I want to create a pdf dynamically for statement download where certain values are coming from the service response. I need to insert those values in the pdf and generate,download it. Applicable for both the platforms android & IOS.

what is the best way to implement this functionaity?

Thanks in advance!!

Hi @Dolly Vegv KS​

there is 2 Approaches

  1. You can use browser widget to generate pdf using third party library called JSPDF - https://parall.ax/products/jspdf - It will work for both android and iOS.

  1. you can write simple java programme to generate pdf file for given string as an FFI. Using FFI, you can integrate a Kony app with 3rd party libraries which can help to create and render a pdf document. You can send the string which you want to convert into a PDF to this library and it will create the required document and render it for you. ( If you choose FFI you need to write for Android and IOS separately.)