- Posts: 97
- Karma: 2
- Thank you received: 3
- English support forums
- Design issues
- PDF: Save text (group description + text display questions) from survey as PDF?
PDF: Save text (group description + text display questions) from survey as PDF?
User should be able to save/download what is seen on screen as PDF file (must work with the most common browsers on PC, iOS, Android devices etc.) What is the most simple way? I don't need a lot of choices - I don't care if pagebreaks, page size, margins etc. are a little bit off. Don't need or want to store the PDF result on server and I don't need a solution that can email the PDF file. Also don't need header and footer (although it would be nice).
In my survey (not public yet), equations control what is seen on the screen (a combination of Group Description and Text Display Questions) - this combined text is shown before the end page and it would be nice to have a "Save as PDF" button on that page. Browsers "print as PDF" option isn't a good option (hyperlinks in text don't work etc. - each browser has its problems).
Have used so much time searching for a solution on/off through the years, but have never found a way to do this. I really hope someone can help!? Based on the amount of similar posts in this forum, it seems like many people request a good way to save survey text (only what is shown on the screen) as PDF.
Thank you so much for your help!
- Posts: 11270
- Karma: 412
- Thank you received: 2044
In my opinion :
Sweden wrote: … Don't need or want to store the PDF result on server and I don't need a solution that can email the PDF file. Also don't need header and footer (although it would be nice).…
Browsers "print as PDF" option isn't a good option (hyperlinks in text don't work etc. - each browser has its problems).
If you want to be like "What you see is what you print" browser print is the best solution.
If you want to have same print for all browser : then you need to construct the PDF yourself using PHP and a pdf library.
And yes : PHP developer is a real work, a real job …⋅
Note that optimizing the print CSS for proper print output for different browsers can be quite a pain but is still easier than using a PDF library and doing lots of PHP coding for generating the PDF which often also doesn't look well.
If you need help with your project feel free to drop us a note.
Could you please help me to guide some steps ?
How can build "Print overview" button and print out pdf directly with CSS ?
Where do we need to insert css code into ?
Many thanks for your help!
Then add some JS to call the print feature if the button gets clicked: www.thoughtco.com/how-to-add-a-print-button-4072006
Later you can edit the custom.css file to add special print css to optimize the formatting of the printed output (this can be tricky).: benfrain.com/create-print-styles-using-css3-media-queries/
I am newbie but I tried to do as your guide and I got good results with item 1 & 2.
item 1: Use HTML at the question or end text to create a proper button
item 2: Add some JS to call the print feature if the button gets clicked
Now, I am stranded with item 3: Edit the custom.css file to add special print css to optimize the formatting of the printed output...
Could you please help me to explain this item.
Many thanks for your guidance!
Note that CSS is a complex topic and for such special things you may need some experience or read and learn a lot. Alternatively, just contact us if you need a little paid support to fix certain details at the printout.