internal Document( File context ) : base( context, new PdfDictionary( new PdfName[1] { PdfName.Type }, new PdfDirectObject[1] { PdfName.Catalog } ) ) { configuration = new DocumentConfiguration(this); // Attach the document catalog to the file trailer! context.Trailer[PdfName.Root] = BaseObject; // Pages collection. this.Pages = new Pages(this); // Default page size. PageSize = PageFormat.GetSize(); // Default resources collection. Resources = new Resources(this); }
internal Document( PdfDirectObject baseObject // Catalog. ) : base(baseObject) { configuration = new DocumentConfiguration(this); }