PDF Generated Using Zoho CRM API Contains Empty Pages

PDF Generated Using Zoho CRM API Contains Empty Pages

Hello, I’m trying to convert an inventory template into a PDF for a specific record using the Zoho CRM API with ZohoEmbededAppSDK and Javascript . However, when I run the following code, I end up with a 6-page PDF that is completely empty. Could you please help me with this?


  1. ZOHO.CRM.CONNECTION.invoke("zohocrm", {
  2.     url: "https://www.zohoapis.eu/crm/v5/settings/inventory_templates/" + inventory_template.id + "/actions/print_preview?record_id=" + quote_id + "&print_type=pdf",
  3.     responseType: "blob",
  4. }).then((pdf_file) => {
  5.     // convert data to pdf
  6.     let downloadLink = inventory_template.name + ".pdf";

  7.     var binaryData = [];
  8.     binaryData.push(pdf_file);
  9.     var url = URL.createObjectURL(new Blob(binaryData, {type: "application/pdf;charset=UTF-8"}));

  10.     console.log(url);
  11. });
The purpose of this code is to convert the inventory template into a PDF for a specific quote. However, the resulting PDF file is entirely blank. Do you have any ideas on this? Thanks!




      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


                                            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