By using apache POI how to convert ms word file to pdf?
I an using the following code but its not working giving errors I gues
As a side note, it's also possible to read content on-the-fly directly from a Word/Excel content stream instead of reading it from the filesystem and serializing it to disk, for example when retrieving content from CMIS repositories:
e.g.
//HWPFDocument docx = new HWPFDocument(fs);
HWPFDocument docx = new HWPFDocument(doc.getContentStream().getStream());
(doc is of type org.apache.chemistry.opencmis.client.api.Document and in this case I adapted your code to retrieve a word file from an Alfresco repository by means of opencmis and transformed it to PDF)
HTH