• 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
1.9k
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 last edited by 28 May 2020, 11:11

    Hello, I am trying to translate Bagisto to Japanese.
    I need to solve the following issue:
    When I print a invoice all Japanese characters was substituted by question marks('?').
    I've opened another pdf with Japanese characters using the same pdf reader program and the Japanese fonts appeared normally.
    This is the image of the invoice file:
    invoice-28-05-2020.png
    How and where can I ajust to generate invoices with Japanese fonts that appear normally ?

    And another question is about the image that must appear at the top of this file, where the sentence:"Image not found or type unknown". Could you guide me where I need to upload the image to be showed in that local?

    Thank you

    1 Reply Last reply Reply Quote 1
    • R
      rahul last edited by 29 May 2020, 15:17

      Hello @William-Hatanaka

      Thanks for raising this one, we are looking at this one.

      W 3 Replies Last reply 4 Jun 2020, 00:11 Reply Quote 0
      • W
        William Hatanaka @rahul last edited by 29 May 2020, 15:39

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