PDF PageSize

  • Thomas Herrmann
        2 years ago #30585

        Hey there,

        I would like to customize the html template for creating a badge. The created ID card PDF should be only 86×54 mm.
        Is it possible to create a PDF with a fixed width and height via HTML template?

        Thank you in advance.

        Satish
            2 years ago #33970
            Up
            1
            Down
            ::

            Hi,

            I want to change the orientation of pdf template to landscape as it is in the attachment pdf. How I can achieve this ?

            Thanks.

            Attachments:
            You must be logged in to view attached files.
            Satish
                2 years ago #33985
                Up
                1
                Down
                ::

                Working fine now.

                Thanks & Reagrds
                Satish

                Jennifer Häfner
                    Has successfully completed the online course Intermediate (200)
                    Has successfully completed the online course Advanced (300)
                    Has successfully completed the online course Basics (100)
                    Has successfully completed the online course Advanced (310)
                    Has successfully completed the online course Advanced (320)
                    Has successfully completed the Intermediate Certification
                    Has successfully completed the Advanced Certification
                  1 year ago #35067
                  Up
                  1
                  Down
                  ::

                  Hi Satish,

                  To display page numbers, add the following to your PDF config object:

                  "footer-center": "[page] / [toPage]"

                  This will display the current page number as well as the total page number in the footer section.

                  We have added the description for PDF configuration options to this knowledge base article: https://community.simplifier.io/knowledge/generating-a-pdf-with-simplifier-via-plugin/

                  and to the PDF Example App on the marketplace: https://community.simplifier.io/downloads/pdf-generation/

                  Vitali Kurdasov
                      Has successfully completed the online course Intermediate (200)
                      Has successfully completed the online course Basics (100)
                      Has successfully completed the online course Advanced (310)
                      Has successfully completed the Intermediate Certification
                    2 years ago #30587
                    Up
                    0
                    Down
                    ::

                    Hi Thomas,

                    when using the function generateWithConfig in our SF_PDF BusinessObject you can pass  { “page-height”: “54mm”,”page-width” : “86mm”} in the configJSON input variable.

                    Armin Winkler
                        Has successfully completed the online course Introduction
                        Has successfully completed the online course Intermediate (200)
                        Has successfully completed the online course Advanced (300)
                        Has successfully completed the online course Basics (100)
                      2 years ago #33972
                      Up
                      0
                      Down
                      ::

                      Hi Satish,

                       

                      you can use a config JSON for this use case as well like Vitali demonstrated in his previous posting. The key that you need to set in this JSON for the orientation to change is named ‘orientation’ and it needs the value ‘Landscape’ set to it.

                       

                      Kind regards,

                      Armin

                      Satish
                          2 years ago #33981
                          Up
                          0
                          Down
                          ::

                          Hi Armin,

                          I am getting error while using config -> {orientation : ‘Landscape’} in Input Mapping for Server Business Object: ITIZ_PDF » generate. Error is shown in the attachment.

                          Thanks

                          Attachments:
                          You must be logged in to view attached files.
                          Armin Winkler
                              Has successfully completed the online course Introduction
                              Has successfully completed the online course Intermediate (200)
                              Has successfully completed the online course Advanced (300)
                              Has successfully completed the online course Basics (100)
                            2 years ago #33983
                            Up
                            0
                            Down
                            ::

                            Hi Satish,

                             

                            please try to stringify your payload object using the JSON.stringify method so a JSON string is sent as input to the server-side Business Object function ITIZ_PDF > generate.

                             

                            Kind regards,

                            Armin

                            Satish
                                1 year ago #35063
                                Up
                                0
                                Down
                                ::

                                Hey there,

                                I want to mention the page number in the pdf file generated via pdf template. How can we achieve this ?

                                Thank you in advance.

                              Viewing 9 posts - 1 through 9 (of 9 total)

                              You must be logged in to reply to this topic.