Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Print Preview straight to PDF

Print Preview straight to PDF 2 years 11 months ago #99041

I am looking to make the user-experience a little different for our surveys. In short, I want to pull the PDF up instead of a "Print Preview". Is it possible to this?
  1. User goes through the survey
  2. User arrives at final pages and selects "Print Answers"
  3. User sees final PDF not print-print preview

Any ideas would be great, thanks so much!
The administrator has disabled public write access.

Print Preview straight to PDF 2 years 5 months ago #104988

  • Nana111
  • Nana111's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hi there
Your problem seems a little bit complicated.I'd like to suggest you add one of the pdf processing tool to help you out.There are many third party tool for pdf processing.Maybe that would be more convenient.
The administrator has disabled public write access.

Print Preview straight to PDF 2 years 5 months ago #105638

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9293
  • Thank you received: 1327
  • Karma: 384
Quick javascript

$(document).ready(function(){
$('#print').click();
})

Not sure for the id of the print in pdf button, need to look at html code.

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Print Preview straight to PDF 2 years 5 months ago #105639

  • fransmarcelissen
  • fransmarcelissen's Avatar
  • Offline
  • Gold Lime
  • Posts: 241
  • Thank you received: 53
  • Karma: 13
The way I do it is that I generate a report using R and odfWeave. If you need only pdf you can also use R and sweave. This is not a solution that you do in five minuts, but it is a good structural solution.
The administrator has disabled public write access.

Print Preview straight to PDF 2 years 2 months ago #108147

  • ouku
  • ouku's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
DenisChenu wrote:
Quick javascript

$(document).ready(function(){
$('#print').click();
})

Not sure for the id of the print in pdf button, need to look at html code.

Denis
Just tried and works for the PDF.




_______________
pdf to flash
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.221 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form