src/providers/Azos.Media/PDF/DocumentModel/PdfDocument.cs
/// <summary>
/// Supplies document objects with unique sequential Ids
/// </summary>
Supplies document objects with unique sequential Ids
Supplies document objects with unique sequential Ids
private void prepare()
    {
      m_ObjectRepository.Register(m_Root);
      m_ObjectRepository.Register(m_Info);
      m_ObjectRepository.Register(m_OutLines);
      foreach (var font in Fonts)
      {
        m_ObjectRepository.Register(font);
        m_ResourceRepository.Register(font);
      }
      m_ObjectRepository.Register(m_PageTree);
      foreach (var page in Pages)
      {
        m_ObjectRepository.Register(page);
        page.Fonts.AddRange(Fonts);
        foreach (var element in page.Elements)
        {
          m_ObjectRepository.Register(element);
        }
      }
      m_Trailer.LastObjectId = m_ObjectRepository.CurrentId;
    }
private void prepare ( ) { m_ObjectRepository . Register ( m_Root ) ; m_ObjectRepository . Register ( m_Info ) ; m_ObjectRepository . Register ( m_OutLines ) ; foreach ( var font in Fonts ) { m_ObjectRepository . Register ( font ) ; m_ResourceRepository . Register ( font ) ; } m_ObjectRepository . Register ( m_PageTree ) ; foreach ( var page in Pages ) { m_ObjectRepository . Register ( page ) ; page . Fonts . AddRange ( Fonts ) ; foreach ( var element in page . Elements ) { m_ObjectRepository . Register ( element ) ; } } m_Trailer . LastObjectId = m_ObjectRepository . CurrentId ; }
Supplies document objects with unique sequential Ids
Supplies document objects with unique sequential Ids