예제 #1
0
        public void Generate(String xml, Stream resp)
        {
            parser = new PDFXMLParser();
            try {
                parser.SetXML(xml);

                createPDF();
                setColorProfile();
                headerPrint();
                printRows();
                printFooter();
                printPageNumbers();
                outputPDF(resp);
            } catch (Exception e) {
            }
        }
예제 #2
0
        public void Generate(String xml, Stream resp)
        {
            parser = new PDFXMLParser();
            try {
                parser.SetXML(xml, this.Orientation);            //TO DO remove second param
                setColorProfile();
                createPDF();

                headerPrint();
                printRows();
                printFooter();
                printPageNumbers();
                outputPDF(resp);
            } catch (Exception e) {
                throw;
            }
        }