是的,PDFTron可以在Windows、Mac OS、Linux、Android、iOS中做出集成查看ppt、word、excel功能,因為這個SDK開發包支持JS|JAVA|C#|Swift|C。
比如在Android應用中使用,代碼如下:
import com.pdftron.pdf.controls.DocumentActivity;
// from internal storage
final Uri localFile = Uri.fromFile(new File("tiger.pdf"));
DocumentActivity.openDocument(this, localFile);
IOS應用中使用:
let documentController = PTDocumentController()
// Open a file from URL.
let url: URL = URL(string:"網址/sample.pdf")!
documentController.openDocument(with: url)
self.navigationController?.pushViewController(documentController, animated: true)
整個集成都比較簡單
打破零回復...
登錄 慧都網發表評論