<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Add page break to PDF template?</title><link>https://sugarclub.sugarcrm.com/explore/help-forums/enterprise-professional/f/enterprise-professional-questions/2554/add-page-break-to-pdf-template</link><description>Is there a way to add a page break to a PDF template?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Add page break to PDF template?</title><link>https://sugarclub.sugarcrm.com/thread/14253?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 15:35:10 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:d3ac1211-d94f-4061-8cb4-673ca2404a7e</guid><dc:creator>Howard Jennings</dc:creator><description>&lt;p&gt;I have &amp;#39;On demand&amp;#39; instance. Is there any solution for on demand?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add page break to PDF template?</title><link>https://sugarclub.sugarcrm.com/thread/14252?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2017 05:59:24 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:504268eb-44da-4bae-aa83-3d23122dd6f8</guid><dc:creator>Sugarcrm Master</dc:creator><description>&lt;p style="color:#000000;background-color:#ffffff;border:0px;"&gt;Hi&amp;nbsp;&amp;lt;br pagebreak=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;is not working in Pdf Template&lt;/p&gt;&lt;p style="color:#000000;background-color:#ffffff;border:0px;"&gt;I want notes to print on next page in pdf quote&amp;nbsp;&lt;/p&gt;&lt;p style="color:#000000;background-color:#ffffff;border:0px;"&gt;when i insert&amp;nbsp;&amp;lt;br pagebreak=&amp;quot;true&amp;quot;/&amp;gt; in Pdf Manager template&lt;/p&gt;&lt;p style="color:#000000;background-color:#ffffff;border:0px;"&gt;after save&amp;nbsp;&amp;lt;br pagebreak=&amp;quot;true&amp;quot;/&amp;gt; get removed in Pdf templete&amp;nbsp;&lt;/p&gt;&lt;p style="color:#000000;background-color:#ffffff;border:0px;"&gt;Anybody can me suggest tag for page break in Sugarcrm 7.8&lt;/p&gt;&lt;p style="color:#000000;background-color:#ffffff;border:0px;"&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add page break to PDF template?</title><link>https://sugarclub.sugarcrm.com/thread/14245?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2017 05:58:58 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:172471b0-27b9-445b-b97a-3d12e908ef54</guid><dc:creator>Sugarcrm Master</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;lt;br pagebreak=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;is not working in Pdf Template&lt;/p&gt;&lt;p&gt;I want notes to print on next page in pdf quote&amp;nbsp;&lt;/p&gt;&lt;p&gt;when i insert&amp;nbsp;&amp;lt;br pagebreak=&amp;quot;true&amp;quot;/&amp;gt; in Pdf Manager template&lt;/p&gt;&lt;p&gt;after save&amp;nbsp;&amp;lt;br pagebreak=&amp;quot;true&amp;quot;/&amp;gt; get removed in Pdf templete&amp;nbsp;&lt;/p&gt;&lt;p&gt;Anybody can me suggest tag for page break in Sugarcrm 7.8&lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add page break to PDF template?</title><link>https://sugarclub.sugarcrm.com/thread/14251?ContentTypeID=1</link><pubDate>Fri, 13 May 2016 20:32:25 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:b5778c77-4e8c-42e9-9fc5-4b17be36e71c</guid><dc:creator>Robert Cardoze</dc:creator><description>&lt;p&gt;Has anyone found that by making this fix, it no longer works once you upgrade to 7.7? &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add page break to PDF template?</title><link>https://sugarclub.sugarcrm.com/thread/14250?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2015 22:14:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:f5d7b547-3f1b-4ce5-9858-19f63bf27bb5</guid><dc:creator>Robert Cardoze</dc:creator><description>&lt;span&gt;Note: Once you upgrade to a newer version of TCPDF from the stock one shipped in SugarPDF, you will no longer be able to use PNG images. JPEG will work. In version 5.9 it will give you an error, in 6+ it will print the PDF, but without the images.&amp;nbsp;&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add page break to PDF template?</title><link>https://sugarclub.sugarcrm.com/thread/14249?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2015 17:24:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:ad0c7196-d88d-4d9c-acee-d8267c7c61ae</guid><dc:creator>Shoaib Fazal</dc:creator><description>&lt;span&gt;Hi,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;I am using ondemand instance and I can&amp;#39;t update the core files of SugarCRM. Can you provide any other solution? I have tried all possible methods but can&amp;#39;t get it to work.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Shoaib&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add page break to PDF template?</title><link>https://sugarclub.sugarcrm.com/thread/14248?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 22:53:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:0e90840a-0022-499c-9fbf-01b2674698d9</guid><dc:creator>Robert Cardoze</dc:creator><description>&lt;span&gt;Do you know what TCPD version 7.6 ships with? Is is possible to do a page break with out of the box 7.6 or would you still need to update the WYSIWIG editor?&amp;nbsp;&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add page break to PDF template?</title><link>https://sugarclub.sugarcrm.com/thread/14247?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2015 05:16:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:b628621a-8951-465c-9a3a-52582f5c9967</guid><dc:creator>Evan Tait-Styles</dc:creator><description>&lt;span&gt;Yes, we had that - for some reason the default setting is to block printing. To fix it we just reset the &amp;quot;protection&amp;quot; array.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Edit this file:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;include/Sugarpdf/Sugarpdf.php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;On line 143 add the following code:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;$protection = array();&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add page break to PDF template?</title><link>https://sugarclub.sugarcrm.com/thread/14246?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2015 00:08:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:1cceda14-2191-4003-99e0-7b793e9e8a3e</guid><dc:creator>dtronolone dtronolone</dc:creator><description>&lt;span&gt;Did anyone notice after updating tcpdf versions you can no longer actually print the pdf?&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add page break to PDF template?</title><link>https://sugarclub.sugarcrm.com/thread/14244?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2015 10:57:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:9961882c-ac28-4b19-aa26-58a05089fd3f</guid><dc:creator>Evan Tait-Styles</dc:creator><description>&lt;span&gt;Thanks Jonathan - that was a big help.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;We ended up going down the same path - replaced the bundled version of TCPDF with the latest version from sourceforge. Our template HTML needed a few tweaks but other than that it worked quite smoothly.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;We&amp;#39;re on Sugar 7.5.1 and I think it was bundled with TCPDF 4.6 as well. The latest version on sourceforge is 6.2.8 so SugarCRM has a bit of catching up to do.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;To do the page breaks we used the following tag:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;br pagebreak=&amp;quot;true&amp;quot;/&amp;gt;&lt;/pre&gt;&lt;span&gt;If tags are being removed in the WYSIWYG editor then TinyMCE will be the culprit. You can configure this to allow whatever tags/parameters you need using a config override.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Thanks again.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Cheers&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Evan&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add page break to PDF template?</title><link>https://sugarclub.sugarcrm.com/thread/14243?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2015 17:13:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:f2ed442f-2760-4213-b4b3-2732e2e6f6e9</guid><dc:creator>Jon Clark</dc:creator><description>&lt;span&gt;Hi,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Short answer:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;br pagebreak=&amp;quot;true&amp;quot;/&amp;gt;&lt;/pre&gt;&lt;span&gt;Longer answer:&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Sugar (7.x.x at least) uses TCPDF (&lt;/span&gt;&lt;a href="http://www.tcpdf.org/" rel="nofollow" target="_blank"&gt;http://www.tcpdf.org/&lt;/a&gt;&lt;span&gt;) to generate its PDF&amp;#39;s&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;I couldn&amp;#39;t get some CSS and HTML working in Sugar&amp;#39;s version of TCPDF, so I updated ours to version&amp;nbsp;5.9.209, you can just replace the folder in &amp;quot;vendor/tcpdf&amp;quot;. &amp;nbsp;FYI Sugar 7.2 ships with tcpd version 4.6 that was released in 2009, 5.9 was released is 2013, so this decade at least!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;However, I then found that the WYSIWIG editor could remove some of the HTML, so I built up the HTML/CSS in an editor and copied and pasted that straight into the database, which seems to work great now. &amp;nbsp;The database table is &amp;quot;pdfmanager&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;In other words, you might struggle to get the template to look decent in Sugar&amp;#39;s current tcpdf version and WYSIWIG editor, including possibly the pagebreak (not sure if it works on old tcpdf).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Hope this helps anyway,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Jon&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>