public PdfPage Add(int id, int widthPt, int heightPt) { PdfPage page = new PdfPage(id, widthPt, heightPt); _pages.Add(page); return page; }
/// <summary> /// Adds a new page. /// </summary> /// <param name="widthPt">Width in point</param> /// <param name="heightPt">Height in point</param> public void AddPage(int widthPt, int heightPt) { int id = _xRefs.CreateObject(); _currentPage = _pages.Add(id, widthPt, heightPt); }