Beispiel #1
0
 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;
 }
Beispiel #2
0
 public PdfTrimBox(PdfArray box)
     : base(PdfObjectType.TrimBox, box)
 {
 }
Beispiel #3
0
 public PdfBleedBox(PdfArray box)
     : base(PdfObjectType.BleedBox, box)
 {
 }
Beispiel #4
0
 public PdfMediaBox(PdfArray box)
     : base(PdfObjectType.MediaBox, box)
 {
 }