ms-word

Converting Docx Files To Text In Swift

[亡魂溺海] 提交于 2021-01-01 08:57:01
问题 I have a .docx file in my temporary storage: let location: NSURL = NSURL.fileURLWithPath(NSTemporaryDirectory()) let file_Name = location.URLByAppendingPathComponent("5 November 2016.docx") What I now want to do is extract the text inside this document. But I cannot seem to find any converters or methods of doing this. I have tried this: let file_Content = try? NSString(contentsOfFile: String(file_Name), encoding: NSUTF8StringEncoding) print(file_Content) However it prints nil. So how do I

MacOS Automator + Applescript solution for exporting docx to pdf

我与影子孤独终老i 提交于 2020-12-29 18:22:03
问题 Scratching my head after reading lots of different threads on this and tried a bunch of scripts but none seem to work. I'd like to use Automator to automate Word 2016 conversion of a selection of docx files to pdf. Used the following Automator Service: Used the following script: on run {input, parameters} tell application id "com.microsoft.Word" activate open input set doc to name of active window set theOutputPath to (input & ".pdf") save as active document file name theOutputPath file

MacOS Automator + Applescript solution for exporting docx to pdf

爱⌒轻易说出口 提交于 2020-12-29 18:21:36
问题 Scratching my head after reading lots of different threads on this and tried a bunch of scripts but none seem to work. I'd like to use Automator to automate Word 2016 conversion of a selection of docx files to pdf. Used the following Automator Service: Used the following script: on run {input, parameters} tell application id "com.microsoft.Word" activate open input set doc to name of active window set theOutputPath to (input & ".pdf") save as active document file name theOutputPath file

MacOS Automator + Applescript solution for exporting docx to pdf

你说的曾经没有我的故事 提交于 2020-12-29 18:18:21
问题 Scratching my head after reading lots of different threads on this and tried a bunch of scripts but none seem to work. I'd like to use Automator to automate Word 2016 conversion of a selection of docx files to pdf. Used the following Automator Service: Used the following script: on run {input, parameters} tell application id "com.microsoft.Word" activate open input set doc to name of active window set theOutputPath to (input & ".pdf") save as active document file name theOutputPath file

nodejs npm libraries to access and modify microsoft word documents

人盡茶涼 提交于 2020-12-29 12:11:59
问题 Do you know if it is possible to search specific text like "xAx" into a Microsoft Word file (.doc or .docx) hosted on a website, replace it with some other text input by the user and make the file available for download using nodejs? Is there a npm library that can do that? If not it is possible to manipulate a PDF file instead? Please note that I do not want to create the document but manipulate a template file in the server. Thank you for your help. 回答1: There is project https://github.com

How to add embed attachment's to word document using apache poi

只愿长相守 提交于 2020-12-15 06:04:49
问题 i'm trying to add embed excel file to table cell in a word document. But am not able to see any option using apache poi.someone can help me to how to do it or Is their any other ways to do that in java? 来源: https://stackoverflow.com/questions/64818398/how-to-add-embed-attachments-to-word-document-using-apache-poi

VBA - Set Default Save As Name Without Opening Dialog

故事扮演 提交于 2020-12-13 17:55:25
问题 I have created a Word document using VBA in Access by creating a new Word.Application, importing a document with Documents.Add and then making the desired changes. Once the changes are made the document is activated and Word is given focus. I'm trying to change the suggested name that appears when a user first tries to click "Save As" in this document, but without opening the dialog immediately. I have set a title using .ActiveDocument.BuiltInDocumentProperties(wdPropertyTitle) = "Title" once

VBA - Set Default Save As Name Without Opening Dialog

℡╲_俬逩灬. 提交于 2020-12-13 17:54:05
问题 I have created a Word document using VBA in Access by creating a new Word.Application, importing a document with Documents.Add and then making the desired changes. Once the changes are made the document is activated and Word is given focus. I'm trying to change the suggested name that appears when a user first tries to click "Save As" in this document, but without opening the dialog immediately. I have set a title using .ActiveDocument.BuiltInDocumentProperties(wdPropertyTitle) = "Title" once

VBA - Set Default Save As Name Without Opening Dialog

空扰寡人 提交于 2020-12-13 17:49:28
问题 I have created a Word document using VBA in Access by creating a new Word.Application, importing a document with Documents.Add and then making the desired changes. Once the changes are made the document is activated and Word is given focus. I'm trying to change the suggested name that appears when a user first tries to click "Save As" in this document, but without opening the dialog immediately. I have set a title using .ActiveDocument.BuiltInDocumentProperties(wdPropertyTitle) = "Title" once

How to insert and resize an image in Word?

浪尽此生 提交于 2020-12-11 08:59:48
问题 I have written a VBScript to automate the creation of a Word document. I'm using the following code to insert an image, but I can't seem to find a way to then resize it. objSelection.InlineShapes.AddPicture("C:\test.jpg") 回答1: The AddPicture method returns a handle to the inserted object, so you could do something like this: Set pic = objSelection.InlineShapes.AddPicture("C:\test.jpg") pic.Height = 100 pic.Width = 200 来源: https://stackoverflow.com/questions/28194878/how-to-insert-and-resize