Exemplo n.º 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) {
            }
        }
Exemplo n.º 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;
            }
        }