Null exception in drawImage - 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...
Here you should submit your bug reports with logcat.
  • Page:
  • 1

TOPIC: Null exception in drawImage

Null exception in drawImage 4 years 5 months ago #6433

  • maxbax666
  • maxbax666's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 4 years 5 months ago #6434

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
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 4 years 5 months ago #6436

  • maxbax666
  • maxbax666's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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