Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Creation of new document returns error -10

  • panton
  • Topic Author
  • New Member
  • New Member
More
10 years 11 months ago #8750 by panton
I have the Premium license. I'm trying to create a new PDF document on internal storage, but I always get error -10. See my code below:

final String path = getFilesDir() + "/result.pdf";
Document dest = new Document();
int result = dest.Create(path);
More
10 years 11 months ago #8755 by nermeen
We have checked your code and it's working with the demo project (activated with a premium license), check the screenshot:



The method returns -10 in 3 cases:
--path is null or invalid
--premium license is not actived.
--can't create/open file for path, if occoured.
The path is aparently valid, so make sure that the premium license is activated correctly, and that there is no write-premission problem.
  • panton
  • Topic Author
  • New Member
  • New Member
More
10 years 11 months ago #8756 by panton
Replied by panton on topic Creation of new document returns error -10
I'm doing the following to activate the Premium license:
Global.Init(this, 2, "Gaia Mobile", "[email protected]", "");
Is all right?
More
10 years 11 months ago #8758 by nermeen
The method call is correct, but we have realized that the key was calculated based on a wrong package name...
Soon you will recieve the correct key calculated based on the correct package name.

When the license will be activated correctly, the watermark should disappear, and the method Global.Init should return true.
Time to create page: 0.418 seconds
Powered by Kunena Forum