Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

Document.NewImage always return true 1 year 7 months ago #14559

  • Righetti
  • Righetti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
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

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

Document.NewImage always return true 1 year 7 months ago #14561

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1045
  • Thank you received: 64
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.

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

Last edit: by radaee.

Document.NewImage always return true 1 year 7 months ago #14567

  • Righetti
  • Righetti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
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.

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

Document.NewImage always return true 1 year 7 months ago #14568

  • support
  • support's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 620
  • Thank you received: 51

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

Document.NewImage always return true 1 year 7 months ago #14569

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1045
  • Thank you received: 64
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?

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

Document.NewImage always return true 1 year 7 months ago #14570

  • support
  • support's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 620
  • Thank you received: 51
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?

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

Powered by Kunena Forum