RadaeePDF.com :: Topic: Sample code for settings background of PDF (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Sample code for settings background of PDF

Sample code for settings background of PDF 2 years 6 months ago #8298

Hello! I created an app based on the PDFHttpDemo. Now it seems everything works fine. I am now at the stage to work on the design a bit. For this reason I would like to set a background picture or color for the PDF instead of the grey color, since the document itself does not fit the screen. I found in the javadocs the PDFViewDual class with function vOpen(m_doc, 50, Color.BLUE, PDFListener). I think this would be the place to se a bakcground color. Am I right? Can you provide a smaple code, how to use this class to open a PDF. In the sample project it is done on a different way with a different open function where I cannot set color parameters.

Regards,

Balázs
The administrator has disabled public write access.

Sample code for settings background of PDF 2 years 6 months ago #8301

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 656
  • Thank you received: 37
  • Karma: 17
If you are using ReaderController, you can modify the open method:
m_pdv.vOpen(doc, 4, your color, this);
The administrator has disabled public write access.
Powered by Kunena Forum