Currently when we are rendering the first page of PDF in the screen using your PDFViewer , we are unable to render the entire page on
the screen of the device rather the full page is viewed only on scrolling mode.
We need to implement the Fit to screen for the first page of the PDF so that the entire page is visible on the screen without scrolling.
The classes in charge to display a page apply systematically a fit width.
If you want apply a fit height, you have to modify few lines code.
For instance, if you use the PDFViewVert you have to modify the method : vert_set_ratio
private void vert_set_ratio()
if( m_doc == null ) return;
float max_w = m_doc.GetPageWidth(0);
float max_h = m_doc.GetPageHeight(0);
int page = 1;
int pages_cnt = m_doc.GetPageCount();
while( page < pages_cnt )
float w = m_doc.GetPageWidth(page);
float h = m_doc.GetPageHeight(page);
if( max_w < w ) max_w = w;
if( max_h < h ) max_h = h;
This method exist in this package com.radaee.pdfex. But we are using package com.radaee.view where PDFViewVert call exist. So if we copy the class and paste there any problem is there.
Let us know because same class exist in two package but different code. we are using 2.9.2.