public PdfResizeInfo(Rectangle pageSize = null, PdfMarginRectangle marginSize = null, int rotationDegrees = 0) { //NOTE: Due to namespace conflicts we reference the fully qualified PageSize for iTextSharp. this.PageSize = pageSize ?? iTextSharp.text.PageSize.LETTER; this.MarginSize = marginSize ?? PdfMarginSize.None; this.RotationDegrees = rotationDegrees; }
public new PdfMarginRectangle Rotate() { var rotatedRectangle = base.Rotate(); var newMarginRect = new PdfMarginRectangle(rotatedRectangle.Left, rotatedRectangle.Bottom, rotatedRectangle.Right, rotatedRectangle.Top) { Rotation = rotatedRectangle.Rotation }; return(newMarginRect); }