B4J Code Snippet make a custom PDF with Banano/SithasoDaisy

lib:
BANano
SithasoDaisy
SithasoDaisyPDF

thanks to @Mashiane

B4X:
Sub makepdf
    Log("make pdf")
    Dim jspdf As SDUIJSPDF
    jspdf.Initialize(Me, "pdfEvent", "test.pdf")
    jspdf.Start
    jspdf.SetText1("Hello World", "20", "20")
    jspdf.SetText("20", "30", "Example with Banano/SithasoDaisy and jsPDF")
    jspdf.addPage 'new page
    jspdf.SetText("40", "55", "Page number two!")
    jspdf.close
    jspdf.Save
End Sub
 

Attachments

  • Test.pdf
    3.6 KB · Views: 13
Top