Skip to main content
mikek34537917
Participant
February 25, 2016
Question

Using PDF2File in C++

  • February 25, 2016
  • 1 reply
  • 914 views

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();

}

This topic has been closed for replies.

1 reply

Legend
February 26, 2016

See the tumbleweeds...? This is a forum for an old and long dead product called Distiller Server... the Acrobat SDK forum is the right one, but if you don't get a reply there, you may need to buy a developer case. I wish I could tell you how to do that.

mikek34537917
Participant
February 26, 2016

Thanks for your help.