After Alter Quot template the result in PDF get messed up

After Alter Quot template the result in PDF get messed up

I made changes to my Quot template, minor move of field into different location. After save the export to PDF got the wrong results and preventing me from get quotation from the system.

Here is the HTML code used in the template.

Start Code Here

<table border="0" cellspacing="0" cellpadding="0" width="100%" style="background:#fff;padding:2px;"><tbody><tr><td><table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-left:1px solid #dadada;border-right:4px solid #dadada;border-top:1px solid #dadada;border-bottom:4px solid #dadada;padding:10px;background-color:white;"><tbody><tr><td valign="top"><table border="0" cellspacing="0" cellpadding="0" width="100%" style="font-size:18px;"><tbody><tr><td valign="top" align="left">${companyLogo}</td><td style="font-size:12px;color:black;" valign="Bottom" align="left"><span style="font-size:16px;color:black;font-weight:bold;">${Organization.Organization Name}</span><br>${Organization.Street}<br>${Organization.City}<br>${Organization.State}<br>${Organization.Country} ${Organization.Zip Code}</td><td style="font-size:12px;color:black;" valign="Bottom" align="right"><span style="font-size:20px;font-weight:bold;">Quote</span><br><span style="font-size:12px;color:black;">Valid Till: ${Quotes.Valid Till}</span><br><span style="font-size:12px;color:black;">Quote Number : ${Quotes.Quote Number}</span><br></td></tr></tbody></table><br><table border="0" cellspacing="0" cellpadding="0" width="100%" style="font-family: Arial, Helvetica, sans-serif;font-size:11px;color:#000;"><tbody><tr><td style="border-top:2px solid gray;text-align:right;width:20%;background-color:#f2f2f2;">Account Name:</td><td style="border-top:2px solid gray;width:30%;font-weight:bold;font-color:gray;border-bottom:1px solid #eaeaea;">${Quotes.Account Name}</td><td style="border-top:2px solid gray;text-align:right;width:20%;background-color:#f2f2f2;"><br></td><td style="border-top:2px solid gray;width:30%;font-weight:bold;font-color:gray;border-bottom:1px solid #eaeaea;"><br></td></tr><tr><td style="text-align:right;width:20%;background-color:#f2f2f2;">Contact Name:</td><td style="width:30%;font-weight:bold;font-color:gray;border-bottom:1px solid #eaeaea;">${Quotes.Contact Name} </td><td style="text-align:right;width:20%;background-color:#f2f2f2;"></td><td style="width:30%;font-weight:bold;font-color:gray;border-bottom:1px solid #eaeaea;"> </td></tr></tbody></table><br><h2>About Orcanos</h2>Orcanos provides integrated software solution for development Lifecycle management and regulation compliance, targeted to Medical Device manufacturers, software vendors and various industries, QPack. QPack solution is installed in a variety of high tech industries, including semiconductors, software and medical devices.<br><br><div style="text-align: left;"><img src="http://www.orcanos.com/uploaded/Logos/customers_quote.png"><br></div><br><h2>About QPack <o:p></o:p></h2>  <p style="margin: 9.35pt 0cm;">QPack provides a software system for verification and validation, including risk management, requirements traceability test management and defect tracking with the ability to automatically generate validation documents (MRD, PRD, SRS, SDD, STD, STR...) .<o:p></o:p></p>  <a href="http://www.orcanos.com/medical-device">www.orcanos.com</a><br><br><br><h2>Prices</h2><br><table border="0" cellspacing="0" cellpadding="0" width="100%" style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: rgb(0, 0, 0);"><thead><tr><td style="font-weight:bold;background-color:#eaeaea;border-top:2px solid gray;">S.No.</td><td style="font-weight:bold;background-color:#eaeaea;border-top:2px solid gray;">Product Details</td><td style="font-weight:bold;background-color:#eaeaea;border-top:2px solid gray;">Qty</td><td align="right" style="font-weight:bold;background-color:#eaeaea;border-top:2px solid gray;">List Price</td><td align="right" style="font-weight:bold;background-color:#eaeaea;border-top:2px solid gray;">Total</td></tr></thead><tbody id="lineItem"><tr><td style="border-bottom:2px dotted #dadada" valign="top"><b>${serialNumber}</b></td><td style="border-bottom:2px dotted #dadada"><b>${Products.Product Name} ${Products.Product Code}</b><br><pre wrap="soft" style="width:500px">${Quotes.Product Description}</pre></td><td valign="top" style="border-bottom:2px dotted #dadada">${Quotes.Qty}</td><td valign="top" align="right" style="border-bottom:2px dotted #dadada">${Quotes.List Price}<br>Discount<br><table border="0" cellspacing="0" cellpadding="0" width="100%" style="font-size: 11px; color: rgb(0, 0, 0);"><tbody id="lineItem"><tr><td valign="top" align="right" style="border-bottom-width: 2px; border-bottom-style: dotted; border-bottom-color: rgb(218, 218, 218);"><table border="0" cellspacing="0" cellpadding="0" width="100%" style="font-size: 11px; color: rgb(0, 0, 0);"><tbody id="lineItem"><tr><td valign="top" align="right" style="border-bottom-width: 2px; border-bottom-style: dotted; border-bottom-color: rgb(218, 218, 218);"><table border="0" cellspacing="0" cellpadding="0" width="100%" style="font-size: 11px; color: rgb(0, 0, 0);"><tbody id="lineItem"><tr><td valign="top" align="right" style="border-bottom-width: 2px; border-bottom-style: dotted; border-bottom-color: rgb(218, 218, 218);">Total After Discount<br></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td><td valign="top" align="right" style="border-bottom:2px dotted #dadada">${Quotes.Total}<br>${Quotes.Individual Discount}<br>${Quotes.Total After Discount}<br><br><br></td></tr></tbody><tbody><tr><td align="right" colspan="4">Sub Total</td><td align="right"><b>${Quotes.Sub Total}<br></b></td></tr><tr><td align="right" colspan="4">Discount<br>Tax</td><td align="right">${Quotes.Discount}<br>${Quotes.Tax}</td></tr><tr><td align="right" colspan="4">Adjustment</td><td align="right">${Quotes.Adjustment}</td></tr><tr><td align="right" colspan="4" style="border-bottom:2px solid #ccc"><b>Grand Total</b></td><td align="right" style="border-bottom:2px solid #ccc;border-top:2px solid #dadada;"><b>${Quotes.Grand Total}</b></td></tr></tbody></table><br><br>${Quotes.Description}<br><br><br><br><table border="0" cellspacing="0" cellpadding="5" width="100%" style="font-family: Arial, sans-serif; font-size: 10pt;"><tbody><tr><td style="color:gray;border-top:2px solid gray;"><b><br>Terms and Conditions</b></td></tr><tr><td><pre style="color:gray" wrap="soft"><br></pre><pre style="color:gray" wrap="soft">${Quotes.Terms and Conditions}</pre></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table>

