Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Here you should submit your bug reports with logcat.
  • Page:
  • 1

TOPIC:

Null exception in drawImage 10 years 10 months ago #6433

  • maxbax666
  • maxbax666's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Hello, I'm using your library with a premium license.
I need to create in Android some pdf with an image per page. I have tested and taken parts of code from your examples.
During the generation of the pdf, every so often, for no apparent reason, the function "drawImage (hand, image.hand);" goes to "null Exception".
In debug mode I can not replicate the error, and in running mode only after N insertions.
I think "page.AddResImage (dimg);" returns null, but I don't know why.
For us it is a big problem that does not allow us to go live.
Do you have suggestions?

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

Null exception in drawImage 10 years 10 months ago #6434

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Do you invoke: m_doc.SetCache( file_cache );//set temporary cache for editing.

You can also check www.androidpdf.mobi/forum/Android-develo...remely-slow?start=12

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

Null exception in drawImage 10 years 10 months ago #6436

  • maxbax666
  • maxbax666's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Yes:

String file_cache = Global.tmp_path + "/temp.dat";
m_doc = new Document();
m_doc.Create(file);
m_doc.SetCache(file_cache);
...

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

  • Page:
  • 1
Powered by Kunena Forum