Hi.
I need to generate PDF with russian letters but when I try it resulting pdf is empty. I use example: oneLineTest: aStream PDFDocument new add: (PDFPage new add: (PDFTextElement new text: 'Hello Привет'; from: 10mm@10mm)); exportTo: aStream. I attach produced pdf. Best regards, Denis oneLineTest.pdf (1K) Download Attachment |
Hi Denis, perhaps this is the same topic (I am not sure): Regards Sabine 2016-11-11 19:25 GMT+01:00 Denis Kudriashov [via Smalltalk] <[hidden email]>:
|
2016-11-11 21:07 GMT+01:00 Sabine Manaa <[hidden email]>:
Thank's Sabine. But it is not helps. And google too. It seems that I need embed fonts which is not implemented by Artifact. |
lets wait what Olivier or Guillaume say 2016-11-12 11:28 GMT+01:00 Denis Kudriashov [via Smalltalk] <[hidden email]>:
|
I forwarded the conversation to Olivier. Embed fonts are not yet implemented by Artefact so we will see with Olivier if we will join the development of it (if you plan to do it) or if we will just help you by answering your questions if we do not have time to code it. 2016-11-12 12:07 GMT+01:00 Sabine Manaa <[hidden email]>:
Guillaume Larcheveque
|
Denis, Could you publish a snippet of code that generates a PDF document with a text that contains russians letters ? We need to test. For russian letters, I think That You need a consistent font and the proper encoding. Normally, the Helvetica / Arial should be ok. For the encoding, the standard fonts use ISO-8859-1 or windows-1252. If you use UTF8, You Could try to convert your text to this encoding before insert it in the PDF document. 2016-11-12 12:26 GMT+01:00 Guillaume Larcheveque <[hidden email]>:
|
2016-11-12 14:02 GMT+01:00 olivier auverlot <[hidden email]>:
See my original mail.: oneLineTest: aStream I modified demo example.
|
In reply to this post by Olivier Auverlot
2016-11-12 14:02 GMT+01:00 olivier auverlot <[hidden email]>:
I tried this: text := (UTF8TextConverter new convertToSystemString: 'Привет'). PDFDocument new add: (PDFPage new add: (PDFTextElement new font: (PDFHelveticaFont new fontSize: 32pt); text: text; from: 10mm@10mm)); exportTo: aStream But no success: 'ПрР̧Ð2ÐμÑ‚' inside. |
In reply to this post by Guillaume Larcheveque
2016-11-12 12:26 GMT+01:00 Guillaume Larcheveque <[hidden email]>:
I read pdf reference and it looks like "real" amount of work. I not have time for this. I was need fast solution to my problem. |
Free forum by Nabble | Edit this page |