Hi,
I have a problem regarding PDF preview, i don’t want the pdf preview to be on the kintone forms itself but i wanted it to be on another page.
Detailed Explanation:
- I created a plugin that will get the record on the current view
- That plugin inserts a button to the form, the button is called “Print”
- What I wanted to print is the data from the current form
- That print button should have a function that will redirect me to another page
- That PDF preview page should have the record from the form I am currently in.
This plugin is like RepotoneU PDF plugin but instead of attachment field being the one giving the template for the report or the pdf preview I wanted it to be from scratch and I just wanted to pass the data from the record
I have tried creating another html file from the html folder of my plugin but I can’t seem to call the html file from my javascript file. I’ve tried using jspdf.js but this library needs an html file in order to generate the required pdf and it auto downloads the html to pdf. what I wanted is a preview first of the pdf and create the design from scratch.
If there is a way that I can use this library then it would be better for the development of our project, but if not then is there a solution for this?