pdf writer libary with list

Fox

Active Member
Licensed User
Longtime User
Is it possible that you can create an app how can the user make an pdf from an List with the new great pdf writer lib?

and if anybody is here that solved this problem an example for me and other would be very very helpful.

thank in advanced guys.
 

vb1992

Well-Known Member
Licensed User
Longtime User
Fox, the syntax might be off here,
but this is what you need to do....
B4X:
PdfWriter1.newPage
MYDOWN = 700
MYFONTSIZE = 14
MYLEFT = 10

For i = 1 to mylist.size -1

MYDOWN=MYDOWN-20

If MYDOWN < 20 then 
MYDOWN = 700
PdfWriter1.newPage
end if

   PDFWriter1.addText(MYEFT, MYDOWN, MYFONTSIZE, mylist.getitem(i))
         
next
 
Upvote 0
Top