Android - Pdf Render Custom View - 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: Android - Pdf Render Custom View

Android - Pdf Render Custom View 8 months 3 weeks ago #12820

  • doubleeye
  • doubleeye's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
Good day, I have my pdf rendered and working as expected using the default view from the ReaderController.java
How do I use my own custom layout to render the pdf in? I would like to add a toolbar at the top of the page.
Thanks!

eg. opening pdf
m_vPDF = new ReaderController(this);
m_vPDF.open(doc);
setContentView(m_vPDF);

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

Android - Pdf Render Custom View 8 months 3 weeks ago #12821

  • Davide
  • Davide's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 785
  • Karma: 16
  • Thank you received: 61
Hi,
ReaderController is an old class using deprecated classes, so I invite you to check and use RDPDFReader from the demo. This is a new module that improves the performance and has higher zoom levels.
I suggest you to look at PDFViewAct, in the onCreate you will find the m_layout (pdf_layout.xml) and you can edit it as you want.
In PDFViewController you will find all the UI handling.
The following user(s) said Thank You: doubleeye

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

Android - Pdf Render Custom View 8 months 3 weeks ago #12822

  • doubleeye
  • doubleeye's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
It seems to work as expected,
I have replaced the old PDFReader with the new class com.radaee.reader.PDFLayoutView.
And creating a custom com.radaee.reader.PDFViewAct with my own UI.
Thanks!

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

  • Page:
  • 1
Powered by Kunena Forum