FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
National characters in PDF
National characters in PDF
Débuté par marcin, 25 fév. 2021 15:40 - 1 réponse
Connectez-vous…
marcin
#1
Posté le 25 février 2021 - 15:40
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?
Signaler
0
0
Stavros Loizides
#2
Posté le 13 mars 2021 - 18:03
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
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte