CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • "Print PDF Document" to generate one file per contact?
Pages: [1]

Author Topic: "Print PDF Document" to generate one file per contact?  (Read 519 times)

Carl Sigmond

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.3.7
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.61
  • PHP version: 5.3.3-7+squeeze8
"Print PDF Document" to generate one file per contact?
October 18, 2013, 02:43:02 pm
We are a school, and we need to send our students' midterm reports to their parents. In the past, we have sent the reports by mail, using "Print PDF Document" from an advanced search to generate them. Now, we want to email the reports to the parents as attached PDFs. Ideally, we would love to do this from within CiviCRM, but given our short timeframe and the complexities involved (the midterm reports are attached to the students' records, not the parents', etc.), we are going to manually send emails to each set of parents.

The question: "Print PDF Document" generates one single file that contains multiple letters (midterm reports, in this case). Is there a way to generate each PDF separately, so that we can easily attach them to our emails?

Thanks!
Carl Sigmond
Media and Technology Intern
The Woolman Semester
woolman.org

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: "Print PDF Document" to generate one file per contact?
October 20, 2013, 08:34:09 am

for my kids school, i basically exposed the PDF report cards as a downloadable entity. This avoids sending it as an attachment. Parents have access to the school website via a login etc

You should be able to generate a pdf document for each student, but a small snippet of php and iterating through the pdf library code for each student (to get a different file)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: "Print PDF Document" to generate one file per contact?
October 20, 2013, 11:14:49 am
Hmm... I wonder if you could send out the email to the students but cc the parents.
When Civi sends a cc - whose tokens does it use? The cc'd contact or the original contact?
Try asking your question on the new CiviCRM help site.

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: "Print PDF Document" to generate one file per contact?
October 20, 2013, 04:59:44 pm
I would be interested to hear how this goes. 

Last year I was looking for a 'no-coding' solution for downloadable personalised attendance certificates and was experimenting with https://drupal.org/project/webform2pdf but then priorities changed.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • "Print PDF Document" to generate one file per contact?

This forum was archived on 2017-11-26.