Hi All, I have just started working on ‘Generating PDF’ by Java code using iText APIs version 2.1.5. Its quite good in all features but unable to insert text including formatting from a MS-Word file (.doc) into generating PDF.
Just like in MS-Word Helper class I use the following code to insert text/images (including formatting) from an another file into generating file: OleAutomation range = getAutomation(selection, "Range"); int[] dispid = selection.getIDsOfNames(new String[] { "InsertFile" }); int memId = dispid[0]; Variant[] rgvarg = new Variant[1]; rgvarg[0] = new Variant(FileName); Variant pVarResult = selection.invoke(memId, rgvarg); Please tell me, Whether my knowledge about iText APIs is limited or it is not possible with iText. If so, then tell me what will be the appropriate Java APIs to do so…. Your views are welcome. Thanks in Advance. Kishore -- View this message in context: http://www.nabble.com/Insert-.doc-file-text-into-PDF-using-iText-tp23033478p23033478.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php