-
-
Notifications
You must be signed in to change notification settings - Fork 654
Problem with hindi text html encoding into pdf #744
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
Comments
Could you please provide some standalone code without relying on custom Django models and views, ideally without even using Django as this should be irrelevant in this case? |
without django also not working this code i used in a single file, i used same code for a single python file and use single hindi content html file for converting a hindi pdf.but not working
…On Sat, Jan 6, 2024 at 2:23 PM Stefan ***@***.***> wrote:
Could you please provide some standalone code without relying on custom
Django models and views, ideally without even using Django as this should
be irrelevant in this case?
—
Reply to this email directly, view it on GitHub
<#744 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A642GG5STUDXDLDCURYNE3LYNEGJLAVCNFSM6AAAAABBPHP3SWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZZGU4TQMBSGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Could you please provide the standalone code you apparently have then to simplify reproduction? |
hey!!!
2. Name of the Student hindi:
public function downloadPDF($id)
|
Most likely issue with the default font here is how it is solved for slavic characters: |
Uh oh!
There was an error while loading. Please reload this page.
Describe the Bug
I m using xhtml2pdf Version: 0.2.5 with django version 3.2 , I m trying to convert my hindi text into pdf but after converting pdf hindi text is not encoded with a right way , it gives black boxes or unreadable characters ------ I already used in html file meta encoding ="utf-8" line and also attached another libarary for hindi language like devnagriRegular.ttf file but not working
##this is my view function in django
def show_products(request):
products = crudajax.objects.filter(delete_flag=False).all()
template_path = 'pdf_report.html'
context = {'products': products}
Expected Behavior
I want to convert my hindi text into pdf with a encoded way
Actual Behavior
Actual behavior is , it convert english language only if i give another laguage like hindi , it does not encode.
Additional Information
Traceback
System Information
I m using acer i5
OS version:Version 10.0.22631 Build 22631
Python version:3.9.5
XHTML2PDF version:Version: 0.2.5
The text was updated successfully, but these errors were encountered: