Error creating document -10 - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Error creating document -10

Error creating document -10 4 years 1 month ago #7411

  • AntonGerasimenko
  • AntonGerasimenko's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Help create a new document.
When i use this construction:

final String path= "/storage/emulated/0/Download/noname.pdf";
Document doc = new Document();
doc.Create(path);

Metod doc.Create(path) return -10.

Help create a new document correctly. Thanks

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

Error creating document -10 4 years 1 month ago #7413

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
-10 -> access denied or invalid file path

make sure the path is a valid one...

Check PDFTestAct.onCreate for a working example.

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

Error creating document -10 4 years 1 month ago #7417

  • AntonGerasimenko
  • AntonGerasimenko's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
You example PDFTestAct.onCreate is worked, but if i use this activity in my project, i make -10 rezult.
My path and example path is the same. "/sdcard/test.pdf";


AndroidManifest use WRITE_EXTERNAL_STORAGE permission .

I use activeProfessional license.Release: 2.9.11


what else could be the cause of a failed attempt to create a file?

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

Error creating document -10 4 years 1 month ago #7431

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
The document creation needs a premium license.

It's working in the demo project, because it's activated with a premium license.

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

  • Page:
  • 1
Powered by Kunena Forum