Hi,
I've just been experimenting using rtf2pdf (demo version) with a couple of different documents. When I open one of the converted documents in Adobe Reader I'm getting the error mentioned in the subject.
The code I'm using is more or less as below:
Code
DEF_WPDF_ENGINE_PTR;
HINSTANCE PdfEngine;
if (LOAD_WPDF_ENGINE(PdfEngine, "wPDFControlDemo.dll") == 0) {
if (wpdfSetLicenseKey)
wpdfSetLicenseKey(0, "", "");
WPDFEnviroment Env = wpdfInitialize();
if (wpdfBeginDoc(Env, "OutputFile.pdf", 0)) {
wpdfExecCommand(Env, WPCOM_RTFINIT, 0, "", 0);
wpdfExecCommand(Env, WPCOM_RTFLOAD, 0, "InputFile.rtf", 0);
wpdfExecCommand(Env, WPCOM_RTFPRINT, 0, "", 0);
wpdfEndDoc(Env);
}
wpdfFinalize(Env);
FreeLibrary(PdfEngine);
}
Alles anzeigen
Is there anything I can do to avoid this error and convert the document correctly?
Thanks :)