To view the pdf without opening 3th party app

ALL BLOCKS

LoadPDF

LoadPDF function will fire PdfLoaded event if success, or OnError event if failed.

2023-05-16T03:11:11.png

parametertypedescription
layoutArrangementwhere the pdf file to show
pdfPathStringpath of the pdf file. start with // means from assets, start with /sdcard/ means from sdcard, start with no / means from ASD.
totalPageNumberpages of the pdf file

Preview

This needs to be called after PdfLoaded event. You can preview all pages or only partially.
2023-05-16T03:17:45.png

parametertypedescription
pageRangeStringpage range you want to show, like: 3, or 1-10, or 1,3,5, or 1-5,7-9

Goto

scroll to page you want to view.
2023-05-16T03:20:44.png

parametertypedescription
pageNumberpage you want to show

Scrolled

fired when the view is scrolled.
2023-05-16T03:22:13.png

parametertypedescription
pageInViewNumberpage now in view

OnError

2023-05-16T03:23:40.png

parametertypedescription
errorStringreason of error

SIMPLE DEMO

2023-05-16T03:38:32.png

FAQ

How to view pdf online internet?

You need to download the pdf to local (like ASD) first.

DOWNLOAD LINK

cn.kevinkun.PdfViewer.aix

标签: none

仅有一条评论

  1. +8615555151447

    Please add rendering option in this extension after zooming in the pdf file.

添加新评论