Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Sample code for settings background of PDF

More
IP: 192.168.0.71 11 years 2 months ago #8298 by balazs.gyori
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
More
IP: 192.168.0.158 11 years 2 months ago #8301 by nermeen
If you are using ReaderController, you can modify the open method:
Code:
m_pdv.vOpen(doc, 4, your color, this);
Time to create page: 0.371 seconds
Powered by Kunena Forum