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

Document.NewImage always return true

More
IP: 89.190.191.227 7 years 1 day ago #14559 by Righetti
I I m testing your library with demo license key "premium license", I change my app id like "com.radaee.reader" but when I try to insert an image in document the API "NewImage" always return true and the setCache always return false too.

I can write on the app file system, my code write some files ok I don't think that's problem is for security permission.

I need to test this functionality for decide to buy the license for developing a project.

Can You help me?

Thanks in advance
More
IP: 111.196.247.207 7 years 1 day ago - 7 years 1 day ago #14561 by radaee
current version, no need setCache before NewImage call.
if no setCache called, it generate compress data in memory.
but we still recommand that you call this method, because memory size is limited.

if setCache always return false the possible reason is:
1.it maybe setCache already invoked.
2.path is invalid or file can't be written.
Last edit: 7 years 1 day ago by radaee.
More
IP: 89.190.191.227 6 years 11 months ago #14567 by Righetti
The problem is not the api "setCache" or "newImage" I found that all the API that request to modify or save PDF always return "false" or NULL.

I know that for use some API I have to set my package ID as "com.radaee.reader", I do that, (my license type is set to "2" 'premium license') but the result is the same!!!

I need to test this functionality before decide to buy a regular license.

Please help me.

Thanks in advance.

Tommaso.
More
More
IP: 111.196.247.207 6 years 11 months ago #14569 by radaee
if save always return false, mean the file can't be written.
no access right to sdcard? or using Document.OpenStream() with readonly stream object?
More
IP: 37.183.44.177 6 years 11 months ago #14570 by support
Yes, I confirm: save api fails when the document is not writable.

Some double check (I know you already provided such details... but better to recap):
- are you asking for explicit (not only in the manifest) r/w access to storage?
- are you able to run the demo project, add an annotation and save it on the file?
- which kind of file access are you using? memory blob, stream, direct file system access?
- which device/operating system are you using?
Time to create page: 0.584 seconds
Powered by Kunena Forum