Hot answers tagged

9 votes

Escaping quotes in ckeditor breaks smarty-syntax

Adding config.entities = false; to the ckeditor-config packages/ckeditor/config.js prevent ckeditor from escaping special characters. This avoids the issue with smarty-syntax. But I am not sure if ...
user avatar
  • 311
8 votes
Accepted

Could CiviCRM 4.5 or 4.6 make it easier to generate large numbers of PDFs at once?

Are you using the wkhtmltopdf option in CiviCRM: Administer CiviCRM >> System Settings >> Misc http://d46.demo.civicrm.org/civicrm/admin/setting/misc?reset=1 Its a local binary installation (needs ...
user avatar
  • 3,803
7 votes

Is it possible to export a newsletter to PDF

If you using CiviMail for sending newsletter than you can view the html snippet that was sent as a email body. To view the html you can go navigate to Mailings >> Scheduled and Send Mailing. Find the ...
user avatar
6 votes

Why I am getting a "?" in a PDF letters beside images?

When I have encountered this previously, I have found that it (oddly) enough is caused by extra space in the template code itself - have you tried, for example, removing all the spaces at the ...
user avatar
6 votes
Accepted

Contribution - Invoice Address layout is wrong. How to fix?

Initially i thought the address are rendered using format defined at Address Settings but i was wrong when i checked the message template. The message template is designed to use address format as ...
user avatar
6 votes
Accepted

How to change the encoding in pdf documents?

I don't think it's the encoding it seems that none of the included fonts in dompdf support it. See also https://stackoverflow.com/questions/16384517/dompdf-character-encoding-utf-8. If you look in the ...
user avatar
  • 18.3k
5 votes

PDF Generation Error

It might depend of the template layout you use or token or... plenty of reasons that the pdf generation can become slow. In general, if you want good performances for pdf generations, install ...
user avatar
  • 10.1k
5 votes

How do you print a single envelope for a contact?

Create a new envelope PDF format that corresponds to your printer's settings at Administer CiviCRM » Communications » Print Page (PDF) Formats Create a new mailing template from Mailings menu » ...
user avatar
5 votes
Accepted

Why I am getting a "?" in a PDF letters beside images?

CiviTeacher is right, there is extraneous character, totally unrelated to the image. I am able to consistently recreate the problem in this way: In WYSIWYG mode (CKEditor) Type "text 1", Enter Type "...
user avatar
5 votes
Accepted

Remove CiviCRM logo from Invoice pdf?

The invoice is generated based on the template "Contributions - Invoice". It contains a line to the logo ({$resourceBase}/i/civi99.png" height = "34px" width = "99px") that you would need to replace. ...
user avatar
  • 3,357
4 votes

How Can I Attach a PDF Certificate for a Membership Payment?

I don't think it's possible right now without coding. If you are not afraid of coding, what you could do is something like : add you membership certificate after the content of the receipt (in ...
user avatar
  • 2,311
4 votes
Accepted

How to automatically set PDF 'Activity Subject' from template subject?

Tracked this one down. It worked out of the box in 4.4.x, but doesn't in 4.5.x. Not sure whether it was deliberate, but it's pretty easy to 'fix'. Edit templates/CRM/Mailing/Form/InsertTokens.tpl and ...
user avatar
  • 1,960
4 votes
Accepted

HTML code for two-paged PDF

Try: <div style="page-break-before:always;"></div> Works for us, using wkhtmltopdf rather than the default.
user avatar
  • 1,960
4 votes

Address line blank in pdf letter

The issue isn't 100% clear because your formatting doesn't allow me to perfectly understand which tokens have a line break after them and which have a space - but I'm pretty sure I know what's going ...
user avatar
4 votes

Installing and Setting wkhtmltopdf Path In Civicrm

Download the compiled binaries for your system from http://wkhtmltopdf.org/downloads.html to your server and extract to somewhere convenient. The files need to be readable by the account running the ...
user avatar
  • 11.2k
4 votes

Error: No block-level parent found. Not good

That error is coming from dompdf, bundled with CiviCRM. Here are a couple of references to that error outside of CiviCRM: https://github.com/dompdf/dompdf/issues/902 https://github.com/barryvdh/...
user avatar
  • 6,101
4 votes
Accepted

Special Characters Become Question Marks "?" in PDF Printing

DOMPDF in CiviCRM have a trouble with special characters UTF-8. We have this same problem in Poland. I've create a repo with solution: https://github.com/ngo360/civicrm.dompdf.utf8 For apply this ...
user avatar
4 votes

Creating Event Participation Certificate in PDF

If you’re on Drupal then you can do this with Views Integration -> here is a tutorial with steps and screenshots on how to create a downloadable Hogwarts Certificate: How can Members download their ...
user avatar
3 votes
Accepted

Is there a way to prevent USPS address standardization from making addresses all caps in PDF letters?

The problem is that the standard is to have addresses all-caps, without punctuation, and with various standard abbreviations. Some clients have asked us if we could "fix" them in bulk to be mixed ...
user avatar
  • 7,357
3 votes

Print PDF Envelope for single contact

The only thing that comes to mind is to write an extension to do this. The only way to do it "out of the box" would be to utilize the Print PDF Letter option and utilize a template that would size to ...
user avatar
  • 1,411
3 votes
Accepted

Using <div> tag for pdf printing

I figured it out on my own. To print <div> on different pages, it needs to be positioned relative. So, I ended up putting all the existing <div> with position absolute into a <div> ...
user avatar
  • 2,231
3 votes

Automatic filing of pdf letter activity within civicase

You're right this is a bug. I've filed issue CRM-16596 with a PR to fix it in the next release (4.6.4).
user avatar
  • 16.2k
3 votes

Automatic filing of pdf letter activity within civicase

Go to Administer > CiviCase > Case Types and add "Print PDF Letter" as an allowed activity to your case type. You will then be able to create a PDF directly from the "Manage Case" screen.
user avatar
  • 16.2k
3 votes

Why I am getting a "?" in a PDF letters beside images?

Please try removing the space (coded %20) from the filename of the image, either by renaming it on the server or reuploading it.
user avatar
3 votes

Member Identification Card

Apologies. This is a Drupal answer and I know you are on Wordpress, but this ticket might attract drupal users too so thought I would outline the approach. There is a View you can download here which ...
user avatar
  • 27.2k
3 votes
Accepted

Mailing labels - print: "TCPDF ERROR: Some data has already been output, can't send PDF file"

I imagine the ideal solution would be to sniff out the reason there's content in the output buffer when there shouldn't be. That's not what I did. Knowing very little about PHP, I looked up functions ...
user avatar
  • 574
3 votes

Sending PDFs on event notifications and reciepts - disabling

Turns out that there is an additional setting on CiviContribute Component Settings that appears to override the Misc System Settings which only becomes apparent when you turn on tax/invoicing. (/...
user avatar
  • 1,685
3 votes
Accepted

Additional Fonts for TCPDF

Fonts for TCPDF are generated, and are located in civicrm/vendor/tecnickcom/tcpdf/fonts/ in a format like this: -rw-r--r-- 1 www-data www-data 1,9K Aug 9 14:44 robotoi.ctg.z -rw-r--r-- 1 www-data ...
user avatar
  • 491
3 votes
Accepted

Send PDF email through CiviRules

I ended up hardcoding it so it uses $contact['email'] instead of $params['to_email'] I am leaving it open for some time, if anybody has a better idea (or if I missed something obvious) UPDATE: The ...
user avatar
  • 867
3 votes
Accepted

How to use PDF API in production?

Do I gather correctly you want to do this in many cases? The easiest option would then be to use the CiviRules extension to send the PDF so you do not have to code. You could then set up something ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible