• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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
3.4k
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 3 Jun 2020, 14:05

    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 4 Jun 2020, 00:11

      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 4 Jun 2020, 05:44

        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 4 Jun 2020, 23:11 Reply Quote 0
        • W
          William Hatanaka @Naresh-webkul last edited by 4 Jun 2020, 23:11

          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 5 Jun 2020, 05:14

            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 5 Jun 2020, 10:17 Reply Quote 0
            • W
              William Hatanaka @Naresh-webkul last edited by 5 Jun 2020, 08:15

              @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 5 Jun 2020, 10:17

                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 8 Jun 2020, 09:45

                  Your Welcome @William-Hatanaka .

                  1 Reply Last reply Reply Quote 0
                  • 27 days later
                  • C
                    chemisax last edited by 4 Jul 2020, 22:54

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

                    W 1 Reply Last reply 7 Jul 2020, 01:34 Reply Quote 0
                    • W
                      William Hatanaka @chemisax last edited by 7 Jul 2020, 01:34

                      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
                      13 out of 13
                      • First post
                        13/13
                        Last post