<?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>Generate a PDF from PDF Manager to the Documents Module.</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/1098/generate-a-pdf-from-pdf-manager-to-the-documents-module</link><description>I have had a couple of clients ask about this so I thought I would check to see if anyone else has come across this. When generating a Quote PDF, the client wants to save the generated PDF as a Document record related to the Quote record. They want to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Generate a PDF from PDF Manager to the Documents Module.</title><link>https://sugarclub.sugarcrm.com/thread/28998?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 12:46:02 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:573ccc99-de26-43c1-a5ec-1966d2af1e7c</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;You can still find the original article here:&lt;br /&gt;&lt;a href="https://sugardeveloper.wordpress.com/2016/08/15/how-to-create-beautiful-pdfs-with-css-within-sugar/"&gt;https://sugardeveloper.wordpress.com/2016/08/15/how-to-create-beautiful-pdfs-with-css-within-sugar/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;But &lt;strong&gt;please note&lt;/strong&gt; that it&amp;#39;s a very old customization, which probably explains why it was removed from the Club. This is from 2016 way before DocMerge was added. I would strongly recommend you look at existing functionality first. I have not tested this functionality in versions past v11.0.3&lt;/p&gt;
&lt;p&gt;Francesca&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate a PDF from PDF Manager to the Documents Module.</title><link>https://sugarclub.sugarcrm.com/thread/28992?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 05:31:25 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:b701bd86-5f67-4304-ac8b-30bb1f4ee2e0</guid><dc:creator>Waqas Butt</dc:creator><description>&lt;p&gt;link is dead. Can anybody provide the updated one or something like this?&lt;br /&gt;&lt;br /&gt;I am new to Sugar and want to see how custom pdf generation works.&lt;br /&gt;&lt;br /&gt;&lt;a href="/members/anassi"&gt;Alex Nassi&lt;/a&gt;&amp;nbsp;&lt;a href="/members/francescas"&gt;Francesca Shiekh&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate a PDF from PDF Manager to the Documents Module.</title><link>https://sugarclub.sugarcrm.com/thread/20822?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 16:31:13 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:92caeb18-f8e2-4546-bed6-dbd623e0757d</guid><dc:creator>Mahnoor Saeed</dc:creator><description>&lt;p&gt;&lt;a href="/members/shajiuddinse_4000_gmail.com"&gt;Muhammad Shaji Uddin&lt;/a&gt; can you share more details, how you achieved it.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Mahnoor&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate a PDF from PDF Manager to the Documents Module.</title><link>https://sugarclub.sugarcrm.com/thread/4418?ContentTypeID=1</link><pubDate>Sun, 01 Sep 2019 11:15:52 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:5c7d854f-2b98-4e84-bce7-c794aeb58699</guid><dc:creator>Muhammad Shaji Uddin</dc:creator><description>&lt;p&gt;&lt;a href="https://sugarclub.sugarcrm.com/members/jboyes_4000_brainsell.net"&gt;John Boyes&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I have done similar functionality,&lt;/p&gt;&lt;p&gt;1. Custom PDF is generating through custom code.&lt;/p&gt;&lt;p&gt;2. Email sending to contact with above PDF as attachment.&lt;/p&gt;&lt;p&gt;3. Above PDF is saving as Document record in subpanel of parent record.&lt;/p&gt;&lt;p&gt;For the purpose I implemented the custom pdf generation, Process Email Template, Sugar core email functions and extended&amp;nbsp;PMSEEmailHandler().&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate a PDF from PDF Manager to the Documents Module.</title><link>https://sugarclub.sugarcrm.com/thread/4417?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 17:07:30 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:27d83e46-68c1-4eff-8c67-b4b855a3d968</guid><dc:creator>Alex Nassi</dc:creator><description>&lt;p&gt;&lt;a href="https://sugarclub.sugarcrm.com/members/kbrill_4000_star2star.com"&gt;Kenneth Brill&lt;/a&gt; - It was migrated here:&amp;nbsp;&lt;a href="https://sugarclub.sugarcrm.com/dev-club/b/dev-blog/posts/how-to-create-beautiful-pdfs-with-css-within-sugar"&gt;https://community.sugarcrm.com/community/developer/blog/2016/08/15/how-to-create-beautiful-pdfs-with-css-within-sugar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate a PDF from PDF Manager to the Documents Module.</title><link>https://sugarclub.sugarcrm.com/thread/4416?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 16:55:31 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:9a179888-3a19-4fa3-9e5f-e8f7327356f0</guid><dc:creator>Kenneth Brill</dc:creator><description>&lt;p&gt;Do you still have the link for&amp;nbsp;&lt;a href="/external-link.jspa?url=https://developer.sugarcrm.com/2016/08/15/how-to-create-beautiful-pdfs-with-css-within-sugar/" rel="nofollow" style="color:#41b7d1;background-color:#ffffff;border:0px;text-decoration:underline;" target="_blank"&gt;How to create beautiful PDFs with CSS within Sugar &amp;laquo; Sugar Developer Blog &amp;ndash; SugarCRM&lt;/a&gt;&lt;/p&gt;&lt;p&gt;this one seems dead now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate a PDF from PDF Manager to the Documents Module.</title><link>https://sugarclub.sugarcrm.com/thread/4415?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 00:19:57 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:8ccc1eac-6e44-4b87-ac0c-161bdfb6450e</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;We thought of doing that, then decided against it. Since the quote has to be sent to the customer, we decided that someone has to open it and review it prior to attaching it to an email to send it so they may as well upload it once reviewed.&lt;/p&gt;&lt;p&gt;If I were to do what you are proposing, I would create&amp;nbsp;the menu item&amp;nbsp;Save PDF as a copy of Download PDF and customize the controller.&lt;/p&gt;&lt;p&gt;&lt;span&gt;I&amp;#39;ve overridden the PDF generator (&amp;nbsp;&lt;a href="https://developer.sugarcrm.com/2016/08/15/how-to-create-beautiful-pdfs-with-css-within-sugar/" rel="nofollow" target="_blank"&gt;How to create beautiful PDFs with CSS within Sugar &amp;laquo; Sugar Developer Blog &amp;ndash; SugarCRM&lt;/a&gt;&amp;nbsp; ) but not added to it before so I&amp;#39;m not quite sure of the correct approach. I included the link here so you can see how I modified the pdfaction to get my custom documents to appear in the menu.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;I think you will need to create your own pdfAction (&lt;/span&gt;&lt;span&gt;see&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=""&gt;clients/base/fields/pdfaction) and the controller that goes with it.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;You can see in the original how they handle the download and email, that may give you a starting point for what you want to do.&lt;/p&gt;&lt;p&gt;You could build your savePDF somewhat generic,&amp;nbsp; check if there is a relationship between the current module and&amp;nbsp;Documents and if so create the document and link it to the current model.&amp;nbsp;&lt;/p&gt;&lt;p&gt;That way if they ask you to add one for some other module (say, Contracts) you already have the structure ready.&lt;/p&gt;&lt;p&gt;I will be interested in seeing what you come up with.&lt;/p&gt;&lt;p&gt;FrancescaS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>