Beispiel #1
0
 internal PdfPage(PdfPageTree parent, PdfSize size)
 {
     m_Size     = size;
     m_Unit     = m_Size.Unit;
     m_Parent   = parent;
     m_Fonts    = new List <PdfFont>();
     m_Elements = new List <PdfElement>();
 }
Beispiel #2
0
        public PdfDocument()
        {
            m_Fonts              = new List <PdfFont>();
            m_Meta               = new PdfMeta();
            m_Info               = new PdfInfo();
            m_OutLines           = new PdfOutlines();
            m_Root               = new PdfRoot();
            m_PageTree           = new PdfPageTree();
            m_Trailer            = new PdfTrailer();
            m_ObjectRepository   = new ObjectRepository();
            m_ResourceRepository = new ResourceRepository();

            m_Root.Info     = m_Info;
            m_Root.Outlines = m_OutLines;
            m_Root.PageTree = m_PageTree;
            m_Trailer.Root  = m_Root;

            m_PageSize = PdfPageSize.Default();
        }