Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    PDF format invoices in Japanese appear with garbled characters

    Knowledge Base
    4
    13
    1995
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      William Hatanaka @rahul last edited by

      Hello @rahul ,
      No problem !
      So I am waiting your reply ok!
      Thank you !

      1 Reply Last reply Reply Quote 0
      • W
        William Hatanaka @rahul last edited by

        Hello @rahul , could you tell me where is the file for printing the invoice in pdf?
        I need test a font to generate this pdf in japanese.
        Thank you.

        1 Reply Last reply Reply Quote 0
        • W
          William Hatanaka @rahul last edited by

          Hello @rahul ,
          I need to know also where I can configure the default font for create the invoice pdf?
          Thank you.

          1 Reply Last reply Reply Quote 0
          • N
            Naresh-webkul last edited by

            Hello @William-Hatanaka ,
            Go to the following path:
            packages/Webkul/Admin/src/Resources/views/sales/invoices/pdf.blade.php
            you can customize this file .

            Thank you.

            W 1 Reply Last reply Reply Quote 0
            • W
              William Hatanaka @Naresh-webkul last edited by

              Hello @Naresh-webkul,
              I could customize this pdf.blade.php file, but if I update Bagisto with a new version of it can my customization be overwritten?
              This concern occurs to me when I want to make any changes within Bagisto.
              Is there a way to make some changes to the Bagisto without changing the core?

              1 Reply Last reply Reply Quote 0
              • N
                Naresh-webkul last edited by

                Hello @William-Hatanaka ,
                You can create your own package and there you can override the invoices file without changing the core bagisto code .
                You should check this link:
                https://devdocs.bagisto.com/create_package.html

                Thank you.

                W 2 Replies Last reply Reply Quote 0
                • W
                  William Hatanaka @Naresh-webkul last edited by

                  @Naresh-webkul
                  Thank you .
                  And there is a logo that appears in the pdf.blade.php. I was unable to discore the folder and not even the name of the logo file.

                  <img class="logo" src="{{ Storage::url(core()->getConfigData('sales.orderSettings.invoice_slip_design.logo')) }}"/>
                  

                  Could you tell me where the logo file should be?
                  Thank you

                  1 Reply Last reply Reply Quote 0
                  • W
                    William Hatanaka @Naresh-webkul last edited by

                    Sorry @Naresh-webkul !
                    I found the configuration place !
                    http://localhost/admin/configuration/sales/orderSettings
                    Thank you very much

                    1 Reply Last reply Reply Quote 0
                    • N
                      Naresh-webkul last edited by

                      Your Welcome @William-Hatanaka .

                      1 Reply Last reply Reply Quote 0
                      • C
                        chemisax last edited by

                        Hello @William-Hatanaka , can you tel me how did you solved it?

                        W 1 Reply Last reply Reply Quote 0
                        • W
                          William Hatanaka @chemisax last edited by

                          Hello @chemisax ,
                          The problem with unreadable characters was the lack of an installed Japanese font. I found a website in Japanese that taught how to install these fonts for the laravel-dompdf package.
                          https://reffect.co.jp/laravel/laravel-dompdf70-japanese
                          I found a similar site explaining in English.
                          https://stackoverflow.com/questions/24412203/dompdf-and-set-different-font-family
                          I hope these links were useful

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post