Copy link to clipboard
Copied
Hello, using the following code, my m_lpDispatch is returning NULL in my FileToPDF call. What am I doing wrong? I am using Windows 10 with Visual Studio 2015. I am also using Distiller 11.0
#include "CPdfDistiller.h"
void CTestDlg::OnBnClickedOk()
{
CString cInput (_T( "E:\\Temp\\Mike.ps"));
CString cOutput (_T( "E:\\Temp\\Mike.pdf"));
CPdfDistiller *myPDF = new CPdfDistiller;
myPDF->put_bShowWindow(1L);
short rVal;
rVal = myPDF->FileToPDF((LPCTSTR)cInput, (LPCTSTR)cOutput, (LPCTSTR) "");
CDialogEx::OnOK();
}
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now