Sample code for settings background of PDF - 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...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Sample code for settings background of PDF

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

  • balazs.gyori
  • balazs.gyori's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 3 years 3 months ago #8301

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 789
  • Karma: 20
  • Thank you received: 58
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