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) »
  • Printing Letters
Pages: [1]

Author Topic: Printing Letters  (Read 1493 times)

elliottm346

  • Guest
Printing Letters
May 03, 2010, 05:49:48 pm
Hi All,

I'm having some troubles producing printed letters off of the CiviCRM system.  Tokens and CRM integration are great but the letters are produced in legal paper size. Do you know how I can change that to be standard 8 1/2 x 11?

Thanks,

Marc

kdas

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
Re: Printing Letters
June 12, 2010, 12:49:12 pm
I am having similar issue with 3.1.3. When I open the generated PDF file and set size to 100% in Adobe Acrobat, I see the size 11.69x16.54 in. I would like to see as 8.5 x 11 inch.

While I was writing this message, I tried the following that seems to work. Nice to add in the base code if this work for others.

sites\all\modules\civicrm\CRM\Contact\Form\Task:
In PDFLetterCommon.php:

OLD:
CRM_Utils_PDF_Utils::html2pdf( $html, "CiviLetter.pdf", 'portrait' );

NEW:
CRM_Utils_PDF_Utils::html2pdf( $html, "CiviLetter.pdf", 'portrait', 'letter' );

Hope this helps.
kdas


Marty

  • I post occasionally
  • **
  • Posts: 67
  • Karma: 14
    • Boulder County Arts Alliance
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.37
  • PHP version: 5.4.27
Re: Printing Letters
July 17, 2010, 09:30:58 pm
I would also like to have letter size paper as the default.

See http://issues.civicrm.org/jira/browse/CRM-6502

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Printing Letters
July 20, 2010, 04:05:30 pm
Although I have never run into any issues with legal size paper, my letter was just one page & all my efforts used letter with no problem, I did write some documentation recently.  check: http://forum.civicrm.org/index.php/topic,14588.0.html
« Last Edit: July 20, 2010, 05:10:54 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Printing Letters
July 21, 2010, 02:38:37 am
Letter size wouldn't be the default for many countries - obviously whatever it is, ideally the UI would let admins set their own default size.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

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: Printing Letters
July 21, 2010, 03:03:09 am

we've changed this to 'letter' for the 3.2 release

would be a good contribution to the code base to make this more flexible and allow folks to change this sitewide via the admin UI

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Printing Letters

This forum was archived on 2017-11-26.