Well, I just tried printing directly to an RTF file, using these FileOptions and
drivers 2.50:
NoPrompt + UseFileName + ExportToRTF (that is 0x08000003)
However what I get is a file which is not an RTF, it's a file starting with the typical PDF header: %PDF-1.3...
On the other side when printing to PDF and
then converting it to RTF it does work with drivers 2.50.
Then I went trying
drivers 3.02 on the same conditions.
When printing to directly to RTF I get the same results as above (just a PDF named RTF).
If I follow the Print-2-PDF -> Convert-to-RTF path, I can see that only the former works, the latter does not.
Summarizing...
On Vista x86:
- Driver v2.50
- Direct print to RTF: wrong, prints a PDF
- Print to PDF, then convert to RTF: ok
- Driver v3.02
- Direct print to RTF: wrong, prints a PDF
- Print to PDF, then convert to RTF: wrong, no conversion at all (however this works on Win2003 x64)
I read again the docs talking about SetLicenseKey and noticed that they say it has to be called right after LoadLibrary.
I'm using VFP 9 and loading cdintf.dll dynamically, so this implies that I'll have to call SetLicenseKey right after I define amyuni functions (in order to tell VFP to search for them in that specific DLL..): is it ok?
Anyway I just tried this one... and it still won't help with 3.02 drivers: PDF2RTF keeps returning 0 and doing nothing...
On a side note: if I'm loading the dll in order to setup and enable the printer driver, isn't that enough to unlock those PDF2xxx functions until the DLL gets unloaded? Just an idea, since I noticed that calling SetLicenseKey
after EnablePrinter has the only effect of blocking those functions, while on the other side if I only call EnablePrinter and then those post-processing functions it usually works... but I'd like to be sure of which is the expected way to use them
Thank you for the attention,
have a nice day!

Luke