Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

problems using CPdfDistiller.h in my c++ app

New Here ,
Feb 18, 2016 Feb 18, 2016

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

}

TOPICS
Acrobat SDK and JavaScript
220
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation