file-conversion

Quickly Convert (.rtf|.doc) Files to Markdown Syntax with PHP

北城余情 提交于 2019-12-02 13:53:22
I've been manually converting articles into Markdown syntax for a few days now, and it's getting rather tedious. Some of these are 3 or 4 pages, italics and other emphasized text throughout. Is there a faster way to convert (.rtf|.doc) files to clean Markdown Syntax that I can take advantage of? David If you happen to be on a mac, textutil does a good job of converting doc, docx, and rtf to html, and pandoc does a good job of converting the resulting html to markdown: $ textutil -convert html file.doc -stdout | pandoc -f html -t markdown -o file.md I have a script that I threw together a while

How to transfer Nifti file into .mat Matlab file?

牧云@^-^@ 提交于 2019-12-02 10:11:36
I have a Nifti file, the size of which is 62*62*38. How can I transfer the Nifti file to .mat Matlab file? This can read NIFTI as well as many other medical image file types into MATLAB arrays, which you can then save as .mat files. Most medical imaging data can be manipulated effectively using some kind of toolbox, such as SPM. However, if you need to gain access to the raw matrix I've always used NIfTI tools from the Mathworks file exchange site ( here ). There are two functions that are relevant here: load_nii and load_untouched_nii . The first function load_nii takes care of situations

Google Drive: Automatically convert files on upload?

徘徊边缘 提交于 2019-12-02 04:25:53
Is it possible to get Google Drive to automatically convert uploaded documents to the native format? I know it works with manual upload (i.e. Google Drive can auto-convert files you upload via the website), but I want to avoid having to upload every file by hand. I'd prefer to use the API, or better yet, dump the files in my ~/Google Drive folder. Using the API, you can pass the convert=true parameter to files.insert . The uploaded file will attempt to be converted to a native Google Docs format. Sure, see this answer . Note you can upload a text file or a csv file and set its content type to

How can I use PowerShell to `save as…` a different file extension?

我与影子孤独终老i 提交于 2019-12-01 13:30:19
I'm using the following powershell script to open a few thousand HTML files and "save as..." Word documents. param([string]$htmpath,[string]$docpath = $docpath) $srcfiles = Get-ChildItem $htmPath -filter "*.htm*" $saveFormat = [Enum]::Parse([Microsoft.Office.Interop.Word.WdSaveFormat], "wdFormatDocument"); $word = new-object -comobject word.application $word.Visible = $False function saveas-document { $opendoc = $word.documents.open($doc.FullName); $opendoc.saveas([ref]"$docpath\$doc.FullName.doc", [ref]$saveFormat); $opendoc.close(); } ForEach ($doc in $srcfiles) { Write-Host "Processing :"

JSON to JSON-LD

怎甘沉沦 提交于 2019-12-01 09:02:56
I want to convert JSON file into JSON-LD. Can anyone tell me, what are the procedures/steps should be done to do that? or Is there any tools for doing that conversion done? Thanks In most cases, the only thing you need to do is to create a JSON-LD context and add it to your JSON documents. You can either embed it directly or put it in a different file and simply reference it. Depending on the structure of your JSON documents and the vocabulary you are using, you might need to change the JSON slightly. Typicall this involves adding identifiers in the form of URLs to your JSON objects ( @id )

convert war file to exe file [closed]

家住魔仙堡 提交于 2019-12-01 07:54:35
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have a file in .war format. Is it possible to convert it to an .exe or .jar file? 回答1: First of all why you need to do such thing? As stated on wiki : A war file is a JAR file used to distribute a collection of

HTML to RTF Converter for .NET

本秂侑毒 提交于 2019-12-01 05:21:39
I've already seen lots of posts on the site for RTF to HTML and some other posts talking about some HTML to RTF converters, but I'm really trying to get a full breakdown of what is considered the most widely used commercial product, open source product or if people recommend going home grown. Apologies if you consider this a duplicate question, but I'm trying to create a product matrix to see what is the most viable for our application. I also think this would be helpful for others. The converter would be used in an ASP.NET 2.0 application (we're upgrading to 3.5 shortly but still sticking

How to convert .Rdata format into text file format

谁都会走 提交于 2019-11-30 17:39:58
I am a novice in R and I am trying to convert .Rdata format file into comma delimited text file format. Can someone help me out regarding this? load("yourData.RData") ls() #returns a list of all the objects you just loaded (and anything else in your environment) write.csv(theItemOfInterestFromYourDRadataFileAsThereMayBeMoreThanOneThingInthere, file="yourCSV.csv") An .RData file can contain more than 1 object of any class. If your file contains more than 1 object of data.frame -like class, then the following should work resave <- function(file){ e <- new.env(parent = emptyenv()) load(file,

Is there a way to convert SWF to HTML5 [closed]

 ̄綄美尐妖づ 提交于 2019-11-30 13:25:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Since Swiffy is gone, I was wondering if there are still ways to convert an SWF to HTML5? 回答1: If it is Actionscript 3, you can use: http://www.createjs.com/zoe If it is Actionscript 2, you run into problems. My hope is that Swiffy will become an open source project in the future. If so, it should be available on

Is there a way to convert SWF to HTML5 [closed]

元气小坏坏 提交于 2019-11-30 07:39:39
Since Swiffy is gone, I was wondering if there are still ways to convert an SWF to HTML5? If it is Actionscript 3, you can use: http://www.createjs.com/zoe If it is Actionscript 2, you run into problems. My hope is that Swiffy will become an open source project in the future. If so, it should be available on github . Software found: Adobe Wallaby (install Adobe Air beforehand, not working with AS2 fla-files) Flabaco (only for banners) Commercial products: SWF to HTML5 converter (not tested): http://www.fla-exporter.com/ Adobe Flash Professional CS6 can publish FLA files as HTML5 Adobe's