ios itself supports direct preview of pdf files, so you can create a page and use js to judge it. If it is ios, directly access the pdf file to preview. If it is android, jump to other pages for processing. I also searched online. In addition to pdfjs, there is also jquery's touchPDF, which relies on pdfjs, but the effect is not very good and cannot be displayed in full screen
No, the pdf is converted into images on the server side and then displayed.
pdfjs can be implemented, but I have tested it and it only works on Android. There seems to be a problem with ios
Hello, how do you achieve this?
ios itself supports direct preview of pdf files, so you can create a page and use js to judge it. If it is ios, directly access the pdf file to preview. If it is android, jump to other pages for processing. I also searched online. In addition to pdfjs, there is also jquery's touchPDF, which relies on pdfjs, but the effect is not very good and cannot be displayed in full screen