Exemplo n.º 1
0
 /**
  * <summary>Creates a new page within the given document context, using custom resources.</summary>
  */
 public Page(
     Document context,
     drawing::Size size,
     Resources resources
     ) : base(
         context.File,
         new PdfDictionary(
             new PdfName[4]
 {
     PdfName.Type,
     PdfName.MediaBox,
     PdfName.Contents,
     PdfName.Resources
 },
             new PdfDirectObject[4]
 {
     PdfName.Page,
     new Rectangle(0, 0, size.Width, size.Height).BaseDataObject,
     context.File.Register(
         new PdfStream()
         ),
     resources.BaseObject
 }
             )
         )
 {
 }
Exemplo n.º 2
0
 public FloatingWindowParametersObject(
     drawing::Size size
     ) : base(
         new PdfDictionary(
             new PdfName[]
             { PdfName.Type },
             new PdfDirectObject[]
             { PdfName.FWParams }
             )
         )
 {
     Size = size;
 }