savagenoob Posted June 14, 2009 Share Posted June 14, 2009 OK, I amaze myself of how I cant accomplish very simple tasks sometimes, but I am actually trying to create a doc using ezpdf but cannot get any newlines to work. First, I tried heredoc format, but it did not recognize \n and prints to one line. Then just a normal string to variable like $text4 = "1. The parties to this agreement are {$name} (CLIENT) AND {$text1}, California \n"; [\PHP] and still PHP will not go to the next line when printed...I even created a blank page and just did this basic line and printed, still one line... Im frusterated... any suggestions? Link to comment https://forums.phpfreaks.com/topic/162185-solved-newline-not-working-and-heredoc-question/ Share on other sites More sharing options...
savagenoob Posted June 14, 2009 Author Share Posted June 14, 2009 OK, I figured out that you have to use <br> to get a new line... does anyone know how to get a newline in a heredoc statement? Link to comment https://forums.phpfreaks.com/topic/162185-solved-newline-not-working-and-heredoc-question/#findComment-855897 Share on other sites More sharing options...
savagenoob Posted June 15, 2009 Author Share Posted June 15, 2009 Nevermind, got the heredoc to work which is convenient, need to use ezText instead of addText for it to recognize \n and heredoc formatting.... Link to comment https://forums.phpfreaks.com/topic/162185-solved-newline-not-working-and-heredoc-question/#findComment-855901 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.