Hi,
I use the following Code to parse a xhtml file, and made a pdf from it. It works great, but i cannot add Metadata to this File.
Whats wrong with this Code? Any Suggestions are wellcome...
Document document = new Document();
// That doesnt work...
document.addTitle("My Title");
document.addSubject("My Subject");
document.addKeywords("My Keywords");
document.addAuthor("Myself");
document.addCreator("Just me");
document.addProducer();
document.addCreationDate();
document.addHeader("Expires", "0");document.open();
// This is ok
PdfWriter pdfWriter = PdfWriter.getInstance( document,new FileOutputStream( "d:/test.pdf" ) );
SAXParser m_oSAXParser = SAXParserFactory.newInstance().newSAXParser();
SAXmyHtmlHandler saxHTMLHndlr =new SAXmyHtmlHandler(document);
m_oSAXParser.parse( "d:/test.html", saxHTMLHndlr );
document.close( );
------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
