Hi, I am using the SelectPDF plugin to generate PDFs from a page and it works great…except when the PDF generates you can see the button you click to start the workflow to generate the PDF
I have tried adding a pause before the workflow moves to the next step of generating the pdf from the page, but no luck.
I have also tried setting a state that makes the button the same colour as the background to “hide” it, but again no luck.
Has anyone had this issue? Or am I missing something?
Thanks in advance for any help!
Adding a pause only applies to browser actions
It does not add a pause to server actions
A hack you can use is to initiate the generation of the PDF by a logo, image or icon that you might have on the page … instead of a “print pdf button”.
2 Likes
Thanks for the response, I had thought of using a logo/image/icon which does work but isn’t very elegant as it’s not intuitive for the user to know to do that. I did go one step further on this hack and add a script in the page header to remind the user to click the picture to generate, which is a easy way around it
That said, I have solved my problem which I think was caused by my lack of understanding about the best way to use the plugin. I thought the page that was going to be printed need to be seen on the screen, but it doesn’t, it can be run in the workflow.
I had built the page I wanted generated as a PDF for the user to preview the page before they printed it and they then initiated the workflow by clicking a button. So the workflow essentially went Create Page> Users Previews Page> PDF Generated by button press> View PDF of Page.
I have now separated out the process so the user previews the page in a pop up and when they happy with that page they click a button which set offs the work flow which creates the PDF. Workflow is now Preview in Pop Up>Button press>Hide Pop Up Element>Create PDF from Page>View PDF
1 Like
Hey there!
Im not sure what kind of date your are printing but one option you could use is to create a seperate page with the content you want to print without the button. And then simply in the print workflow, select the “print page”.
If the data you are printing is user, you can always send data to the group via the workflow before printing. (Display Data in Group)