Fausto Loss Member Licensed User Aug 29, 2017 #1 Hi people, I use library pdf 0.25 and B4A 6.8 How to write html to pdf ? example: B4X: Dim sb As StringBuilder sb.Initialize sb.Append("<html><head>") ' utf-8 sb.append("<meta http-equiv=""" & "Content-Type""" & " content=""" & "text/html; charset=iso-8859-1""" & ">") sb.append("</head>") sb.append("<body text=""" & "#000000""" & " bgcolor=""" & "#FFFFFF""" & ">") sb.append("<p><strong>Hello Word,</strong><br></p>") sb.append( "</body>") sb.append( "</html>")
Hi people, I use library pdf 0.25 and B4A 6.8 How to write html to pdf ? example: B4X: Dim sb As StringBuilder sb.Initialize sb.Append("<html><head>") ' utf-8 sb.append("<meta http-equiv=""" & "Content-Type""" & " content=""" & "text/html; charset=iso-8859-1""" & ">") sb.append("</head>") sb.append("<body text=""" & "#000000""" & " bgcolor=""" & "#FFFFFF""" & ">") sb.append("<p><strong>Hello Word,</strong><br></p>") sb.append( "</body>") sb.append( "</html>")
Erel B4X founder Staff member Licensed User Longtime User Aug 30, 2017 #2 You can use Printer.PrintHtml: https://www.b4x.com/android/forum/threads/printing-and-pdf-creation.76712/#content Upvote 0
You can use Printer.PrintHtml: https://www.b4x.com/android/forum/threads/printing-and-pdf-creation.76712/#content