protected PdfRectangle(PdfObjectType type, PdfArray box) : base(type) { if (box.Items.Count != 4) throw new Exception("A rectangle must have 4 values!"); llx = (box.Items[0] as PdfNumeric).Value; lly = (box.Items[1] as PdfNumeric).Value; urx = (box.Items[2] as PdfNumeric).Value; ury = (box.Items[3] as PdfNumeric).Value; }
public PdfTrimBox(PdfArray box) : base(PdfObjectType.TrimBox, box) { }
public PdfBleedBox(PdfArray box) : base(PdfObjectType.BleedBox, box) { }
public PdfMediaBox(PdfArray box) : base(PdfObjectType.MediaBox, box) { }