public Document(Dictionary <string, string> docInfo, Demon.Font.FontCache fonts) { _pages = new PageList(); _fonts = new FontCache(fonts); _fileId = Guid.NewGuid(); _docInfo = new DocumentInformationDictionary(docInfo); }
public Page( int pageNumber, Rectangle mediaBox, Rectangle bodyBox, Rectangle headerBox, Rectangle footerBox, Document doc) { doc.Pages.Add(this); _pageNumber = pageNumber; _procSet = new ProcSet(); _procSet.Add("PDF"); _procSet.Add("Text"); _procSet.Add("ImageB"); _procSet.Add("ImageC"); _procSet.Add("ImageI"); _fonts = doc.Fonts; _images = new List <Image>(); _mediaBox = mediaBox; _bodyBox = bodyBox; _headerBox = headerBox; _footerBox = footerBox; _content = new List <ContentFragment>(); // DebugOutline(); }