- Thank you received: 0
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
-
Less
More
10 years 11 months ago #8750
by panton
Creation of new document returns error -10 was created 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);
final String path = getFilesDir() + "/result.pdf";
Document dest = new Document();
int result = dest.Create(path);
10 years 11 months ago #8755
by nermeen
Replied by nermeen on topic Creation of new document returns error -10
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.
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
-
Less
More
- Thank you received: 0
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?
Global.Init(this, 2, "Gaia Mobile", "[email protected]", "
Is all right?
10 years 11 months ago #8758
by nermeen
Replied by nermeen on topic Creation of new document returns error -10
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.
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