From which platform are you doing such transformation?
If you are on Windows, then since the AFP2PDF is in 32bit, then "maybe", you have reached a problem... which could not be there with the Linux/Unix version, which is 64bits.
Otherwise... no idea...