Beispiel #1
0
        public override string ToPDF()
        {
            String pdf = String.Empty;

            pdf += ObjectNum.ToString() + " " + GenerationNum.ToString() + " obj " + "\n";
            pdf += "<<" + "\n";
            pdf += "/Pages " + PdfPageTree.GetPdfPageTree().GetRefStr() + "\n";
            pdf += "/Type /Catalog" + "\n";
            pdf += ">>" + "\n";
            pdf += "endobj " + "\n";

            return(pdf);
        }
Beispiel #2
0
        internal static PdfPageTree GetPdfPageTree()
        {
            if (_pdfPageTree == null)
            {
                lock (_object)
                {
                    if (_pdfPageTree == null)
                    {
                        _pdfPageTree = new PdfPageTree();
                    }
                }
            }

            return(_pdfPageTree);
        }