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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • PDF Letter Page Setup
Pages: 1 2 [3]

Author Topic: PDF Letter Page Setup  (Read 18855 times)

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: PDF Letter Page Setup
May 06, 2011, 03:24:11 pm
resga - Would be great if you could "pay it back" for the great contribution Marty has made by making sure this new feature in decently documented on the wiki once it's released! You can create a new page under this section:

http://wiki.civicrm.org/confluence/display/CRMDOC40/Configure
Protect your investment in CiviCRM by  becoming a Member!

resga

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 3
  • CiviCRM version: 3.4.2
  • CMS version: Drupal
  • MySQL version: 5.1.41
  • PHP version: 5.3
Re: PDF Letter Page Setup
May 08, 2011, 12:19:36 am
Sure Dave, I'll have a go at documenting it in the Wiki when Marty's feature is released!

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: PDF Letter Page Setup
May 14, 2011, 02:38:36 pm

this has now been committed and will be part of 3.4.2

Thanx for a great patch marty :)

resga: if you can document it on wiki, that would be great

petednz, theMusician and others: If u can QA this patch on demo that would be great :)

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

theMusician

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 3
  • CiviCRM version: 4.0 and 4.0.1
  • CMS version: Drupal 7.0
  • MySQL version: MySQL 5.x
  • PHP version: 5.2
Re: PDF Letter Page Setup
May 20, 2011, 04:27:36 pm
This is great. I'll try some QA on Monday. This really enhances the functionality of the PDF letter feature.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: PDF Letter Page Setup
May 22, 2011, 07:17:51 pm
Heads up that I did some QA on this Friday and found a few minor issues (neither of which are showstoppers IMO):
http://issues.civicrm.org/jira/browse/CRM-7981?focusedCommentId=36216&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_36216

Marty is going to take a look at those in the next few days.
Protect your investment in CiviCRM by  becoming a Member!

theMusician

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 3
  • CiviCRM version: 4.0 and 4.0.1
  • CMS version: Drupal 7.0
  • MySQL version: MySQL 5.x
  • PHP version: 5.2
Re: PDF Letter Page Setup
May 25, 2011, 03:40:31 pm
I tried the system out with a variety of margins and orientations.

It worked great for me. I really like how you can set it up and apply it to a template. It looks like Marty already jumped on Dave's observations as well. Go Civi Team!

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: PDF Letter Page Setup
June 01, 2011, 02:32:47 pm
From Dave Greenberg:
Quote
On a related note, I was imagining (incorrectly) that the patches also covered the Event Name Badge feature which has very similar requirements and currently has the various label specs hard-coded into PHP classes (see CRM_Event_Badge_Logo5395 for an example). Would be awesome if you had the time and inclination to convert that functionality as well to your new model!

I’ll take a look at adding configurable label support to the Name Badge feature.  I agree it makes tremendous sense to do so.  This might take a little work to get right, so I probably won’t get it done in time for 3.4.2.

I will also investigate adding the ability to select a PDF Page Format when generating PDF reports.  In the mean time, you can create a new PDF Page Format and set it as the default format.  The default format is used when creating PDF reports.

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: PDF Letter Page Setup
June 01, 2011, 10:10:21 pm
Marty - thanks for the tip about creating a PDF of a CiviReport.

One other area where CiviCRM generates a PDF:  When someone generates mailing labels after doing a search.


My list of everywhere in CiviCRM where the person can create a PDF:

1) the action for "Create PDF Letter"
2) the action for "Creating name badges" and/or table tents for event participants
3) the action for creating mailing labels
4) Clicking "PDF" on a CiviReport

I think numbers 1, 2, and 3 could all be combined into the single action called "Print"  or "Send to Printer". I never understood why 1,2, and 3 were all separate actions anyhow. 

Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

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: PDF Letter Page Setup
June 02, 2011, 08:49:11 am
Mailing Labels, along with PDF Letters, are now fully configurable in 3.4.2 and 4.0.2.  You can try it out in the sandbox.

As I mentioned, I'll look into adding support for name badges and CiviReport.

I think that creating letters, badges, and labels really are separate actions, even though they all produce a PDF output file.  They each have their own purpose and unique set of configurable options.  Burying them under a single action might also make it more difficult for the features to be discovered.

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
Re: PDF Letter Page Setup
December 12, 2011, 07:55:37 pm
Quote from: resga on May 06, 2011, 11:28:32 am
Great work on the margins feature, I can't wait for the next release!

I can set the left margin in PDF message templates to very close to the left side (-40pt) with <div style="margin: -30pt 54pt 54pt -40pt;>, but the top margin (-30pt) is ignored...

Agreed, great work.  But I am also not able to set the top margin to very close to the edge - it seems I can get no closer that 0.75" (the default) whether I try to set it absolute (e.g., top margin = 0.2) or relative (top margin = -0.5).  Is there something I'm missing here?

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: PDF Letter Page Setup
December 12, 2011, 11:01:01 pm
It looks like a newer version of the dompdf package that was introduced in CRM-8333 has caused the problem.  None of the PDF Format margins seem to be working as intended with the current version of dompdf.  When I restore back to the previous version of dompdf, the margin settings work fine.  I'll investigate and report back.

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
Re: PDF Letter Page Setup
December 13, 2011, 08:09:36 am
Thanks!  (Glad I wasn't going crazy)

BTW: I'm currently using v3.4.5 for this client.

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: PDF Letter Page Setup
December 13, 2011, 12:09:56 pm
I've opened a new issue for this (CRM-9340) where the fix is described.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: PDF Letter Page Setup
December 13, 2011, 12:32:25 pm
Thx Marty! Fix applied to 3.4 / 4.0 branch and will be part of upcoming 3.4.8 / 4.0.8 release (as well as 4.1).
Protect your investment in CiviCRM by  becoming a Member!

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
Re: PDF Letter Page Setup
December 13, 2011, 12:37:43 pm
Yes, Thanks, Marty!

The patch is working in my v3.4.5 install.

Pages: 1 2 [3]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • PDF Letter Page Setup

This forum was archived on 2017-11-26.