Ahh, thank you Thomas - good idea, I'll give it a try. The only problem is that my "page" heights are also different, so they do not have exactly the same shape which I could scale up or down.
I'm using MigraDoc to create reports with multiple columns (usually three). I created a small "pages" which are projected onto PDF page to form columns. And everything would be fine, but the problem is that my first page contains a map (first half page), and three columns (second half page) and consecutive pages don't have the map, hence they contains three columns which occupy the whole page height.
So I've got the following situation
First page
xxxxxxxxxxx xx Map xxxx xxxxxxxxxxx
1 2 3 1 2 3 1 2 3
Second page (and other pages)
1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
As you can see all columns (i.e. MigraDoc pages) on a single page are the same (1=2=3) but they differ between pages. Everything worked really well with the single page - but with multiple pages I'm having trouble to accomodate different column(page) heights.
The content is relatively simple I can try to manually split text using trial-and-error aproach (prepare document multiple times, see when particular block of text ends in relation to the page count, etc.). I'm not sure about the performance but this is my only idea atm.
Any more ideas, tips, comments or workarounds are much appreciated.
|