views:

6

answers:

0

I am have to print out a series of data objects where each consists of a changing number of label-value pairs so the ideal structure for that is obviously the PdfPTable. And so far everything works fine with it. But the data objects are in a hierarchical relationship to each other and the hierarchy level needs to be expressed by different indentation levels of these data object on the printout.

My question is how to achieve this.

The only way to position a table I found is through .WriteSelectedRows which requires absolute values for x and y. While to derive the indentation, x, is fairly simple (hierarchy level of the ojbect times indentation per level) I didn't manage to find a way how to get the vertical position.

Any help is apreciated.

Peter