title: Auto-Expanding TextAreas on PDF Generated from Django Template
body: <p>I'm using pdfkit to generate a PDF of a Django template (doing this by getting an HTML string of the page from Django's <code>get_template</code> and <code>render</code> functions and passing that string to pdfkit... see <a href="https://stackoverflow.com/questions/45884654/generate-pdf-of-protected-django-webpage-with-attachments">post</a>).</p>
  
  <p>On this page, I have some TextArea's that can contain many lines of text, and by default, they just get cut off when generating the PDF.</p>
  
  <p>I've tried to fix this by using some javascript libraries (I've tried several) to automatically expand the TextAreas on page load.  I can get these to work perfectly on normal pages, but when I try to include it on the PDF template, I get various errors ranging from not working at all to expanding the TextArea way too much.  My first assumption was that there was some styling differences that were causing the issues, but I'm fairly certain I've ruled that out.  I tried to load the PDF template directly as a view, and the TextArea's resized correctly, leading me to believe that there's something with pdfkits generation that isn't playing nicely with the resizing.</p>
  
  <p>Given this, I tried to look if pdfkit has any suggestions for issues like this and couldn't find any, and I also tried to use different input types other than TextAreas, none of which were able to display newlines correctly.</p>
  
  <p>I can't think of any other potential solutions at this point, and I'm open to suggestions.  Please let me know if you feel I should provide additional information, and thank you in advance.</p>