Hi !
i've got problems with iText
I have following code:
 
    Document document = new Document();
    PdfWriter pdfw = null;
        
         try {
            pdfw = PdfWriter.getInstance(document, new FileOutputStream("..\\webapps\\bank1\\files\\pdf\\adam.pdf"));
            
            document.open();
  
          SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
          SAXmyHtmlHandler htmlH =
          new SAXmyHtmlHandler(document );
    
          parser.parse("c:\\t.htm",htmlH);
 
        }
         catch(Exception e) {
             System.err.println(e.getMessage());
         }
        
         document.close();
 
I have found almost the same example (generating pdf) on mailing list,
My code doesn't work
It's exception:The document has no pages
I think that should be good, becouse when I put string to pdf (document.add(new Paragraph("This is page "));)  it's good
 
thanks for any help
duke
 

Reply via email to