PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → National characters in PDF
National characters in PDF
Started by marcin, Feb., 25 2021 3:40 PM - 1 reply
Posted on February, 25 2021 - 3:40 PM
Hi,

Is it possible with Windev Mobile to print national (ex. polish) characters to PDF on Android using iPrint function?

I'm trying:

FileName is string = gsMainFolder + "test.pdf"
sTekstUnicode is string = "Tekst z polskimi znakami: Ą ą Ć ć Ę ę Ł ł Ń ń Ó ó Ś ś Ź ź Ż ż"
iDestination(iGenericPDF, FileName)
iCreateFont(1, 12, iNormal, "Helvetica", iBlack, 0)
iFont(1)
iPrint(sTekstUnicode)
iPrint(UnicodeToAnsi(sTekstUnicode, charsetAnsi))
iPrint(UnicodeToAnsi(sTekstUnicode, charsetDefault))
iPrint(UnicodeToAnsi(sTekstUnicode, charsetCurrent))
iPrint(UnicodeToAnsi(sTekstUnicode, charsetEastEurope))
iPrint(UnicodeToAnsi(sTekstUnicode, charsetUTF8))
iEndPrinting()

But in PDF there is:
Tekst z polskimi znakami: ? ? ? ? ? ? ? ? ? ? Ó ó ? ? ? ? ? ?
Tekst z polskimi znakami:           Ó ó      
Tekst z polskimi znakami: ? ? ? ? ? ? ? ? ? ? Ó ó ? ? ? ? ? ?
Tekst z polskimi znakami: ? ? ? ? ? ? ? ? ? ? Ó ó ? ? ? ? ? ?
Tekst z polskimi znakami: ? ? ? ? ? ? ? ? ? ? Ó ó ? ? ? ? ? ?
Tekst z polskimi znakami: ? ? ? ? ? ? ? ? ? ? Ó ó ? ? ? ? ? ?

If you open PDF with notepad++ you can see:
/Type /Font
/Subtype /Type1
/BaseFont /Helvetica
/Encoding /WinAnsiEncoding

So I guess the PDF generator uses encoding without polish characters. Is is possible to change standard encoding?
Posted on March, 13 2021 - 6:03 PM
marcin wrote:
Hi,

Is it possible with Windev Mobile to print national (ex. polish) characters to PDF on Android using iPrint function?

I'm trying:

FileName is string = gsMainFolder + "test.pdf"
sTekstUnicode is string = "Tekst z polskimi znakami: Ą ą Ć ć Ę ę Ł ł Ń ń Ó ó Ś ś Ź ź Ż ż"
iDestination(iGenericPDF, FileName)
iCreateFont(1, 12, iNormal, "Helvetica", iBlack, 0)
iFont(1)
iPrint(sTekstUnicode)
iPrint(UnicodeToAnsi(sTekstUnicode, charsetAnsi))
iPrint(UnicodeToAnsi(sTekstUnicode, charsetDefault))
iPrint(UnicodeToAnsi(sTekstUnicode, charsetCurrent))
iPrint(UnicodeToAnsi(sTekstUnicode, charsetEastEurope))
iPrint(UnicodeToAnsi(sTekstUnicode, charsetUTF8))
iEndPrinting()

But in PDF there is:
Tekst z polskimi znakami: ? ? ? ? ? ? ? ? ? ? Ó ó ? ? ? ? ? ?
Tekst z polskimi znakami:           Ó ó      
Tekst z polskimi znakami: ? ? ? ? ? ? ? ? ? ? Ó ó ? ? ? ? ? ?
Tekst z polskimi znakami: ? ? ? ? ? ? ? ? ? ? Ó ó ? ? ? ? ? ?
Tekst z polskimi znakami: ? ? ? ? ? ? ? ? ? ? Ó ó ? ? ? ? ? ?
Tekst z polskimi znakami: ? ? ? ? ? ? ? ? ? ? Ó ó ? ? ? ? ? ?

If you open PDF with notepad++ you can see:
/Type /Font
/Subtype /Type1
/BaseFont /Helvetica
/Encoding /WinAnsiEncoding

So I guess the PDF generator uses encoding without polish characters. Is is possible to change standard encoding?


the same here with Greek characters