I may have just figured this out.  I'm using two page streams now and then
for the second one I use PDPageContentStream.AppendMode.APPEND else it
overwrites the first stream.  I just have to align my y position...but it's
close now.

-Dave

On Sat, Mar 27, 2021 at 10:22 AM Tilman Hausherr <[email protected]>
wrote:

> Am 27.03.2021 um 16:40 schrieb David Hoffer:
> > Yeah those two samples are too basic....I need to see how to do both on
> the
> > same page (and same line).
> >
> > I have tried using one PDPageContentStream intermixing text & image and
> two
> > PDPageContentStreams and so far not working correctly.  I don't yet see
> how
> > I am supposed to do this.
>
>
> Please post your code.
>
> Tilman
>
>
>
> >
> > Thanks,
> > -Dave
> >
> > On Sat, Mar 27, 2021 at 9:24 AM Tilman Hausherr <[email protected]>
> > wrote:
> >
> >> 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: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to