We have downloaded the evaluating version of wPDFControl and we are trying to convert some rtf's to pdf.
It's working for plain RTF's but some of our RTF's are made with WPTools and have embedded links to images.
The links are like this in the RTF:
Zitat\ql\li0\fi0\ri0\sb0\sl0\sa0 \plain\f0\fs24\cf17 {\*\wptools{110e0d005457504f4a7067496d61676500545046300c5457504f4a7067496d61676500075769647468545703901508486569676874545703ef10074f626a4e616d65060731303030313235064f626a54616702000c57726974655254464d6f64650707776f62426f74680a53747265616d4e616d65060731303030313235000000000000}}{\field{\*\fldinst{INCLUDEPICTURE "1000125" MERGEFORMAT}}}\par
Our test code looks something like this
ZitatAlles anzeigen
using(var pdf = new RTF2PDF())
{
pdf.OnLoadExtImage += new RTF2PDF.LoadExtImageEvent(pdf_OnLoadExtImage);
pdf.OnLoadExtString += new RTF2PDF.LoadExtStringEvent(pdf_OnLoadExtString);
pdf.OnError += new RTF2PDF.ErrorEvent(pdf_OnError);pdf.PDFOptions = ePDFOptions.CreateAutoLinks;
pdf.Thumbnails = eThumbnails.Color;
pdf.FontMode = eFontMode.EmbedTTF;IWPEditor memo = pdf.Memo;
memo.LoadFromFile(@"e:\thomas.rtf", false, "");
pdf.PdfCreator.PDFFile = "memory";
pdf.PdfCreator.Print();File.WriteAllBytes(@"e:\output.pdf", pdf.ResultBuffer);
}
According to the manual/api reference we should get "OnLoadExtImage" event when the converter hits these embedded links to images but the event is newer triggered.
What are we doing wrong?