Пример #1
0
 PDFPage(PDFWriter @out, int parent, double width, double height)
 {
     _parent = parent;
     _id     = @out.allocateId(1);
     _width  = width;
     _height = height;
     _stream = new PDFStream(@out.allocateId(1));
 }
Пример #2
0
        public bool begin_document(@Optional string fileName,
                                   @Optional string optList)

        {
            _tempStream = new TempStream();
            _tempStream.openWrite();
            _os = new WriteStream(_tempStream);

            _out = new PDFWriter(_os);
            _out.beginDocument();

            _catalogId    = _out.allocateId(1);
            _rootId       = _out.allocateId(1);
            _pageParentId = _out.allocateId(1);

            return(true);
        }
Пример #3
0
        public bool begin_page(double width, double height)

        {
            if (PAGE_GROUP_SIZE <= _pageGroup.size())
            {
                _out.writePageGroup(_pageParentId, _rootId, _pageGroup);
                _pageGroup.clear();

                _pagesGroupList.add(_pageParentId);
                _pageParentId = _out.allocateId(1);
            }

            _page   = new PDFPage(_out, _pageParentId, width, height);
            _stream = _page.getStream();

            _pageCount++;

            _pageGroup.add(_page);

            return(true);
        }