.doc to .pdf

Started by Danilo David, January 05, 2022, 09:01:44 PM

Previous topic - Next topic

Danilo David

hello,

anyone who knows how to convert .doc file to pdf file using pxplus codes?

thanks, God bless

EVa

Try this:

0010 ! Instantiate object
0020 LET W=NEW("*obj/word")
0030 !
0040 ! Open document
0050 LET PATH$="c:\temp\test.docx"
0060 LET DOC1=W'OPENDOCUMENT(PATH$)
0070 !
0080 ! SaveAs PDF file
0090 W'SAVEASDOCUMENT("c:\temp\nowpdf.pdf")
0100 !
0110 DROP OBJECT W
0120 END

-Eric-