Hello
I'm adding some images and text to a pdf currently simply doing:
PDPageContentStream cos = new ...
cos.drawString("some text");
And for images:
PDXObjectImage image = new ...;
PDPageContentStream content = ...;
content.drawImage(image, 100, 650)
I need to add these in a particular order. However I have multiple (long)
text strings and variable sized images, which makes it hard to figure out
whether I should create a new page (in an A4 sized document).
Is there a way to "auto layout" into the document so that (1) long strings
automatically wrap and (2) images that cross the page border get wrapped to
the next page?
Thanks in advance.
Manish