Am 01.04.2016 um 16:17 schrieb Manish Patel:
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?

No, you have to implement that yourself. There's at least one example on stackoverflow.

Tilman

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to