Customizing layout of exported page | Zoho Creator Help

Customizing layout of exported page

What does this page cover
Learn how you can customize the output PDF when you download a page from the live mode of your application.
Availability
  1. Pages are available in all plans of Creator.
  2. Only the super admin, admins, and developers can create and manage pages.

1. Customization while exporting a page as PDF

In Zoho Creator, you can choose to allow the download of a page as a PDF from the live mode of the application. This is done by enabling the PDF option under the Page Properties pane in the edit mode, after which the PDF button will be enabled in the live mode.

You can format the basic attributes of the PDF that will be downloaded beforehand, such as setting page margins, customizing the header and footer, displaying page numbers, and so on. These customizations need to be incorporated inside HTML snippets inserted in the page for them to show on its downloaded PDF copy.

The output PDF file with such basic formatting is shown in the below video:


1.1 PDF margin

Syntax
zcpage-spacing="pixelvalue"
Syntax Description
To set custom page margins in the first <div> tag of the body. A sample code snippet is shown below.
  1. <body>
  2. <div zcpage-spacing="40">
  3. </div>
  4. </body>
Notes
Note: By default, the PDF will be rendered with 0px as margin value on all sides.
To add and repeat header or footer content in the output PDF, add zcpage-headerhtml="true" and zcpage-footerhtml="true" respectively, as an attribute in the required <div> tag. Sample code snippets are shown below.

Header:
  1. <div zcpage-headerhtml="true"><div class="align-center" style="text-align: center;">
  2. Zylker Employee Management
  3. </div> 

Footer:
  1. <div zcpage-footerhtml="true"><div class="align-center" style="text-align: center;">
  2. Copyright 2024 @Zylker Technologies Pvt Ltd. All Rights Reserved.
  3. </div> 
  1. Avoid using the header and footer attributes in table elements and fixed-position elements to ensure there is no break in consistency in the output PDF.
  2. The height of the header and footer attributes should be less than 300px.
  3. External style sheets and inherited style properties will not be applied to the header and footer HTML elements. We suggest you use the Inline style.
  4. If header/footer attributes are specified for more than one HTML element, the attributes specified will be rendered only for the first HTML element.
  5. For an HTML element, you can specify either the header or the footer. If you specify both, only its header will be rendered.
  6. Using style elements like margin-top, margin-bottom, padding-top, padding-bottom inside the header/footer element tends to break the header/footer.
Notes
Note: Consider using the top/bottom margin values mentioned below for the header/footer in the respective HTML elements:
  1. zcpage-headerspacing-top="pixelvalue" 
  2. zcpage-headerspacing-bottom="pixelvalue"
  3. zcpage-footerspacing-top="pixelvalue"
  4. zcpage-footerspacing-bottom="pixelvalue"

1.3 Page number

Syntax
  1. To show the current page number, add:
    <div class="zcpage-pagenumber"> <span class="currentPageNumber"> </span> </div>
  1. To show the total number of pages, add:
    <div class="zcpage-pagenumber"> <span class="totalPageNumber"> </span> </div>
Syntax description
The zc_PageNumber parameter in the exported page's URL will not work when the footer content is specified. In such cases, you can show the page number by adding the above syntax in either the header or the footer's HTML.

For example, this HTML code will cause to display 1 of n, 2 of n,.... n of n, in the footer of the respective pages of the PDF:
  1. <div zcpage-footerhtml="true">
  2.      <!-- your footer content -->
  3.      <div class="zcpage-pagenumber">
  4. <span class="currentPageNumber"> </span> of <span class="totalPageNumber"> </span></div>
  5. </div>
Info
Info: You can export a page as PDF using functionality-based URLs, in which parameters can be passed to customize the exported page.