End Code Here

Taking this code into simple sample.html file and open in browser shows good result. But when generating it in the ZOHO to pdf with real values it is getting all messed up and miss aligned.

This is a show stopper on our sale cycle as we do not wish to go back to WORD.

Please help.

      Zoho Developer Community









                                Zoho Desk Resources

                                • Desk Community Learning Series


                                • Digest


                                • Functions


                                • Meetups


                                • Kbase


                                • Resources


                                • Glossary


                                • Desk Marketplace


                                • MVP Corner


                                • Word of the Day



                                    Zoho Marketing Automation
                                            • Sticky Posts

                                            • Zoho Invoice Will Soon Discontinue Support for Older Browser Versions

                                              Hello users, Starting from May 15, 2024, Zoho Invoice will no longer support the following browser versions: Browsers Version Restrictions Firefox Browser Versions older than 100 Google Chrome Versions older than 100 Microsoft Edge Versions older than
                                            • Bulk Printing now available in Zoho Invoice

                                              Hello, We are happy to announce the much requested and much awaited feature in Zoho Invoice - Bulk Printing of Estimates and Invoices. All you need to do is, select the invoices you wish to print and then click the 'Print' button. All the invoices will be downloaded as a single PDF file which can be printed as you wish. You can print upto 25 invoices at a single go. Go ahead and give it a shot and let us know how it worked for you. Regards, Reshma   
                                            • Introducing the iPhone App for Zoho Invoice

                                              Now you can invoice on the go from your iPhone through the Zoho Invoice iPhone app. Our iPhone app is available at the apps store for download. The app is special in more ways than one: An impeccable UI takes your invoicing experience to a whole new level That's a first native app we've come up with It's available for FREE!!!!! Yeah, absolutely Free. No brainer there, we just wanted to make our users to enjoy the app no strings attachedHere some snapshots of the app: For the real experience, head


                                            Manage your brands on social media



                                                  Zoho TeamInbox Resources

                                                    Zoho DataPrep Resources



                                                      Zoho CRM Plus Resources

                                                        Zoho Books Resources


                                                          Zoho Subscriptions Resources

                                                            Zoho Projects Resources


                                                              Zoho Sprints Resources


                                                                Qntrl Resources


                                                                  Zoho Creator Resources



                                                                    Zoho WorkDrive Resources



                                                                      Zoho Campaigns Resources


                                                                        Zoho CRM Resources

                                                                        • CRM Community Learning Series

                                                                          CRM Community Learning Series


                                                                        • Tips

                                                                          Tips

                                                                        • Functions

                                                                          Functions

                                                                        • Meetups

                                                                          Meetups

                                                                        • Kbase

                                                                          Kbase

                                                                        • Resources

                                                                          Resources

                                                                        • Digest

                                                                          Digest

                                                                        • CRM Marketplace

                                                                          CRM Marketplace

                                                                        • MVP Corner

                                                                          MVP Corner





                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now