baruchel / txt2pdf

Text to PDF converter with Unicode support
MIT License
75 stars 46 forks source link

Tab character is displayed as a black box if file contains tabs #15

Closed clach04 closed 2 years ago

clach04 commented 2 years ago

Simple test case attached:

python txt2pdf.py --media letter --break-on-blanks test_text_7bit_US-ASCII.txt

test_text_7bit_US-ASCII.txt

NOTE related but should be considered a separate issue #22 ; also displays black boxes for form-feed character aka CTRL-L, US-ASCII 0x0c(12 in decimal) when break-on-blanks is used.

I suspect this is due to what appears to be lack of support for tabs in Reportlab - see https://groups.google.com/g/reportlab-users/c/WXTt_bQ3VRk/m/0jRa1Cp4DGgJ