vandeseer / easytable

Small table drawing library built upon Apache PDFBox
MIT License
246 stars 94 forks source link

Sending the PDF via slack and I got wrong encoding #37

Closed ZhiLiGod closed 5 years ago

ZhiLiGod commented 5 years ago

All characters in the table show wired characters if I send the Pdf via Slack. Also, if I copy the text in the table from pdf to notepad, shows wired characters.

vandeseer commented 5 years ago

Does this also happen for a PDF document generated with PDFbox and the same fonr but without any tables? What was the code and the resulting PDF? Could you post it here?

ZhiLiGod commented 5 years ago

Hi there,

Thanks for your reply!

I haven't tried to put plain text in PDF document but my program is using your table builder to build a table in PDF document. Below is how it looks like if I send the pdf via Slack. image. It looks fine in Adobe but If I copy the text to notepad, shows wrong characters, seems like encoding problem image

vandeseer commented 5 years ago

I couldn't reproduce this behaviour and I from my point of view this shouldn't be related to easytable at all since it's just using what PDFBox provides it with. Most probably you will get the same issue not using easytable, i.e. having a PDF document with the same font but no tables. Hence I will close ticket.