時間:2023-06-10 15:24:01 | 來源:網(wǎng)站運營
時間:2023-06-10 15:24:01 來源:網(wǎng)站運營
Aspose.Words for .NET使用文檔教程(2):克隆文檔:Aspose.Words無需Microsoft Word也可在任何平臺上滿足Word文檔的一切操作需求。本文將與大家分享如何檢測文件格式和檢查格式兼容性。// For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-.NET// The path to the documents directory.string dataDir = RunExamples.GetDataDir_WorkingWithDocument();// Load the document from disk.Document doc = new Document(dataDir + "TestFile.doc");Document clone = doc.Clone();dataDir = dataDir + "TestFile_clone_out.doc";// Save the document to disk.clone.Save(dataDir);
// For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-.NET// The path to the documents directory.string dataDir = RunExamples.GetDataDir_QuickStart();// Load the document from disk.Document doc = new Document(dataDir + "Template.doc");PdfSaveOptions saveOptions = new PdfSaveOptions();saveOptions.DisplayDocTitle = true;dataDir = dataDir + "Template_out.pdf";// Save the document in PDF format.doc.Save(dataDir, saveOptions);
// For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-.NETDocument doc = new Document(inputFileName);doc.Protect(ProtectionType.AllowOnlyFormFields, "password");
// For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-.NETDocument doc = new Document(inputFileName);doc.Unprotect();
// For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-.NETDocument doc = new Document(inputFileName);ProtectionType protectionType = doc.ProtectionType;
關(guān)鍵詞:教程,使用
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。