Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 internal Document(
     PdfDirectObject baseObject // Catalog.
     ) : base(baseObject)
 {
     configuration = new DocumentConfiguration(this);
 }