You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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: