Object reference not set to an instance of object

I know this has been raised multiple times in this forum but I cannot find a solution to this problem. Basically I installed a fresh copy (version 2.5.3) of PDFCreator on Windows 7 Pro machine, then when I go to C:\Program Files\PDFCreator\COM Scripts\JS Scripts\Basics, double-click on one of the example - TestPage2PDF.js, it ran with multiple popup until it hit an error - “Object reference not set to an instance of object”.

I have tried using C# form - also present the same problem when the code hit convertTo method.

Can you please help? I can reproduce using version 2.5.2 and 2.4.1 as well.

Please help. Thanks.

Hi,

this should be fixed in v 2.5.3 but it might be a permission problem, the testpage script tries to write the PDF to the same folder the script is in and since it is located below program files, it probably doesn’t have permissions to write there. Please try copying the entire COM samples folder to your desktop or any other folder where your useraccount has writing permissions and try again.

Best regards,

Robin

Great, thanks Robin! That is very helpful! I can confirm now it works in C# form and JS with version 2.5.3.

Thanks again.