-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long address texts are overlapped on invoice/creditmemo pdf #107
Comments
@HirokazuNishi looks like |
@lenaorobei for PDF generation, we have to mind character width , too. mb_strwidth can detect the given string contain only single bytes or not. The issue reason is, strlen and split functions in StringUtils doesn't check string width against double byte characters. |
Same issue occurs when there are long product names in the invoice or in other PDFs. Is there any workaround for this? |
@sukeshini-kot You need to define plugin against StringUtils. |
@HirokazuNishi Thank you very much. Adding an around plugin to strlen() solved the issue.
|
Preconditions
Expected result
Actual result
Issue reason
Magento\Framework\Stdlib\StringUtils has 2 methods strlen and split. These are useful for single byte characters for PDF generation. For pdf generation, we have to check the text contains double byte characters or not.
The text was updated successfully, but these errors were encountered: