public static void main(String[] argv) {
D2P d2p = new D2P();
// d2p.openWord("c:/12.doc");
// d2p.callWordMacro("c:/12.docc", "MyWordMacro",
// new String[] { "这是调用word宏的测试程序" });
d2p.docToPDF("d:/12.doc", "c:/1p.ps", "c:/1p.pdf");
}
}
=================================================
When you create a PostScript file you have to send the host fonts.
Please go to the printer properties, "Adobe PDF Settings" page
and turn OFF the option "Do not send fonts to Distiller"
=================================================
com.jacob.com.ComFailException: Invoke of: PrintOut
Source: Microsoft Word
Description: SSORS=1
at com.jacob.com.Dispatch.invokev(Native Method)
at com.jacob.com.Dispatch.invokev(Dispatch.java:804)
at com.jacob.com.Dispatch.callN(Dispatch.java:440)
at com.lixuming.util.D2P.docToPDF(D2P.java:87)
at com.lixuming.util.D2P.main(D2P.java:113)