I am trying to use the booklet example to turn 4 x A4 into an A3 booklet.
http://www.pdfsharp.net/wiki/Booklet-sample.ashx?HL=xpdfformThis works well but the final page is in landscape on the original document. So I tried adding this to the code before the gfx.DrawImage(form, box) command:
if (leftPageIndex == 4)
{
form.Page.Rotate = 270;
//I have tried with and without this adjustment
form.Page.Height = 841;
form.Page.Width = 595;
}
This does rotate it but the content is cropped partly off the page, it looks like it is cropped by the difference in height and width of an A4 sheet.