There are no examples for both but there is an example for text (HelloWorld) and example for image (ImageTpPDF) in the examples subdirectory of the source code download.

You can do it in the same PDPageContentStream.

Try using coordinate 50,500 for an image and 200,500 for a text.

Re checkboxes, see the CreateCheckBox.java example.

If you're struggling, what did you try?

Tilman

Am 27.03.2021 um 15:29 schrieb David Hoffer:
I'm struggling to find examples of generating PDF with text and images on
the same line.  E.g. A column of checkbox images on the left then normal
text to the right of each image.

How to do this?  It's one PDDocument and one PDPage but is this one or two
PDPageContentStreams?

Are there examples of this?

Also if PDFBox had a native way of rendering checkboxes (checked and
unchecked) that would be fine too instead of me supplying the images.

Thanks,
-Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to