cesarvr / pdf-generator

Cordova plugin to generate pdf in the client-side
MIT License
106 stars 62 forks source link

pdf variable undefined error #67

Closed attigo2010 closed 6 years ago

attigo2010 commented 6 years ago

Hello,

I am trying to use this plugin, but I am getting error pdf variable undefined. Could you please help me realize where the global pdf variable is defined. Am I missing something, how do you think?

Thank you very much in advance! Kind regards!

cesarvr commented 6 years ago

Umm I think the problem is that the plugin didn't get installed, can you try the following:

cordova plugins

You should see the plugin, if you don't: Try reinstall the plugin you can follow this directions.

If you see it, then that means that the plugin didn't make it to the .APK (Android Executable) or .IPA (iOS Executable).

Try, delete your platform folder:

rm -r platform

Then cordova platform add android ios , This command will create the two projects (Android, iOS) and will try to load the plugins, keep an eye in the logs if some error happens.

Cheers.

attigo2010 commented 6 years ago

Thank you very much! For some reason, it wasn't installed. :)