PreviewAnyFile
Whatever the file is PDF document, Word document, Excel, office document,zip archive file, image, text, html or anything else, you can perform a preview by this cordova Plugin to preview any file in native mode by providing the local or external URL.
Requires Cordova plugin: cordova-plugin-preview-any-file
. For more info, please see the
previewAnyFile plugin docs.
Cordovaの問題で困っていますか?

本格的なプロジェクトを構築している場合、トラブルシューティングに時間を費やす余裕はありません。Ionicのエキスパートが、保守、サポート、統合に関する公式サポートを提供しています。
インストール
Ionic Native Enterprise はIonic Teamが完全にサポートしメンテナンスしているプラグインを利用できます。 詳しくみる か、 エンタープライズプラグインに興味があれば 連絡ください
サポートしているプラットフォーム
- Android
- iOS
利用方法
React
Angular
import { PreviewAnyFile } from '@ionic-native/preview-any-file/ngx';
constructor(private previewAnyFile: PreviewAnyFile) { }
...
this.previewAnyFile.preview('file://filepath.ext')
.then((res: any) => console.log(res))
.catch((error: any) => console.error(error));