10
votes
Escaping quotes in ckeditor breaks smarty-syntax
Go to Administer menu » Customize Data and Screens » Display Preferences, click the Configure CKEditor button and add entities = false in the advanced options (see screenshot).
Note: This is the ...
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 ...
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 ...
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
...
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.
...
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. ...
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 ...
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 ...
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.
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/...
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 ...
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 ...
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 ...
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 ...
3
votes
Removing Carriage returns after a blank address field?
Try to use as below which does the job
<div>{contact.addressee}</div>
<div>{contact.street_address}</div>
<div>{contact.supplemental_address_1}</div>
<div>{...
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 ...
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.
(/...
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 ...
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 ...
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 ...
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 ...
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.
2
votes
How can I adjust the fonts and layout of PDF reports?
The PDF generator uses the HTML to create the PDF. So changing CSS will have effect. But.. to have a different font in the PDF, the font should be available on the server. If the font is not available ...
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}
{...
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 ;)
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 ...
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.
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....
2
votes
Accepted
Is there a letter preview w/o activity generation
This is a new feature in 4.7 which is undergoing beta testing at the moment.
In the meantime, as a work around I choose myself as the initial target for a new pdf letter and generate as many letters ...
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
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pdf × 92printing × 8
message-templates × 7
invoice × 7
wordpress × 6
email × 6
civicontribute × 5
civimail × 5
civievent × 4
drupal × 4
mailing × 4
receipts × 4
smarty × 4
address-labels × 4
civimember × 3
civireport × 3
upgrade × 3
tokens × 3
templates × 3
dompdf × 3
custom-fields × 2
joomla × 2
civicase × 2
civirules × 2
dashboard × 2