Body: <p>I need to adjust the line height on PDF when creating letters. I tried to modify</p>
  
  <pre><code>.cke_editable
  {
      font-size: 13px;
      line-height: 1.6em; &lt;- I tried 1em
  }
  </code></pre>
  
  <p>...in </p>
  
  <pre><code>/sites/all/modules/civicrm/packages/ckeditor/contents.css
  </code></pre>
  
  <p>My modification is visible in CKEditor but doesn't change anything on the generated PDF.</p>
  
  <p>What is the best approach to do this ? I'm using Drupal 7, CiviCRM 4.5.8 and CKEditor 4.</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>From @Flying comment, I noticed that CKEditor creates</p>
  
  <pre><code>&lt;span style="line-height:1.6em"&gt;...&lt;/span&gt;
  </code></pre>
  
  <p>...around all newly created paragraph (so each time I hit backspace). I can get rid of these span's by using "Remove Format" ("Tx" button).</p>
  
  <p>So I guess my question becomes "Why does CKE add span's around p's with inline css style ?"</p>
  
  <p>I found some useful resources, still need to check :</p>
  
  <p><a href="http://ckeditor.com/forums/CKEditor/ckeditor-4.01-inserting-span-elements-everywhere-with-a-line-height-of-1.6em" rel="nofollow">http://ckeditor.com/forums/CKEditor/ckeditor-4.01-inserting-span-elements-everywhere-with-a-line-height-of-1.6em</a></p>
  
  <p><a href="https://dev.ckeditor.com/ticket/9998" rel="nofollow">https://dev.ckeditor.com/ticket/9998</a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-11-26T07:56:04.507Z
Comments.Text: Have you tried to put the line-height tag inside the html-code of the PDF template? (PDF templates are using inline CSS, so you probably should use it on a div or something)
Comments.UserDisplayName: Flying
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-11-26T09:41:33.360Z
Comments.Text: @Flying Thanks for the lead, I edited my answer
Comments.UserDisplayName: Florian Motteau
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-11-26T11:08:17.900Z
Comments.Text: TinyMCE does not include those spans...
Comments.UserDisplayName: Flying
Tags: <pdf><message-templates><ckeditor>
Title: Modify line height in PDF
ThreadText: # Modify line height in PDF
  
  (Asked by: username_0 on 2015-10-23)
  
  I need to adjust the line height on PDF when creating letters. I tried to modify
  .cke_editable
  {
      font-size: 13px;
      line-height: 1.6em; <- I tried 1em
  }
  
  ...in 
  /sites/all/modules/civicrm/packages/ckeditor/contents.css
  
  My modification is visible in CKEditor but doesn't change anything on the generated PDF.
  What is the best approach to do this ? I'm using Drupal 7, CiviCRM 4.5.8 and CKEditor 4.
  Thanks
  EDIT
  From @username_1 comment, I noticed that CKEditor creates
  ...
  
  ...around all newly created paragraph (so each time I hit backspace). I can get rid of these span's by using "Remove Format" ("Tx" button).
  So I guess my question becomes "Why does CKE add span's around p's with inline css style ?"
  I found some useful resources, still need to check :
  http://ckeditor.com/forums/CKEditor/ckeditor-4.01-inserting-span-elements-everywhere-with-a-line-height-of-1.6em
  https://dev.ckeditor.com/ticket/9998
  
  **Tags:** pdf, message-templates, ckeditor
  
  > **Comments:**
  > **username_1**: Have you tried to put the line-height tag inside the html-code of the PDF template? (PDF templates are using inline CSS, so you probably should use it on a div or something)  
  > **username_0**: @username_1 Thanks for the lead, I edited my answer  
  > **username_1**: TinyMCE does not include those spans...  
  
  ---
  
  ## 0 answers
  
  