Answers.Body: <p>Josh - By the look of the invoice, it seems the width isn't adjusted correctly in your pdf file. Civi normally assigns width statically to the table added in the message templates. So my first attempt would be to either remove the width attribute from the <code>&lt;table&gt;</code> element and test the pdf receipts OR modify the width in the table tag to some other value and see if the issue gets fixed. </p>
  
  <p>Eg. the event online receipt template seems to be adding the table as -</p>
  
  <pre><code>&lt;table width="700" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;"&gt;
  </code></pre>
  
  <p>Check by removing the <code>width</code> attribute from the above line and see if the pdf content is correctly adjusted in the document.</p>
  
  <p>Note that the width you change in the table element also reflects in the email received to the users. So better to first check this in a dev environment.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-04T22:59:47.633Z
Answers.Text: thank you! Changing it to a different number did the trick. For anyone who comes across this in the future, the code to adjust table width is found in /civicrm/admin/messageTemplates?reset=1 -> System Workflow Messages -> Events - Registration Confirmation and Receipt (on-line).
Answers.UserDisplayName: josh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-05T02:45:31.473Z
Answers.Text: cool - you may also see changes in your receipt email too. If you just want to limit it for pdf attachment - you can specify the removal of the width attribute in extension by writing a hook - https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterMailContent/ might help you with the same.
Answers.UserDisplayName: jitendra - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-04T10:49:16.323Z
Answers.LastActivityDate: 2018-12-04T10:49:16.323Z
Answers.UserDisplayName: jitendra - fuzion
Answers.Body: <p>I've often found good luck by switching to <code>wkhtmltopdf</code>.  It's written in a coding language that makes it tough to distribute directly with CiviCRM, but takes a few minutes for someone who knows what they're doing to install.  Someone <a href="https://civicrm.stackexchange.com/questions/10879/installing-and-setting-wkhtmltopdf-path-in-civicrm">posted wkhtmltopdf instructions here</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-04T07:32:45.870Z
Answers.LastActivityDate: 2018-12-04T07:32:45.870Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>We've recently started using CiviCRM and CiviEvent but have found that the confirmation PDFs attached to confirmation emails are cutting off text and not appearing properly. </p>
  
  <p>This is what they look like when I download the confirmation PDF that CiviEvent automatically generates.</p>
  
  <p><a href="https://i.sstatic.net/LtDu1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/LtDu1.png" alt="page 1 of confirmation email"></a>
  <a href="https://i.sstatic.net/I90yP.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/I90yP.png" alt="page 2 of confirmation email"></a></p>
  
  <p>Can anyone please advise how we can fix this?</p>
  
  <p>Cheers</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-04T04:38:44.183Z
Comments.Text: Hi Josh - welcome to CiviCRM on StackExchange. It could be that your PDF settings are for a different paper size than the one you are using which you could verify at /civicrm/admin/pdfFormats?reset=1
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-04T05:11:40.837Z
Comments.Text: @petednz-fuzion thanks for your reply! I tried this before - originally there were no PDF settings saved, and then I input new settings with the "letter" paper size (checking the dimensions were correct). Tried registering again but the new confirmation PDF still came through the same as before.
Comments.UserDisplayName: josh
Tags: <civievent><email><pdf><confirmation>
Title: CiviEvent Confirmation Emails: Cutting off content
ThreadText: # CiviEvent Confirmation Emails: Cutting off content
  
  (Asked by: username_0 on 2018-12-04)
  
  We've recently started using CiviCRM and CiviEvent but have found that the confirmation PDFs attached to confirmation emails are cutting off text and not appearing properly.
  
  This is what they look like when I download the confirmation PDF that CiviEvent automatically generates.
  
  [![page 1 of confirmation email](https://i.sstatic.net/LtDu1.png)](https://i.sstatic.net/LtDu1.png)
  [![page 2 of confirmation email](https://i.sstatic.net/I90yP.png)](https://i.sstatic.net/I90yP.png)
  
  Can anyone please advise how we can fix this?
  
  Cheers
  
  **Tags:** civievent, email, pdf, confirmation
  
  > **Comments:**
  > **username_1**: Hi username_0 - welcome to CiviCRM on StackExchange. It could be that your PDF settings are for a different paper size than the one you are using which you could verify at /civicrm/admin/pdfFormats?reset=1  
  > **username_0**: @username_1 thanks for your reply! I tried this before - originally there were no PDF settings saved, and then I input new settings with the "letter" paper size (checking the dimensions were correct). Tried registering again but the new confirmation PDF still came through the same as before.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2018-12-04. Score: 1 | Accepted answer
  
  username_0 - By the look of the invoice, it seems the width isn't adjusted correctly in your pdf file. Civi normally assigns width statically to the table added in the message templates. So my first attempt would be to either remove the width attribute from the `<table>` element and test the pdf receipts OR modify the width in the table tag to some other value and see if the issue gets fixed.
  
  Eg. the event online receipt template seems to be adding the table as -
  
  ```
  <table width="700" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
  
  ```
  
  Check by removing the `width` attribute from the above line and see if the pdf content is correctly adjusted in the document.
  
  Note that the width you change in the table element also reflects in the email received to the users. So better to first check this in a dev environment.
  
  > **Comments:**
  > **username_0**: thank you! Changing it to a different number did the trick. For anyone who comes across this in the future, the code to adjust table width is found in /civicrm/admin/messageTemplates?reset=1 -> System Workflow Messages -> Events - Registration Confirmation and Receipt (on-line).  
  > **username_2**: cool - you may also see changes in your receipt email too. If you just want to limit it for pdf attachment - you can specify the removal of the width attribute in extension by writing a hook - https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterMailContent/ might help you with the same.  
  
  ---
  
  ### Answer by username_3 on 2018-12-04. Score: 1
  
  I've often found good luck by switching to `wkhtmltopdf`. It's written in a coding language that makes it tough to distribute directly with CiviCRM, but takes a few minutes for someone who knows what they're doing to install. Someone [posted wkhtmltopdf instructions here](https://civicrm.stackexchange.com/questions/10879/installing-and-setting-wkhtmltopdf-path-in-civicrm).
  
  
  ---
  
  