+ if(nup) {
+ pdf_page_info_t* info = pdf_page_getinfo(page);
+ if(nup_pos%nup == 0) {
+ pdf_page_render(page, swf);
+ x = info->xMax;
+ y = info->yMax;
+ } else if(nup_pos%nup == 1) {
+ pdf_page_rendersection(page, swf, x, 0, info->xMin+x, info->yMin, info->xMax+x, info->yMax);
+ } else if(nup_pos%nup == 2) {
+ pdf_page_rendersection(page, swf, 0, y, info->xMin, info->yMin+y, info->xMax, info->yMax+y);
+ } else if(nup_pos%nup == 3) {
+ pdf_page_rendersection(page, swf, x, y, info->xMin+x, info->yMin+y, info->xMax+x, info->yMax+y);
+ }
+ if(nup_pos % nup == nup-1)
+ swf_output_pagefeed(swf);
+
+ pdf_page_info_destroy(info);
+ } else {
+ pdf_page_render(page, swf);
+ swf_output_pagefeed(swf);
+ }
+