官网中并没有看到iOS可以用到的库
感谢您的查询。
Aspose.Words for .NET 和Aspose.Cells for .NET 都还提供Xamarin.iOS Dll,从而可以使用Visual Studio或Xamarin Studio进行本机iOS开发。您可以使用Aspose.Words和Aspose.Cells直接在本机iOS应用程序中执行各种Word文档和Excel电子表格处理任务。
请在安装目录的发行档案中的相关文件夹中找到相关Dll。
我现在Xamarin.iOS项目中使用word转pdf时,运行时报"The document appears to be corrupted and cannot be loaded."错误。
以下是我写的代码:
using Foundation;
using System;
using UIKit;
using Aspose.Words;
namespace ConvertWordToPDF
{
public partial class ViewController : UIViewController
{
public ViewController(IntPtr handle) : base(handle)
{
}
public override void ViewDidLoad()
{
base.ViewDidLoad();
// Perform any additional setup after loading the view, typically from a nib.
Document document = new Document("/Users/jie/Desktop/iPhoneOK.docx");
document.Save("/Users/jie/Documents/SVN/iPrint/PDF&PNG/APPRZ.pdf");
}
public override void DidReceiveMemoryWarning()
{
base.DidReceiveMemoryWarning();
// Release any cached data, images, etc that aren't in use.
}
}
}
请检查以下文章的“ Xamarin平台说明”和“ Xamarin.iOS附加要求”部分:
希望这可以帮助。