Android Question PDFWriter Greek Characters Error

BitsAndBytes

Active Member
Licensed User
I am Using PDFWriter to create a pdf file but when i am trying to print Greek Characters i am getting error in pdf document

B4X:
Sub CreatePDF()
    If(FirstTime) Then
       PDFWriter.Initialize("PDFWriter", PaperSize.A4_WIDTH, PaperSize.A4_HEIGHT)
   End If   

   PDFWriter.setFont(Fonts.SUBTYPE, Fonts.SYMBOL)
   PDFWriter.addText(40, PaperSize.A4_HEIGHT - 50, 14, "Report - ΑΝΑΦΟΡΑ")
   PDFWriter.addText(40, PaperSize.A4_HEIGHT - 80, 14, "Date - ΗΜΕΡΟΜΗΝΙΑ")   
   PDFWriter.ConverseDocument   

Sub PDFWriter_ConversionDone (Content As String)
    PDFContent = Content
    ProgressDialogHide   
    PDFWriter.outputToFile(File.DirRootExternal, "MyFile.pdf", PDFContent,  "ISO-8859-1")
End Sub

Because of my app i cant use Printer Library to create a pdf. What i am doing Wrong? Thanks :)
 

DonManfred

Expert
Licensed User
Longtime User
You are Setting a symbolfont. Sure it contains Greek characters?
 
Upvote 0

BitsAndBytes

Active Member
Licensed User
You are Setting a symbolfont. Sure it contains Greek characters?
I use also other Fonts but again i am receiving unknow characters. What to do?

The library can print only english letters see and your self. What to do to print other Languages Please?

Screenshot_2018_04_01_21_38_41_1.jpg
 
Last edited:
Upvote 0
Top