Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Sample code for settings background of PDF 9 years 3 months ago #8298

  • balazs.gyori
  • balazs.gyori's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
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

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

Sample code for settings background of PDF 9 years 3 months ago #8301

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
If you are using ReaderController, you can modify the open method:
m_pdv.vOpen(doc, 4, your color, this);

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

  • Page:
  • 1
Powered by Kunena Forum