Closed (outdated)
Project:
Mailing Label
Version:
6.x-1.1-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2009 at 22:27 UTC
Updated:
28 Mar 2026 at 11:45 UTC
Jump to comment: Most recent
Comments
Comment #1
darrellduane commentedComment #2
letapjar commentedThe problem is that the pdf file is not generated by anything that parses HTML or CSS.
Rearranging field order with css is probably not feasible. As far as changing font sizes and making things bold go - this would require that you override the default display settings and would require some modifications to the plugin display attachment as well as the ufpdf file.
We would need a way to catch the bold/italics/underline properties and then use appropriate font substitutions. The font would have to be defined correctly in the first place so that bold, italics etc existed.
Also, we would need some way to check that the selected formatting does not make the label text larger than the selected label.
Seems like a lot of effort just to get a prettier label.
How many people actually need this? And what is the use case where the mopdule is not useful without this feature?
Comment #3
richardtmorgan commentedThe issue with characters is solved here: http://drupal.org/node/604434
While you're at solving that by modifying the mailing_label.module file, it is also possible to specify the font differently if desired (I wanted labels printing with just the name, so I wanted a bigger font-size) - the call to
$pdf->SetFont('DejaVu Sans');can be given a style parameter as its second parameter, and a size (in points) parameter as the third. So for my name labels I altered this to$pdf->SetFont('DejaVu Sans', '', 18);- or you can just alter this in the label definition in the mailing_label-ufpdf.php file.Comment #4
kristen polThis is useful in order to extend the mailing_label module to name badges/tags. I need to create name tags for a client. They also needed mailing labels so I started with this module which was great. But I was hoping to leverage this module to do the name tags too. I'm not sure how easy it would be to make a generic way to handle changing font size/style for each views field. I'm currently having trouble just getting a new line but I haven't tried added the chr() code above yet. Most likely I will end up copying the mailing_label module and modifying it for this particular client but if I end up doing a more generic solution then I will post back a patch.
Kristen
Comment #5
richardtmorgan commentedKristen,
I made a version of this module with an administration interface which allows you to set the font size for a particular label type:
http://drupal.org/node/638546#comment-2856822
This allows us to use a small font for mailing labels and a much bigger font for name labels. If that's all you want, this might do it for you?
Comment #6
bluegeek9 commented