[PDFNet] [Android] How to use a background image behind the white pages in PDFViewCtrl

Q: I understand I can use PDFViewCtrl.setClientBackgroundColor() to set the color of the background behind the pages, ut can I set the background to an image?

A: Yes. You are able to do this by setting the background transparent and set PDFViewCtrl’s background drawable to that image. The following is the sample code:

pdftron.PDF.PDFViewCtrl mPDFView;

boolean transparent = true;

mPDFView.setClientBackgroundColor(255, 255, 255, transparent);

Drawable draw;