eramge11 Posted June 19, 2015 Share Posted June 19, 2015 I have a problem with text. I have a report system that when you click on "print"- it will generate a PDF report that our employees can print the report. My problem is that if the report is too long it will shift the text to an entirely seperate page. It also looks like the text is in it's own box and the longer the report, the shortly the text will shrink to try and fit it all inside this box. Here is the code: <h4 class="title">REPORT NARRATIVE</h4> <table> <tr> <td><?php echo nl2br($StudentInfo->report_pdf);?></td> </tr> </table> Quote Link to comment Share on other sites More sharing options...
requinix Posted June 19, 2015 Share Posted June 19, 2015 Well, you are putting the text in a table. How about not doing that? Quote Link to comment Share on other sites More sharing options...
eramge11 Posted June 19, 2015 Author Share Posted June 19, 2015 (edited) Well, you are putting the text in a table. How about not doing that? I did that- worked! FACEPALM! Edited June 19, 2015 by eramge11 Quote Link to comment Share on other sites More sharing options...
eramge11 Posted June 19, 2015 Author Share Posted June 19, 2015 The wrapping of the text works, however, it is cutting off the first line of each new page. Quote Link to comment Share on other sites More sharing options...
requinix Posted June 19, 2015 Share Posted June 19, 2015 Sounds like a problem with margins. Any configurable options with the PDF converter? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.