B4J Question [sithasodaisy] and SithasoDaisyPDF / jsPDF

giannimaione

Well-Known Member
Licensed User
Longtime User
hello,
I usually use
B4X:
Dim pdf As SDUIJSPDF
pdf.Initialize(Me, "", "myTable.pdf")
tabpdf.ExcelTitle = "a nice table"
pdf.ExportTable(tabpdf.ExcelTitle, tabpdf.Orientation, tabpdf.PageSize, tabpdf.Unit, tabpdf.FontSize, tabpdf.PdfTheme, tabpdf.PageBreakRepeat, tabpdf.GetFieldNames, tabpdf.GetTitleNames, tabpdf.Originals)
or
B4X:
Dim pdf As SDUIJSPDF
pdf.Initialize(Me, "", "example.pdf")
pdf.start
pdf.SetText1("Hello", "80", "10")
pdf.Save
is it ok;
but how can I save to the server folder? (example "./assets")
 

giannimaione

Well-Known Member
Licensed User
Longtime User
B4X:
Dim result As BANanoObject = banano.Await(pdf.blob)
      Dim f As BANanoObject
    f.Initialize2("File",Array(Array(result), "testpdf.pdf", CreateMap("type": result.getfield("type"))))
    banano.Await(SDUIShared.UploadFileOptionsWait(f, "../assets", "n"))
Thank you
Danke
Obrigado
Merci
Gracias
Grazie
 
Upvote 0
Top