Dues anybody try Artifact with non latin characters?
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
Hi Denis, perhaps this is the same topic (I am not sure): http://forum.world.st/Artefact-and-WideString-td4857147.html#a4857325 Regards Sabine 2016-11-11 19:25 GMT+01:00 Denis Kudriashov [via Smalltalk] < ml-node+s1294792n4922747h52@n4.nabble.com>:
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 <http://forum.world.st/attachment/4922747/0/oneLineTest.pdf>
------------------------------ If you reply to this email, your message will be added to the discussion below: http://forum.world.st/Dues-anybody-try-Artifact-with-non- latin-characters-tp4922747.html To start a new topic under Pharo Smalltalk Users, email ml-node+s1294792n1310670h65@n4.nabble.com To unsubscribe from Pharo Smalltalk Users, click here <http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&nod...> . NAML <http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant...>
-- View this message in context: http://forum.world.st/Dues-anybody-try-Artifact-with-non-latin-characters-tp... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
2016-11-11 21:07 GMT+01:00 Sabine Manaa <manaa.sabine@gmail.com>:
Hi Denis,
perhaps this is the same topic (I am not sure): http://forum.world.st/Artefact-and-WideString-td4857147.html#a4857325
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] < ml-node+s1294792n4922787h92@n4.nabble.com>:
2016-11-11 21:07 GMT+01:00 Sabine Manaa <[hidden email] <http:///user/SendEmail.jtp?type=node&node=4922787&i=0>>:
Hi Denis,
perhaps this is the same topic (I am not sure): http://forum.world.st/Artefact-and-WideString-td4857147.html#a4857325
Thank's Sabine. But it is not helps. And google too. It seems that I need embed fonts which is not implemented by Artifact.
------------------------------ If you reply to this email, your message will be added to the discussion below: http://forum.world.st/Dues-anybody-try-Artifact-with-non-latin-characters- tp4922747p4922787.html To start a new topic under Pharo Smalltalk Users, email ml-node+s1294792n1310670h65@n4.nabble.com To unsubscribe from Pharo Smalltalk Users, click here <http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&nod...> . NAML <http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant...>
-- View this message in context: http://forum.world.st/Dues-anybody-try-Artifact-with-non-latin-characters-tp... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
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 <manaa.sabine@gmail.com>:
lets wait what Olivier or Guillaume say
2016-11-12 11:28 GMT+01:00 Denis Kudriashov [via Smalltalk] <[hidden email] <http:///user/SendEmail.jtp?type=node&node=4922788&i=0>>:
2016-11-11 21:07 GMT+01:00 Sabine Manaa <[hidden email] <http:///user/SendEmail.jtp?type=node&node=4922787&i=0>>:
Hi Denis,
perhaps this is the same topic (I am not sure): http://forum.world.st/Artefact-and-WideString-td4857147.html#a4857325
Thank's Sabine. But it is not helps. And google too. It seems that I need embed fonts which is not implemented by Artifact.
------------------------------ If you reply to this email, your message will be added to the discussion below: http://forum.world.st/Dues-anybody-try-Artifact-with-non-lat in-characters-tp4922747p4922787.html To start a new topic under Pharo Smalltalk Users, email [hidden email] <http:///user/SendEmail.jtp?type=node&node=4922788&i=1> To unsubscribe from Pharo Smalltalk Users, click here. NAML <http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant...>
------------------------------ View this message in context: Re: Dues anybody try Artifact with non latin characters? <http://forum.world.st/Dues-anybody-try-Artifact-with-non-latin-characters-tp...> Sent from the Pharo Smalltalk Users mailing list archive <http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html> at Nabble.com.
-- *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 < guillaume.larcheveque@gmail.com>:
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 <manaa.sabine@gmail.com>:
lets wait what Olivier or Guillaume say
2016-11-12 11:28 GMT+01:00 Denis Kudriashov [via Smalltalk] <[hidden email] <http:///user/SendEmail.jtp?type=node&node=4922788&i=0>>:
2016-11-11 21:07 GMT+01:00 Sabine Manaa <[hidden email] <http:///user/SendEmail.jtp?type=node&node=4922787&i=0>>:
Hi Denis,
perhaps this is the same topic (I am not sure): http://forum.world.st/Artefact-and-WideString-td4857147.html#a4857325
Thank's Sabine. But it is not helps. And google too. It seems that I need embed fonts which is not implemented by Artifact.
------------------------------ If you reply to this email, your message will be added to the discussion below: http://forum.world.st/Dues-anybody-try-Artifact-with-non-lat in-characters-tp4922747p4922787.html To start a new topic under Pharo Smalltalk Users, email [hidden email] <http:///user/SendEmail.jtp?type=node&node=4922788&i=1> To unsubscribe from Pharo Smalltalk Users, click here. NAML <http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant...>
------------------------------ View this message in context: Re: Dues anybody try Artifact with non latin characters? <http://forum.world.st/Dues-anybody-try-Artifact-with-non-latin-characters-tp...> Sent from the Pharo Smalltalk Users mailing list archive <http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html> at Nabble.com.
-- *Guillaume Larcheveque*
2016-11-12 14:02 GMT+01:00 olivier auverlot <olivier.auverlot@gmail.com>:
Denis,
Could you publish a snippet of code that generates a PDF document with a text that contains russians letters ? We need to test.
See my original mail.: oneLineTest: aStream
PDFDocument new add: (PDFPage new add: (PDFTextElement new text: 'Hello ÐÑивеÑ'; from: 10mm@10mm)); exportTo: aStream.
I modified demo example.
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 14:02 GMT+01:00 olivier auverlot <olivier.auverlot@gmail.com>:
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.
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.
2016-11-12 12:26 GMT+01:00 Guillaume Larcheveque < guillaume.larcheveque@gmail.com>:
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.
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.
participants (4)
-
Denis Kudriashov -
Guillaume Larcheveque -
olivier auverlot -
Sabine Manaa