Customize Layout of Exported Page | Zoho Creator Help

Customize Layout of Exported Page

1. 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.

2. Availability

  1. Pages are available in all plans of Creator.
  2. Only the super admin, admins, and developers can create and manage pages.

3. 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:


3.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>
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.
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"

3.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>

4. 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. Understand Pages
  2. Export Page as PDF

    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









                                      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

                                            Zoho Desk Resources

                                            • Desk Community Learning Series


                                            • Digest


                                            • Functions


                                            • Meetups


                                            • Kbase


                                            • Resources


                                            • Glossary


                                            • Desk Marketplace


                                            • MVP Corner


                                            • Word of the Day


                                              Zoho Marketing Automation

                                                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 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

                                                                                                        • Customize Page Layout

                                                                                                          1. What Does This Page Cover? Learn how you can customize the layout of your dashboards built using the page component. 2. Availability Page layout customization can be done in all plans of Creator. Only the super admin, admins, and developers can ...
                                                                                                        • Manage custom layout

                                                                                                          1. What Does This Page Cover? Learn how to name, rename, edit, and perform other customizations on the custom layouts you have designed for the detailed view of your records using the Canvas layout builder. Before moving ahead, you can learn more ...
                                                                                                        • Create 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 ...
                                                                                                        • Custom card layout for e-commerce app

                                                                                                          Requirement Display products in a card layout with a button to add required products to a cart. Use Case An e-commerce business uses an order management app to process orders. Products need to be displayed in a card layout with product images, and ...
                                                                                                        • Understand 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