2. Points to note

  1. If any of the above customizations are mentioned in more than one HTML element, the output PDF will be customized based on the first HTML element in the snippet. For example:
  1. <div zcpage-spacing="60"> // PDF will be customized based on this.
  2. <div zcpage-spacing="40"> // This HTML element will be ignored.
  1. If customizations are mentioned in more than one HTML snippet, the output PDF will be customized based on the first HTML snippet placed in the page builder.
  2. Only free fonts or fonts with open font license will be rendered in the PDF.
  3. Certain MS Core fonts will be replaced by free fonts automatically.
  4. When images are inserted in the page using HTML snippets, use public URLs for them to be rendered visible in the PDF when the dashboard is exported.
  5. External media that is embedded in HTML snippets using iframe embed codes may not load in the exported PDF.
  6. Refrain from using nested tables in HTML snippets to avoid any breaks in the output PDF.
  1. Understanding pages
  2. Exporting page as PDF

What's next
Previous
What's next
Explore our Pages help documents to understand its various possibilities.
Previous
Learn how to customize the page layout for different devices.
 

        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                      Zoho FSM Video Tutorials


                                            All-in-one knowledge management and training platform for your employees and customers.

                                                      Create. Review. Publish.

                                                      Write, edit, collaborate on, and publish documents to different content management platforms.

                                                      Get Started Now




                                                                        You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                            Manage your brands on social media


                                                                              • Desk Community Learning Series


                                                                              • Digest


                                                                              • Functions


                                                                              • Meetups


                                                                              • Kbase


                                                                              • Resources


                                                                              • Glossary


                                                                              • Desk Marketplace


                                                                              • MVP Corner


                                                                              • Word of the Day


                                                                              • Ask the Experts


                                                                                Zoho Sheet Resources

                                                                                 

                                                                                    Zoho Forms Resources


                                                                                      Secure your business
                                                                                      communication with Zoho Mail


                                                                                      Mail on the move with
                                                                                      Zoho Mail mobile application

                                                                                        Stay on top of your schedule
                                                                                        at all times


                                                                                        Carry your calendar with you
                                                                                        Anytime, anywhere




                                                                                              Zoho Sign Resources

                                                                                                Sign, Paperless!

                                                                                                Sign and send business documents on the go!

                                                                                                Get Started Now




                                                                                                        Zoho TeamInbox Resources





                                                                                                                  Zoho DataPrep Demo

                                                                                                                  Get a personalized demo or POC

                                                                                                                  REGISTER NOW


                                                                                                                    Design. Discuss. Deliver.

                                                                                                                    Create visually engaging stories with Zoho Show.

                                                                                                                    Get Started Now








                                                                                                                                        • Related Articles

                                                                                                                                        • Customizing page layout

                                                                                                                                          What does this page cover Learn how you can customize the layout of your dashboards built using the page component. Availability Page layout customization can be done in all plans of Creator. Only the super admin, admins, and developers can customize ...
                                                                                                                                        • Customizing portal pages (Deprecated)

                                                                                                                                          This help page is for Creator 6 users with portals created before June 1, 2026. For portals created later, refer to this document to learn about the latest version of portal page customization. If you are on Creator 5, refer to this document. Know ...
                                                                                                                                        • Creating a custom layout

                                                                                                                                          1. What does this page cover? Learn to design a custom layout corresponding to your business requirements for the detailed view of your records using the Canvas layout builder. Before moving ahead, you can learn more about canvas layout builder and ...
                                                                                                                                        • Customizing organization

                                                                                                                                          What does this page cover? Learn how to customize your organization details in Creator. With the help of our intuitive interface, you can easily personalize every aspect of your organization. Refer to our page on Organization before proceeding. ...
                                                                                                                                        • Understanding canvas layout designer

                                                                                                                                          1. What does this page cover? Learn about how you can use Canvas layout builder in Creator to design the detailed view layout of your records, corresponding to your business requirements. 2. Availability This help page is for users in Creator 5 and ...
                                                                                                                                          Wherever you are is as good as
                                                                                                                                          your workplace

                                                                                                                                            Resources

                                                                                                                                            Videos

                                                                                                                                            Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                            eBooks

                                                                                                                                            Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                            Webinars

                                                                                                                                            Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                            CRM Tips

                                                                                                                                            Make the most of Zoho CRM with these useful tips.



                                                                                                                                              Zoho Show Resources