Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

A little noob help please 4 years 4 months ago #14716

  • robertlforsyth
  • robertlforsyth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
Cordova Version -

Works great on Android, but when I use on iOS (Catalina, XCode 11, latest Cordova), in BOTH my app and the demo app from git, the player loads a blank screen and the debug window fills up with:

CGImageCreate: invalid image size: 0 x 0
CGDataProviderCreateDirect: invalid image size = 0

hundreds of times and the PDF never loads. The PDF is valid and it works as expected in Android and loads REALLY fast.

Any thoughts or a direction I could start at?

Thanks!

Please Log in or Create an account to join the conversation.

A little noob help please 4 years 4 months ago #14718

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
Can you share us your javascript code about opening pdf?
If you want to open PDF file from Documents folder you should use RadaeePDFPlugin.open():
RadaeePDFPlugin.open(
            {
                //Use "file://" to reach Documents directory
                url: "file://help.pdf", //The path of the pdf to open
                password: "" //password if needed
            },
            function (message) {
                console.log("Success: " + message);
            },
            function (err) {
                console.log("Failure: " + err);
            });
If you want to open PDF from assets you should use RadaeePDFPlugin.openFromAssets():
RadaeePDFPlugin.openFromAssets(
            {
                url: "yourDocument.pdf", //The path of the pdf to open
                password: "" //password if needed
            },
            function (message) {
                console.log("Success: " + message);
            },
            function (err) {
                console.log("Failure: " + err);
            });

Please Log in or Create an account to join the conversation.

A little noob help please 4 years 4 months ago #14728

  • robertlforsyth
  • robertlforsyth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
The code is your stock app. All I get is a gray screen a page counter at the top (1/8) and the back arrow. see attached
Attachments:

Please Log in or Create an account to join the conversation.

A little noob help please 4 years 4 months ago #14731

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
From your screenshot looks like that you try to open http without activating license.
I suggest you to run app, tap "activate license" and then "open http".
If you want to open your files from Documents folder or assets, the suggest you to edit /yourProjectPath/RadaeePDF-Cordova/platforms/ios/www/js/index.js as I've suggested before

Please Log in or Create an account to join the conversation.

Last edit: by federico.

A little noob help please 4 years 4 months ago #14734

  • robertlforsyth
  • robertlforsyth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
That did it for the test app. Do I need to purchase a license first so i can test the iOS version? If yes, do I need to purchase a simple license for each platform(iOS and Android)?

THANK YOU FOR YOUR HELP AND ITS A GREAT PRODUCT!

- Robert

Please Log in or Create an account to join the conversation.

A little noob help please 4 years 4 months ago #14735

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi Robert,
Too see kinds of license I suggest you to see RadaeePDFPlugin.activateLicense method index.js in RadaeePDF-Cordova/demo/js/ from GitHub project source

Please Log in or Create an account to join the conversation.

Last edit: by federico.
  • Page:
  • 1
Powered by Kunena Forum