Beispiel #1
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();
        }
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();
        }
Beispiel #3
0
 /// <summary>
 /// Writes PDF header into file stream
 /// </summary>
 /// <param name="root">PDF document root</param>
 internal void Write(PdfRoot root)
 {
     writeBeginObject(root.ObjectId);
       writeBeginDictionary();
       writeDictionaryEntry("/Type", "/Catalog");
       writeDictionaryEntry("/Pages", root.PageTree.GetReference());
       writeDictionaryEntry("/Outlines", root.Outlines.GetReference());
       writeEndDictionary();
       writeEndObject();
 }