Microsoft Word 문서 '.doc', Microsoft '.xls'및 Microsoft PowerPoint .ppt 파일을 .txt .csv .rtf .pdf와 같은 다른 지원 형식으로 변환하기위한 간단한 유틸리티.
.txt, .rtf, .csv를 .doc, .xls 또는 .pdf 형식으로 변환하는 데 사용될 수도 있습니다.
이전 Word 문서를 최신 형식으로 변환하는 데 사용할 수 있습니다.
호스트 시스템에 Microsoft Word, Excel 또는 PowerPoint가 설치되어 있어야합니다.
github 릴리스에서 릴리스 다운로드 -https://github.com/tobya/docto/releases/ 추가 정보 https://tobya.github.io/docto/
더 많은 예제에서 사용할 수 있습니다
릴리스에서 .exe를 다운로드하십시오 https://github.com/tobya/docto/releases
초콜릿을 통해 설치할 수 있습니다
Choco Docto를 설치하십시오
최신 버전으로 업그레이드합니다
Choco 업그레이드 Docto
노드 랩퍼는 @kerimg & @brrd에 의해 만들어졌습니다
https://www.npmjs.com/package/node-docto
https://github.com/brrd/msoconvert
버그, 기능 또는 제안에 대해 문제를 기록하십시오.
Microsoft Word 문서를 텍스트로 변환하십시오
docto -f C:DirectoryMyFile.doc -O "C:Output DirectoryMyTextFile.txt" -T wdFormatText
Microsoft Excel 문서를 CSV 텍스트로 변환하십시오
docto -XL -f C:DirectoryMyFile.xls -O "C:Output DirectoryMyTextFile.csv" -T xlCSV
Microsoft Word 문서를 PDF로 변환하십시오 (이를 지원하는 Microsoft Word 버전이 필요합니다).
docto -f C:DirectoryMyFile.doc -O "C:Output DirectoryMyTextFile.pdf" -T wdFormatPDF
모든 Microsoft Word 문서와 디렉토리 및 하위 디렉토리를 PDF로 변환
docto -f "C:Dir with SpacesFilesToConvert" -O "C:DirToOutput" -T wdFormatPDF -OX .pdf
변환 후 원본 파일을 삭제합니다 (-r).
docto -f "C:Dir with SpacesFilesToConvert" -O "C:DirToOutput" -T wdFormatPDF -OX .pdf -R true
각 변환 (-W)에 해고 할 웹 후크 추가
docto -f "C:Dir with SpacesFilesToConvert" -O "C:DirToOutput" -T wdFormatPDF -OX .pdf -W https://toflidium.com/webhooks/docto/webhook_test.php
Webhook은 파일이 변환 될 때마다 외부로 다시 송금 할 수 있도록 각 대화에서 호출 할 수있는 URL입니다. 현재 https 주소는 실험적이므로 문제가있는 경우 문제를 기록하십시오.
야생에서 Docto를 사용하는 경우이 위키 페이지에 세부 정보를 추가하십시오.
OneDrive / Office365 / Word 20xx에서 변환하지 않고 작동하도록 많은 파일을 업그레이드 해야하는 경우 docto를 사용할 수 있습니다. 이 stackexchange 질문을 참조하십시오
https://webapps.stackexchange.com/questions/74859/what-format-word-online-use
Help
Docto Version:%s
Office Version : %s
Open Source: https://github.com/tobya/DocTo/
Description: DocTo converts Word Documents and Excel Spreadsheets to other formats.
Command Line Parameters:
Each Parameter should be followed by its value eg
-f "c:DocsMyDoc.doc"
Parameters markers are case insensitive.
-H This message
--HELP -?
-WD Use Word for Converstion (Default). Help '-h -wd'
--word
-XL Use Excel for Conversion. Help '-h -xl'
--excel
-PP Use Powerpoint for Conversion. help '-h -pp'
--powerpoint
-VS Use Visio for Conversion.
--visio
-F Input File or Directory
--inputfile
-FX Input file search for if -f is directory. Can use .rtf test*.txt etc
Default ".doc*" (will find ".docx" also)
--inputextension
-O Output File or Directory to place converted Docs
--outputfile
-OX Output Extension if -F is Directory. Please include '.' eg. '.pdf' .
If not provided, pulled from standard list.
--outputextension
-T Format(Type) to convert file to, either integer or wdSaveFormat constant.
Available from
https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.interop.word.wdsaveformat
or https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.interop.excel.xlfileformat
or https://docs.microsoft.com/en-us/office/vba/api/powerpoint.presentation.saveas
See current List Below.
--format
-TF Force Format. -T value if an integer, is checked against current list
compiled in. It is not passed if unavailable. -TF will pass through value
without checking. Word will return an "EOleException Value out of range"
error if invalid. Use instead of -T.
--forceformat
-L Log Level Integer: 1 ERRORS 2 STANDARD 5 CHATTY 9 DEBUG 10 VERBOSE. Default: 2=STANDARD
--loglevel
-C Compatibility Mode Integer. Set to an INTEGER value from
https://msdn.microsoft.com/en-us/library/office/ff192388.aspx.
Set the compatibility mode when you want to convert documents to a later
version of word. See help '-h -c' for further info.
--compatibility
-E Encoding Integer: Sets codepage Encoding. See
https://msdn.microsoft.com/en-us/library/office/ff860880.aspx
for more details and values.
--encoding
-M Ignore all files in __MACOSX subdirectory if it exists. Default True.
--ignoremacos
-N Make list of files that take over n seconds to complete.
Use number of seconds over that conversion takes and add to list.
Outputs to filename 'docto.ignore.txt'
--listlongrunning
-NX Ignore any file listed in docto.ignore.txt, created by -N
--ignorelongrunninglist
-G Write Log to file in directory
--writelogfile
-GL Log File Name to Use. Default 'DocTo.Log';
--logfilename
-Q Quiet Mode: Nothing will be output to console. To see any errors you must
set -G or -GL. Equivalent to setting -L 0
--quiet
-R Remove Files after successful conversion: Default false; To use specify
value eg -R true
--deletefiles
-W Webhook: Url to call on events. See help '-H -HW' for more details.
--webhook
-X Halt on COM Error: Default True; If you have trouble with some files
not converting, set this to false to ignore errors and continue with
batch job.
--halterror
-V Show Versions. DocTo and Word/Excel/Powerpoint
Long Parameters:
--BookmarkSource
PDF conversions can take their bookmarks from
WordBookmarks, WordHeadings (default) or None
--DoNotOverwrite
--no-overwrite
Existing files are overridden by default, if you do not wish a file to be
over written use this option.
--no-subdirs Only convert specified directory. Do not recurse sub directories
--ExportMarkup Value for wdExportItem - default wdExportDocumentContent.
use wdExportDocumentWithMarkup to export all word comments with pdf
--no-IncludeDocProperties
--no-DocProp
Do not include Document Properties in the exported pdf file.
--PDF-OpenAfterExport
If you wish for a converted PDF to be opened after creation. No value req.
--PDF-FromPage
Save a range of pages to pdf. Integer/String. If integer --PDF-ToPage must also be set.
Other values wdExportCurrentPage, wdExportSelection
--PDF-ToPage
Save a range of pages to pdf. Integer. --PDF-FromPage must also be set.
--PDF-OptimizeFor
Set the pdf/xps to be optimized for print or screen.
Default ForPrint | ForOnScreen
--XPS-no-IRM
Do not copy IRM permissions to exported XPS document.
--PDF-No-DocStructureTags
Do not include DocStructureTags to help screen readers.
--PDF-no-BitmapMissingFonts
Do not bitmap missing fonts, fonts will be substituted.
--use-ISO190051
Create PDF to the ISO 19005-1 standard.
Experimental:
--skipdocswithtoc
EXPERIMENTAL. Will skip any docs that contain a TOC to prevent hanging.
Currently matches some false positives. Default False.
--stdout
Send file to Stdout after conversion. ( Does not work correctly for binary files)
ERROR CODES:
200 : Invalid File Format specified
201 : Insufficient Inputs. Minimum of Input File, Output File & Type
202 : Incorrect switches. Switch requires value
203 : Unknown switch in command
204 : Input File does not exist
205 : Invalid Parameter Value
220 : Word or COM Error
221 : Word not Installed
400 : Unknown Error
3 개의 매개 변수가 필요합니다
값을 취하는 매개 변수는 값에서 분리하는 공간이 있습니다. 일부 매개 변수에는 값이 필요하지 않습니다. 모든 매개 변수는 사례 둔감합니다.
-f -inputfile
Docto가 열리기를 원하는 파일 또는 폴더. 폴더 인 경우 Docto는 해당 디렉토리 및 해당 하위 디렉토리의 모든 파일을로드합니다. 하위 디렉토리에서 파일을로드하지 않으려면 --no-subdirs 매개 변수를 참조하십시오.
각 파일에서 전환이 수행됩니다.
-O- outputFile
출력 파일을 배치하려는 파일 이름 또는 폴더 이름. 입력이 파일이지만 출력이 폴더 인 경우 출력 파일은 입력과 동일한 이름이지만 새 확장자가 있습니다.
-t -format
wdFormatPDF 또는 wdFormatText 등과 같이 변환 할 형식을 지정하십시오.
가능한 단어 형식과 Excel 형식을보십시오. 정수 값을 사용할 수도 있습니다
-h, -help
DOCTO 및 OFFICE 응용 프로그램의 모든 매개 변수 및 버전을 나열하는 도움말 텍스트 표시
-v -버전
Docto 및 Microsoft Office의 버전 문자열을 표시하십시오.
-WD -XL -PP -VS
이 매개 변수는 Docto에게 값이 주어지지 않은 경우 Docto 기본값을 -wd로로드하고 저장하는 데 사용하려는 응용 프로그램을 알려줍니다. 그러나 Docto를 사용할 때마다 항상 이러한 값을 사용하는 것이 좋습니다.
-fx -푸테 혁신
기본적으로 Docto는 표준 응용 프로그램 확장으로 디렉토리의 모든 파일을로드합니다.
예를 들어.
다른 파일 세트를 변환하려면 예를 들어 *.rtf 또는 *.txt .rtf
-ox -outputextension
변환의 출력 확장은 표준 목록 (예 :)에서 가져옵니다. wdformatpdf로 변환하는 경우 파일은 extension .pdf 로 출력됩니다. 자신의 확장자 (예 : .pdfx )를 지정하려면이 매개 변수를 사용할 수 있습니다.
-tf -포르 스포 래트
-t가 Docto를 컴파일했을 때 사용할 수없는 값인 경우 -t가 정수 인 경우 오류가 발생합니다. -tf를 사용하는 경우 -t의 정수 값을 확인하지 않고 사무실 응용 프로그램으로 전달합니다.
-L --loglevel
로그 출력 수준을 설정합니다. -L 10은 디버깅에 유용합니다. -L 0 또는 -Q를 사용하여 로깅을 압박하십시오.
#### 레벨
-c- 호환성
호환성 모드 정수. MSDN 목록에서 정수 값으로 설정하십시오.
단어 버전의 호환 모드 설정 문서는 호환됩니다. 이전 문서를 현재 버전으로 변환하려는 경우 특히 유용합니다. OneDrive와 호환되도록 오래된 Word 문서를 변환하는 데 사용할 수 있습니다.
-e- 인코딩
코드 인코딩을 설정합니다. 자세한 내용과 가치는 MSDN을 참조하십시오.
-n -listlongrunning
변환 될 때 일부 파일로 인해 대화 상자가 나타날 수 있습니다. 이것은 수동 개입에 의해서만 해결 될 수 있습니다. 이 매개 변수를 설정하면 어려움을 유발하는 문서 ( docto.ignore.txt 라는 파일)에 적어도 문서를 기록 할 수 있으며 -NX 설정하면이 문서는 후속 실행에서 건너 뜁니다.
-nx-indorelongrunninglist {no-value-required}
docto.exe와 동일한 디렉토리에 docto.ignore.txt 에 나열된 파일을 설정하면 건너 뜁니다. 이를 통해 디렉토리 구조의 번거로운 문서를 무시할 수 있습니다.
-g -writelogfile [필요 없음]
로그를 파일과 stdout에 작성하십시오. docto.log 기본적으로.
-GL -logfilename {filename}
로그 파일을 작성하려는 파일 이름을 지정하십시오.
-Q -Quiet [가치 없음]
stdout에 대한 출력이 없습니다. 오류를 포함한 모든 것이 압박됩니다. -G 와 함께 사용하여 오류가 발생하십시오.
-r -deletefiles {true | false}
변환 후 inputfile을 삭제하려면 TRUE로 설정할 수 있습니다.
-w--- 위
원하는 경우 각 변환 또는 오류 후에 웹 URL을 호출 할 수 있습니다. 다음 매개 변수가있는 다음 이벤트에서 Webhook URL이 호출됩니다.
파일 변환
오류
리턴 값은 docto log에 로그인됩니다
-X-- 홀터러 {true | false}
COM 오류가 발생하면 DOCTO가 중단됩니다. 오류를 무시하고 계속 해서이 값을 true로 설정하십시오.
-BookMarkSource {source}
PDF 변환은 WordBookmarks, WordHeadings (기본값) 또는 없음에서 책갈피를 가져올 수 있습니다.
-donotoverwrite-No-Noverwrite [가치 없음]
기존 파일이 기본적으로 재정의됩니다. 파일이 과도하게 서면 으로이 옵션을 사용하기를 원하지 않으면이 옵션이 사용됩니다.
--서브 디르
기본적으로 하위 디렉토리가 변환됩니다. 지정된 디렉토리 만 변환하는 데 사용합니다. 하위 디렉토리를 되풀이하지 마십시오
-exportmarkup
지정합니다
WDEXPORTDOCUMENTWITHMARKUP을 사용하여 PDF로 모든 단어 주석을 내보내십시오
-PDF-OPENAFTEREXPORT
창조 후 변환 된 PDF를 열기를 원한다면. 값 req.
--pdf-frompage
--pdf-topage
문서의 특정 페이지 만 변환합니다.
-use-ISO190051
ISO 19005-1 표준에 PDF를 생성하고 PDF-A 또는 PDF 아카이브로도 알고 있습니다.
-m -indoremacos {true | false}
기본적으로 Docto는 MacOS가 생성하는 숨겨진 __MACOSX 디렉토리의 모든 파일을 무시합니다. 이 디렉토리는 종종 시스템간에 공유되는 외부 디스크에 있습니다. 이 DIR SET이 값을 확인하려면이 값을 확인하십시오. 값을 지정해야합니다 -M false
이 프로젝트는 Delphi를 컴파일합니다 (10.3을 사용하지만 XE4 & 7을 포함한 대부분의 버전으로 컴파일해야합니다). 이 프로젝트는 COM 및 Word와 같은 여러 Windows 전용 구성 요소를 사용하므로 Linux에서 컴파일하지 않습니다.
XLSTO는 이제 DOCTO에 통합되었습니다. 이전에는 XLSTO는 XLS 파일을 CSV 또는 PDF로 변환하는 데 사용 된 별도의 EXE였습니다. 이것은 단순히 -xl 플래그를 추가하여 Main DocTo.exe 로 수행 할 수 있습니다.
나는 누구나 제출하고 싶은 PR을 받아들이게되어 기쁩니다. 많은 양의 작업이 관련된 경우 먼저 문제를 열어 노력을 낭비하지 않도록하십시오.
Repo의 기본 지점 이름은 DocTo 입니다
응용 프로그램이 문서를 올바르게 조작하는지 확인하기 위해 PHP에 기능 테스트를 작성하기 시작했습니다. PHP Laravel과 해충에 익숙하다면 추가 테스트를 좋아할 것입니다.