Skip to content

farshadjafari/python-persian-pdf-printing-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

#Persian Pdf with weasy-print sample

-if you are usin django, and need to write some persian/farsi data to a pdf file, and you need some specific font, you can use this sample to know ho to do it.

  • first part of code is about rendering some value to a django template and get it as html string.

  • secont part of code is printing a html page to a pdf, exactly as it appears on web browser.(with whole css rules and font families)

*NOTE that none of other python pdf makers can print persian stuff. it takes me three days to test each one. so use weasy-print and do not waste your time.

http://weasyprint.org/

About

Persian Pdf with weasy-print sample

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages