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 ...
Pradeep Nayak's user avatar
7 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 ...
Demerit's user avatar
  • 22.9k
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 ...
Pradeep Nayak's 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. ...
Fabian's user avatar
  • 3,557
5 votes
Accepted

How to download SearchDisplay results as a PDF via API4

you need to specify --user parameter in the cv API call otherwise the fetch will be treated as anonymous user and will return blank results if the results don't have access to an anonymous user. ...
Pradeep Nayak's user avatar
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/...
Alan Dixon's user avatar
  • 6,841
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 ...
Aidan's user avatar
  • 13.5k
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 ...
Marcin Lewandowski's user avatar
4 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 ...
ErikH - CiviCooP's 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 ...
KarinG - Semper IT's user avatar
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. (/...
Luke Stewart's user avatar
  • 1,855
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 ...
Marko's user avatar
  • 877
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 ...
Phil_B's user avatar
  • 501
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 ...
Prónay's user avatar
  • 604
3 votes

Is there a way NOT to email if a report with no result

As suggested by Demerit you can use alterMailParams to abort the email if the report has 0 rows. It will work on simple use case but would be difficult or need to add more logic you passing any ...
Pradeep Nayak's user avatar
3 votes

How to use PDF API in production?

Based on Erik's help, this is how I've dealt with my need: When a new membership is manually checked and validated (for some legal issue), the team in charge of this task adds the member to a ...
Guillaume Sorel's user avatar
3 votes

"Make Mailing Labels" not working for Bosnia language

It's because it's using Helvetica font which doesn't have unicode characters - if you can use Deja Vu Sans or another font that has unicode it should work. IGNORE rest of answer below. As per ...
Demerit's user avatar
  • 22.9k
2 votes

Installing and Setting wkhtmltopdf Path In Civicrm

Check this out: Could CiviCRM 4.5 or 4.6 make it easier to generate large numbers of PDFs at once? I came across that by googling wkhtmltopdf civicrm by the way ;)
JohnFF's user avatar
  • 2,343
2 votes
Accepted

Version 4.7.3: TCPDF package seems to be missing

In 4.7.3 the TCPDF package was moved to civicrm/vendor/tecnickcom from civicrm//packages/tcpdf. I just tested on a WP 4.5.2 and CiviCRM 4.7.8 install and was able to create mailing labels. Can you ...
Kevin Cristiano's user avatar
2 votes

Address line blank in pdf letter

Check your template html and ensure you are using <p> not <BR> tags to end the lines
petednz - fuzion's user avatar
  • 28.3k
2 votes
Accepted

Displaying Transaction Id in Thank you letter

This is a known bug and is documented and fixed at CRM-21690. You will need to apply the patch to fix the problem or will need to wait for 4.7.30 release.
Pradeep Nayak's user avatar
2 votes

Error: No block-level parent found. Not good

If you’re running out of memory, as per the comment in the other answer, apply this patch to dompdf (a project external to CiviCRM which you’ll find in the CiviCRM vendor directory). https://github....
KarinG - Semper IT's user avatar
2 votes

Escaping quotes in ckeditor breaks smarty-syntax

A much simpler solution is to keep the portion of your smarty code that has quotes into HTML comments, so that the quotes won't be escaped: <!-- {capture assign=genre}{contact.gender}{/capture} {...
Olivier Schopfer's user avatar
2 votes

How can I adjust the fonts and layout of PDF reports?

Did you look at print.css? It is in the civicrm/css folder.
Karen-Ann's user avatar
  • 406
2 votes

Convert Submitted CiviCrm Membership Form to PDF

CiviCRM sends a email with PDF attached to it. It has all the data that a membership form has. This email is send to member but you can add CC or BCC in contribution page settings under Thanking-you ...
Pradeep Nayak's user avatar
2 votes

Error printing event badges after sorting by participant name

I confirmed that this is caused by having a name badge layout with a spacer field and sorting the participants by name prior to generating name badges. My work-around for now is to instead of using a ...
Larry K.'s user avatar
  • 327
2 votes

How Do I Get a CiviCRM Report to be an attachment in a schedule job to email to a colleague?

One of the scheduled job parameters is "format". See https://docs.civicrm.org/user/en/latest/initial-set-up/scheduled-jobs/#job_mail_report
Demerit's user avatar
  • 22.9k
2 votes

Is there a way NOT to email if a report with no result

If it were CSV you could use hook_civicrm_alterMailParams and just check the attachment and if it has 0 rows then set $params['abortMailSend'] = TRUE; to stop it sending. For PDF I guess you could do ...
Demerit's user avatar
  • 22.9k
2 votes

How to attach a .pdf certificate to an email?

How about saving yet more steps and make it a self-service: i.e. allowing Members to download their own PDF Certificate? I've detailed all the steps on how to do that with Drupal Views in this post: ...
KarinG - Semper IT's user avatar
2 votes

Error printing to pdf

Based on replies here this is the solution. Hosting support assured me: Package alt-php72-xml-7.2.20-2.el6.x86_64 already installed and latest version Then I enabled wordpress debugging, and found ...
P a u l's user avatar
  • 752

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