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) »
  • 5160 Mailing labels alignment problem
Pages: [1]

Author Topic: 5160 Mailing labels alignment problem  (Read 3850 times)

renee

  • Guest
5160 Mailing labels alignment problem
December 18, 2008, 02:43:09 pm
When I try to make 5160 mailing labels, the PDF file that opens does not have the correct alignment.  The addresses are not centered on the page - closer to the bottom - and thus do not work at all when printed.

I am using CiviCRM 2.0.2.  I had this problem with previous versions as well.  I have the same problem in the demo.  Using Firefox on Windows.

As suggested in a previous thread, I am using the "none" option under "page scaling options" when printing.  The addresses are clearly misaligned in the pdf itself, not a printing problem. 

I posted this issue months ago and someone pointed me to that same thread (http://forum.civicrm.org/index.php/topic,3560.0.html) which is not my problem!  I'm fairly certain that in that case, it was a problem with the printing, whereas in my case, it is a problem in the creation of the pdf itself.  I would attach an example file but they are too big.  If you try it on the demo you will see. 

Any help appreciated.  Thank you.

Tonyf

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: 5160 Mailing labels alignment problem
December 20, 2008, 01:54:33 am
Renee, I'm using CiviCRM 2.1.2, so I can't really check, but I found a coding error in the specifications for the top margin for mailing label L7161  ('tmargin' => 9 should be 'tMargin' => 9)  in CRM/Utils/PDF/label.php line 89.  You might like to check whether your version has an error of the same sort.

If you wanted to create a new label definition, you need to create the new definition there in that file, and then reference it in CRM/Contact/Form/Task/Label.php.

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: 5160 Mailing labels alignment problem
December 20, 2008, 05:36:26 am
i've fixed the typo for L7161. I will be part of v2.1.5

thanx for reporting it :)

lobo
« Last Edit: December 20, 2008, 05:55:52 am by Kurund Jalmi »
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

renee

  • Guest
Re: 5160 Mailing labels alignment problem
December 22, 2008, 10:47:01 am
Thanks!

markm

  • Guest
Re: 5160 Mailing labels alignment problem
January 08, 2009, 04:09:20 pm
Renee, I also had the same problem with 5160 labels.

Although there doesn't appear to be any typos as mentioned above (tMargin, etc), some of the actual values in label.php appear to be incorrect.

I updated the 5160 entry in label.php (lines 61-64), and the labels are printing correctly now.

Code: [Select]
               '5160' => array('name' => '5160', 'paper-size' => 'letter', 'metric' => 'mm',
                               'lMargin' => 4.7625, 'tMargin' => 12.7, 'NX' => 3, 'NY' => 10,
                               'SpaceX' => 3.96875, 'SpaceY' => 0, 'width' => 65.875, 'height' => 25.4,
                               'font-size' => 8),

Hope this helps!



neuromusic

  • Guest
Re: 5160 Mailing labels alignment problem
January 26, 2009, 08:51:44 am
Thanks for the updated specs Mark!

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: 5160 Mailing labels alignment problem
January 26, 2009, 09:51:36 am

i've integrated these changes for 2.2. will be part of the next alpha4

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) »
  • 5160 Mailing labels alignment problem

This forum was archived on 2017-11-26.