DonManfred

Expert
Licensed User
Longtime User
Can you create a pdf from a B4J layouts the same way it is done with JavaFX8
This wrapper is able to create PDF Acroforms (and more)
 

TomDuncan

Active Member
Licensed User
Longtime User
Can this be used to print not only lines of text but
Multiple lines with CRLF separated fields.
Tom
 

TomDuncan

Active Member
Licensed User
Longtime User
Did a bit of work myself and came with this.

b4j:
'draw multline
public Sub drawMultiText(acontent As JavaObject,afont As JavaObject,asize As Float,aleft As Float,atop As Float,aLine As Float,atext() As String) As Float
    For i = 0 To atext.Length-1
        Dim txt As String = atext(i)
        drawText(acontent,afont,asize,aleft,atop,txt)
        atop = atop - aLine
    Next
    Return atop
End Sub
 

spsp

Active Member
Licensed User
Longtime User
Any example to open an existent pdf?
Hi, this library can't open existing PDF.

But the PDFBox which is used behind contains such methods. You have to look in that direction.

spsp
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…