We have tested your code, and it's working fine (the bitmap is added and rendered correctly).
The only difference is the bitmap itself...
How do you initialize it?
Can you try with a bitmap from resources, to make sure that the bitmap itself is the problem?
The bitmap we tested with is the one from the resources of the demo project:
there are some condition for AddAnnotBitmap():
1. invoked Document.SetCache(), and only once. you can set debug point in Document.SetCache() to ensure only once invoked.
2. Bitmap pizles format must be RGBA32.
3. Page.ObjsStart or Page.RenderXXX invoked, and Page.Close() not invoked.
We have tried with the pdf_icon from demo project.But no effect at all.
Actually this problem occurs when following these steps..
PdfActivity(where add bitmap) -> on save it redirects to Preview Activity -> Back -> PdfActivity(resumes activity).
If I stay on PdfActivity and add bitmap its working ok.
Does above flow effect any object or method?