| 1 |
-- In4 - imposé sur un A4 présentement |
| 2 |
|
| 3 |
PageWidth = 595.27559 |
| 4 |
PageHeight = 841.88976 |
| 5 |
|
| 6 |
sw = SourceWidth |
| 7 |
sh = SourceHeight |
| 8 |
|
| 9 |
xoffset = (PageWidth - (2*sw)) / 2; |
| 10 |
yoffset = (PageHeight - (2*sh)) / 2; |
| 11 |
|
| 12 |
print("xo",xoffset ); |
| 13 |
print("yo",yoffset ); |
| 14 |
-- sw = sw + xoffset; |
| 15 |
-- sh = sh + yoffset; |
| 16 |
i = 0 |
| 17 |
|
| 18 |
while i < PageCount |
| 19 |
do |
| 20 |
F = i/8 |
| 21 |
PushRecord(i+ 8,F+ 1, 0, 0, yoffset ) |
| 22 |
PushRecord(i+ 1,F+ 1, 0, sw, yoffset ) |
| 23 |
PushRecord(i+ 4,F+ 1, 180, 2*sw, 2*(sh+yoffset) ) |
| 24 |
PushRecord(i+ 5,F+ 1, 180, sw, 2*(sh+yoffset) ) |
| 25 |
|
| 26 |
PushRecord( i+ 2, F+ 2, 0, 0, yoffset ) |
| 27 |
PushRecord( i+ 7, F+ 2, 0, sw, yoffset ) |
| 28 |
PushRecord( i+ 6, F+ 2, 180, 2*sw, 2*(sh+yoffset) ) |
| 29 |
PushRecord( i+ 3, F+ 2, 180, sw, 2*(sh+yoffset) ) |
| 30 |
|
| 31 |
i = i + 8 |
| 32 |
end |