Dim pdf As PdfDocument
pdf.Initialize
pdf.StartPage(595, 842) 'A4 size
Dim x As Int
Dim s As StringBuilder
For x = 1 To 10
s.Initialize
s.Append(x).Append(" ").Append(P1Map1.Get("Hola" & x)).Append(" ").Append(P1Map2.Get("Hola" & x)).Append(" ")
s.Append(P2Map1.Get("Hola" & x)).Append(" ").Append(P2Map2.Get("Hola" & x)).Append(" ").Append(CRLF)
pdf.Canvas.DrawText(s,100,100,Typeface.DEFAULT_BOLD, 30 / GetDeviceLayoutValues.Scale , Colors.Blue, "LEFT")
Next
pdf.FinishPage
Dim out As OutputStream = File.OpenOutput(File.DirInternal, "1.pdf", False)
pdf.WriteToStream(out)
out.Close
pdf.Close