Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Blue Pages

More
9 years 9 months ago #10643 by josalo
Blue Pages was created by josalo
HI, Im using the demo SDK and considering buying it. I implemented PDFViewPager sucessfully in my android app but i can only see the first page. The rest are in blue. Is this a limitation of the demo version?

Thanks
More
9 years 9 months ago #10644 by support
Replied by support on topic Blue Pages
I suspect it could be an issue related to your code or to the pdf you are working with.
May you upload the file so we could check it?
More
9 years 9 months ago - 9 years 9 months ago #10645 by josalo
Replied by josalo on topic Blue Pages
Im trying to make it work as an React Native UI Module. It happens to me with several PDFs, im attaching you one of them. Page 3 renders blue.

dl.dropboxusercontent.com/u/2515162/GPA-...aginitis-2016-OK.pdf

Here is my code:
Code:
public class PdfViewManager extends SimpleViewManager<RelativeLayout> { public static final String REACT_CLASS = "RCTRadaeePDF"; private ThemedReactContext context; private Document m_doc; private PDFFileStream m_stream; private RelativeLayout m_layout; private PDFViewPager m_pager; public PdfViewManager(Activity mActivity) { Global.Init(mActivity); Global.debug_mode = false; } @Override public String getName() { return REACT_CLASS; } @Override public RelativeLayout createViewInstance(ThemedReactContext context) { m_layout = (RelativeLayout) LayoutInflater.from(context).inflate(com.radaee.viewlib.R.layout.pdf_fragment, null); m_pager = (PDFViewPager)m_layout.findViewById(R.id.pdf_pager); this.context = context; return m_layout; } @ReactProp(name = "src") public void setSrc(RelativeLayout view, @Nullable String src) { m_doc = new Document(); m_stream = new PDFFileStream(); boolean ok = m_stream.open(src); if( !ok ) return; int ret = m_doc.OpenStream(m_stream, null); if( ret != 0 ) { m_doc.Close(); m_doc = null; return; } m_pager.PDFOpen(m_doc,1); } @ReactProp(name = "pageNumber") public void setPageNumber(RelativeLayout view, int pageNum) { m_pager.setCurrentItem(pageNum); } }
Last edit: 9 years 9 months ago by josalo.
More
9 years 9 months ago #10647 by Davide
Replied by Davide on topic Blue Pages
Hi,
I have checked your pdf with the View Pager of the demo library (PDFViewPager) and it works properly.
What version of the library are you using? Can you reproduce the issue with the last version of the demo project?
www.radaeepdf.com/download/download-prev.../34-radaeepdf-362rc3
Time to create page: 0.441 seconds
Powered by Kunena Forum