GithubHelp home page GithubHelp logo

tobya / docto Goto Github PK

View Code? Open in Web Editor NEW
412.0 24.0 51.0 3.73 MB

Simple command line utility for converting .doc & .xls files to any supported format such as Text, RTF, CSV or PDF

Home Page: http://tobya.github.io/DocTo

License: MIT License

Pascal 82.30% Batchfile 5.04% PHP 7.08% CSS 5.33% HTML 0.24%
conversion windows word-documents excel csv-export pdf-generation docto xls csv xls-files

docto's Introduction

DocTo

Document Converter

Simple utility for converting a Microsoft Word Document '.doc', Microsoft Excel '.xls' and Microsoft Powerpoint .ppt files to any other supported format such as .txt .csv .rtf .pdf.

Can also be used to convert .txt, .rtf, .csv to .doc, .xls or .pdf format.

Can be used to convert older word documents to latest format.

Must have Microsoft Word, Excel or Powerpoint installed on host machine.

Download Release From Github Releases - https://github.com/tobya/DocTo/releases/ Further Information available at https://tobya.github.io/DocTo/ Further Examples available at https://docto.toflidium.com

Features

  1. Convert Doc/RTF/Text file to any Word SaveAs Type Doc/Text/RTF/PDF
  2. Convert XLS/XLSX/CSV file to any Excel SaveAs Type CSV/Text/PDF
  3. Convert Text/CSV file to full fledged Word or Excel format.
  4. Single File Conversion
  5. Multiple / Directory File Conversion.
  6. Delete after conversion
  7. Fire https Webhook on each conversion.

Examples

More Examples available at

Installation

Download .exe from Release https://github.com/tobya/docTo/releases

Package Managers

Choco

Also Available for installation via Chocolatey

choco install docto

to upgrade to latest version

choco upgrade docto

Node

Node Wrappers has been created by @KerimG & @brrd

https://www.npmjs.com/package/node-docto

https://github.com/brrd/msoconvert

Bugs and Features

Please log an issue for any bugs, features or suggestions.

Examples

Single

Convert Microsoft Word Document to text

docto -f C:\Directory\MyFile.doc -O "C:\Output Directory\MyTextFile.txt" -T wdFormatText

Convert Microsoft Excel Document to csv text

docto -XL -f C:\Directory\MyFile.xls -O "C:\Output Directory\MyTextFile.csv" -T xlCSV    

Convert Microsoft Word Document to PDF (requires version of Microsoft Word that supports this).

 docto -f C:\Directory\MyFile.doc -O "C:\Output Directory\MyTextFile.pdf" -T wdFormatPDF

Multiple Files and Folders

Convert All Microsoft Word Documents in Directory and its Sub Directories to PDF

docto -f "C:\Dir with Spaces\FilesToConvert\" -O "C:\DirToOutput" -T wdFormatPDF  -OX .pdf

Delete Original File after Conversion

Delete Original Files after conversion (-R) .

docto -f "C:\Dir with Spaces\FilesToConvert\" -O "C:\DirToOutput" -T wdFormatPDF  -OX .pdf -R true

Webhooks

Add a Webhook to fire on each conversion (-W)

docto -f "C:\Dir with Spaces\FilesToConvert\" -O "C:\DirToOutput" -T wdFormatPDF  -OX .pdf  -W https://toflidium.com/webhooks/docto/webhook_test.php

A Webhook is a url that can be called on each converstion to give you the ability to repond externally whenever a file is converted. Currently https address is experimental so log an issue if you have any issues.

Use in the Wild

If you are using DocTo in the wild somewhere, please add details to this wiki page

OneDrive Conversion

If you need to upgrade a bunch of files to work without conversion on OneDrive /Office365 / Word 20XX then you can use DocTo. See this StackExchange question

https://webapps.stackexchange.com/questions/74859/what-format-does-word-online-use

Command Line Help

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:\Docs\MyDoc.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

Parameter Overview

Usage

3 Parameters are required

  • -F Input File Name
  • -O Output File Name
  • -T Type to be converted to.

Parameters that take a value have a space seperating them from the value. Some parameters do not require a value. All parameters are case insensitive.

Input File or Directory

-F --inputfile

The file or folder you wish docto to open. If it is a folder, docto will load all files in that directory and its subdirectories. If you do not wish to load files from subdirectories see the --no-subdirs parameter.

Conversion will be performed on each file in turn.

Output File or Folder

-O --outputfile

The filename or foldername where you would like the output files to be placed. If Input is a file but output is a folder then the output file will have the same name as the input but with the new extension.

Conversion Type

-T --format

Specify what format you wish to convert to such as wdFormatPDF or wdFormatText etc.

View possible Word Formats and Excel Formats. Can also use the integer value

Help

-H , --Help

Display the help text listing all parameters and versions of docto and office applications

Version

-V --version

Display the version string of both DocTo and Microsoft Office.

Application Selection

-WD -XL -PP -VS

This parameter tells DocTo which of the applications you wish to use to load and save your document For historical reasons DocTo defaults to -WD if no value is given, however it is a good habit to get into to always use one of these values any time you use Docto.

  • -WD Microsoft Word
  • -XL Microsoft Excel
  • -PP Microsoft Powerpoint
  • -VS Microsoft Visio

Input Folder Extension

-FX --inputextension

By default DocTo will load all files in the directory with the standard Application extension

eg.

  • Word (.doc) matches .doc & .docx files
  • Excel (.xls) matches .xls & .xlsx files
  • Powerpoint (.ppt) matches .ppt & .pptx files
  • Visio (.vsd)

If you wish to convert a differnt set of files eg *.rtf or *.txt you can specify it here by ext such as .rtf

Output Extension

-OX --outputextension

The output extension on a conversion is pulled from a standard list, eg. if converting to wdFormatPDF the file will be output with extension .pdf. If you would like to specify your own extension (such as .pdfx) you can with this parameter.

Force Format Use

-TF --forceformat

If -T is an integer if it is a value that wasnt available when DocTo was compiled it will raise an error. If you use -TF it will pass the integer value of -T to the Office Application without checking.

Logging

-L --loglevel

Set level of log output. -l 10 is useful for debugging. Use -l 0 or -Q to surpress logging.

####Levels

  • 10 VERBOSE
  • 9 CHATTY
  • 5 STANDARD
  • 1 ERRORS (default)
  • 0 SILENT

Document Compatibility

-C --compatibility

Compatibility Mode Integer. Set to an INTEGER value from msdn list .

Set the compatibility mode of the version of word the document is to be compatible with. Particuarily useful when wishing to convert older documents to current version. Can be used to convert old word documents to be compatible with onedrive.

Document Encoding

-E --encoding

Sets codepage Encoding. See MSDN for more details and values.

List Long running Files

-N --ListLongRunning

Some files when being converted can cause a dialog box to pop up. This can only be fixed by manual intervention. By setting this parameter you can at least record the documents that are causing difficulty (to a file called docto.ignore.txt) and if you set -NX these documents will be skipped on subsequent executions.

Skip Files in docto.ignore.txt file

-NX --IgnoreLongRunningList {no-value-required}

When set any files listed in docto.ignore.txt in the same directory as DocTo.exe will be skipped. This allows troublesome documents in a directory structure to be ignored.

Logging

Write to Log File

-G --writelogfile [no value required]

Write the log to a file as well as stdout. docto.log by default.

Log File

-GL --logfilename {filename}

Specify the filename that you wish the logfile to be written to.

Quiet Mode

-Q --quiet [no value required]

No output to stdout. Everything including errors are surpressed. Use in conjunction with -G to ensure you get errors.

Delete Input Files

-R --deletefiles {true|false}

If you would like for the inputfile to be deleted after conversion you can set this to true.

Fire a Webhook

-W --webhook

If you wish you can call a web url after each conversion or error. The Webhook URL will be called on the following events with the following parameters

  • File Conversion

    • action=convert
    • type=wdFormatType (or int if no matching format type)
    • ouputfilename=File being written to.
    • inputfilename=File being converted.
  • Error

    • action=error
    • type=wdFormatType (or int if no matching format type)
    • ouputfilename=File being written to.
    • inputfilename=File being converted.
    • error=Error Message

Return value is logged in DocTo Log

Halt on Errors

-X --halterror {true|false}

Docto will halt when a COM error is raised. If you wish to ignore the error and continue set this value to true.

Bookmark Source

--BookmarkSource {source}

PDF conversions can take their bookmarks from WordBookmarks, WordHeadings (default) or None

Overwrite Files

--DoNotOverwrite --no-overwrite [no value required]

Existing files are overridden by default, if you do not wish a file to be over written use this option.

Recurse SubDirectories

--no-subdirs

By default sub directories are converted. Use to only convert specified directory. Do not recurse sub directories

Export Markup

--ExportMarkup

Specifies

  • wdExportDocumentContent Exports the document without markup.
  • wdExportDocumentWithMarkup Exports the document with markup.

use wdExportDocumentWithMarkup to export all word comments with pdf

Open after Export

--PDF-OpenAfterExport

If you wish for the converted PDF to be opened after creation. No value req.

Convert Specific Pages

--PDF-FromPage

--PDF-ToPage

Only convert certain pages in the document.

Use ISO19005-1

--use-ISO190051

Create PDF to the ISO 19005-1 standard, also know as PDF-A or PDF Archive.

Special Case Parameters

Do not ignore __MACOSX Directory

-M --ignoreMACOS {true|false}

By default DocTo ignores any files in a hidden __MACOSX directory that MACOS creates. This directory is often present on an external disk that is shared between systems. If you wish to check this dir set this value. You must specify value eg -M false.

Compiling

The project compiles with Delphi (I use 10.3 but it should compile with most versions including XE4 & 7). The project will not compile on Linux as it uses several Windows only components such as COM and Word and Excel do not have Linux versions anyway so there would be no point.

XLSTo

XLSTo is now incorporated into DocTo. Previously XLSTo was a seperate EXE that was used to convert xls files to csv or pdf. This can now be done with the main DocTo.exe by simply adding the -XL flag.

Get Involved.

I am happy to accept any PR anyone might like to submit. If a large amount of work involved, please open an issue first to ensure the effort wont be wasted.

The main branch name in the repo is DocTo

docto's People

Contributors

algalg avatar coeur avatar darthmineboy avatar gekkedev avatar tobya avatar wolle181 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docto's Issues

Logging

Logging is ciurrently not quite right needs to be standardised

[INVALID] Does not work at all

Win 7 x64, DocTo 0.8.14.24

$ docto.exe    
Parameters Expected: -H for help

$ docto.exe -H
Exiting with Error 400: EOleSysError Invalid class string, ProgID: "Word.Application"

$ docto.exe -F test.doc -O test.txt -T wdFormatText          
Exiting with Error 400: EOleSysError Invalid class string, ProgID: "Word.Application"

Not working via Windows Task Scheduler

I want to use docto and xlsto via the Windows Task Scheduler but have some problems.

In the folder C:\DOCXLS, the program DOCTO.EXE has been copied and the sample Word document "test.docx" has been created. Also the following 2 files have been created in that directory.

Program 1 : c:\docxls\docto.bat

 "C:\docxls\docto" -f "C:\docxls\test.docx" -O "C:\docxls\result.txt" -T wdFormatText > C:\docxls\log.txt

Program 2 : C:\docxls\docto.vbs

 Dim WshShell
 Set WshShell = WScript.CreateObject("WScript.Shell")
 WshShell.Run """C:\docxls\docto.bat""", 0, True
  • If I run the "docto.vbs" program from my common windows session, everything works has defined.

  • If I run the "docto.vbs" from the windows task scheduler with my userid logged on, again no problem.

  • If I run the "docto.vbs" from the windows task scheduler with another userid which is not logged on (attention : you have to check the field “Run with highest privileges”), I got following display in the log.txt file :

    FileToConvert:C:\docxls\test.docx
    OutputFile:C:\docxls\result.txt
    Ext2


    Error: EOleException This command is not available because no document is open


    Error: Exiting with Error Code : 220

ignore __MACOSX directory

When downloading from dropbox or sometimes if copying off disk a __MACOSX direcory is created with lots of .doc files. These cant be converted but docto tries. There should be a switch ot ignore, which would be true by default.

Explain what will happen

Provide parameter to explain what will happen

Will out put English readable explanation of what will be done

eg.

File input dir
~File output dir

ext etc.

ensure dot before -OX extension

if -OX parameter is used

The dot must be present in the extension eg .pdf not pdf

Check in code if dot exists and if not insert it or raise error

Option for Password Protected files

I have to treat lot of excel and word files with the DOCTO and XLSTO programs. I will do it via a generic program that will check all those files one bye one. This program will run has a background process without any intervention (via the Windows Task Scheduler).

If the word/excel file is password protected, you are prompted for the password.

It would be nice to have an option to bypass the prompt and just cancel the request when the document is password protected (and another option where you can specify the password of the file (if you know the password - which is not my case))

Directory conversion attempt fails on A: drive

  • OS: Windows 10
  • Docto Version:0.8.11
  • Office Version : 16

Here's an example:

A:\srh\TEALS\apcsa-curriculum-2 > ..\apcsa-curriculum\tools\docto.exe -T wdFormatPDF -F "A:\srh\TEALS\apcsa-curriculum-2" -O "A:\srh\z" -OX .pdf
FileToConvert:A:\srh\TEALS\apcsa-curriculum-2
OutputFile:A:\srh\z\.pdf
Ext17
*******************************************
 (A:\srh\TEALS\apcsa-curriculum-2\) name isn't valid.
*******************************************
Error: Exiting with Error Code : 220

Note that the directory A:\srh\z exists and is empty. The directory specified to the -F argument exists, and is the current working directory, and contains .docx files.

Specifying . as the target directory yields a similar result:

A:\srh\TEALS\apcsa-curriculum-2 > ..\apcsa-curriculum\tools\docto.exe -T wdFormatPDF -F "." -O "A:\srh\z" -OX .pdf
FileToConvert:A:\srh\TEALS\apcsa-curriculum-2\.
OutputFile:A:\srh\z\.pdf
Ext17
*******************************************
 (A:\srh\TEALS\apcsa-curriculum-2\) name isn't valid.
*******************************************
Error: Exiting with Error Code : 220

cmd not executing in php using shell_exec

shell_exec('C:\wamp\www\editor\DocTo-master\exe\docto -f C:\wamp\www\editor\uploaded\uploaded_files_21_original\AffidavitinDIR-4.docx -O "C:\wamp\www\editor\uploaded\uploaded_files_21_original\pdf\21.pdf" -T wdFormatPDF');

This is not executing and gives me the error code 220.
However it executes fine in cmd line

save to txt error

My word doc contents many unicode characters. I can't read it after convert to txt.

Older version using wdFormatDocumentDefault=16 raises incorrect error

When using Word 2003 V 11.0 and using wdFormatDocumentDefault=16 it raises error

OutputFile:d:\tempdump\asdfasdf.doc
Ext16


Error: EOleException Command failed


Error: Exiting with Error Code : 220

it should really raise error saying out of range.

You need to use wdFormatDocument97=0

Unconverted files will be removed

With latest version if a file is skipped due to having TOC or password it will be deleted if the -R (remove files after successful conversion ) param is true.

Relative paths fail

Relative paths

../mydocs/lookhere

will find and list all files but word will exit with an error.

To fix the relative path needs to be turned into a absolute path prior to passing to word

Related to #22

Conversion fails on Word .docx file for unknown reason

DocTo Version:0.8.11
OfficeApp Version:16
Source: http://github.com/tobya/DocTo/

(Using Office365 latest.)

Problem file: Text Excel C Student Guide.docx

Conversion hangs when trying to process the above file. For some reason, it stalls for about five seconds, then brings up the Word save dialog. Hitting the save button seems to have no effect, as the dialog remains and the file is not saved. Note that Word has no issues with this file in a standard interactive session. I've tried removing all restrictions, removing all properties, upgrading to the latest version, even removing headers and footers. Nothing changes the conversion behavior.

Obviously, this has the simple workaround of removing the problem files (3/73 in my case) from the automated conversion workflow, but I'm filing this just for completeness.

Raise File Save As dialog with some files

Hi,

Converting some .doc files raises (after a successfull conversion) a "Save as dialog" with the possibility to save the Word document. In this way it isn't a commandline convert tool anymore.

Any help is preferred to solve this problem.

Regards,
Adrie

Error: EOleException: This command is not available because no documents have been opened

Hi Tobya.

Man, I'm trying to execute the command through php. like this:

exec('C:\wamp\www\DocTo-master\docto.exe -f C:\wamp\www\teste\\'.$filename.'.txt -O 
"C:\wamp\www\ligadonasaude_pdfs\\'.$filename.'.pdf" -T wdFormatPDF 2>&1', $output, $return);

But when I do, this error happens. If I do it directly in the cmd, it works. Is that a bug or I'm doing something wrong?

Best!

Implement verbose parameters

Many apps have verbose parameters to aid readability eg.

-T --output-filetype
-F --input-file-folder
-O --output-file-folder
-W --webhook-url

XLSTO with a fully qualified UNC path output name is not working

The command "XLSTO -f test.xls -O \\myserver\mysharedfolder\test.csv -T xlCSV " is not accepted : the "-O" does not allow a fully qualified name (I mean "\\[server][map][output file]").

It is not a problem using it in the DOCTO command. Only in XLSTO.

Example :

C:\converter>xlsto -f test.xlsx -o "\\gfs.pvgroup.intranet\gfs\DPT\IT_D001\Infra_ZOS_DBA_D001S\03_Zseries\result.txt" -T xlTextWindows -L 10
Log Level Set To:10
Loading Configuration...
Parameter Count is 8
Input File is: test.xlsx
Output file is: \\gfs.pvgroup.intranet\gfs\DPT\IT_D001\Infra_ZOS_DBA_D001S\03_Zseries\result.txt
Type Integer is: 20
Log Level Set To:10
Current Directory: C:\converter
Ready to Execute
\\gfs.pvgroup.intranet\gfs\DPT\IT_D001\Infra_ZOS_DBA_D001S\03_Zseries\result.txt
\\gfs.pvgroup.intranet\gfs\DPT\IT_D001\Infra_ZOS_DBA_D001S\03_Zseries\result.txt
FileToConvert:C:\converter\test.xlsx
OutputFile:\\gfs.pvgroup.intranet\gfs\DPT\IT_D001\Infra_ZOS_DBA_D001S\03_Zseries\result.txt
Ext20


Error: EOleException SaveAs method of Workbook class failed


Error: Exiting with Error Code : 220

C:\converter>xlsto -f test.xlsx -o "G:\DPT\IT_D001\Infra_ZOS_DBA_D001S\03_Zseries\result.txt" -T xlTextWindows -L 10
Log Level Set To:10
Loading Configuration...
Parameter Count is 8
Input File is: test.xlsx
Output file is: G:\DPT\IT_D001\Infra_ZOS_DBA_D001S\03_Zseries\result.txt
Type Integer is: 20
Log Level Set To:10
Current Directory: C:\converter
Ready to Execute
G:\DPT\IT_D001\Infra_ZOS_DBA_D001S\03_Zseries\result.txt
G:\DPT\IT_D001\Infra_ZOS_DBA_D001S\03_Zseries\result.txt
FileCreated: G:\DPT\IT_D001\Infra_ZOS_DBA_D001S\03_Zseries\result.txt
Creating File: G:\DPT\IT_D001\Infra_ZOS_DBA_D001S\03_Zseries\result.txt

xlsTO convert XLSM

Is it possible to convert XLSM with the program if so what steps do I need to take? So this seems to be just the Batch Folder mode, that does not convert the xlsm

Thanks,
Wade

allow relative directories

at the moment the -f and -O parameters require full paths to be reliable,

look at allowing relative paths.

Error output is malformed

While testing another issue (#36), I verified that the error output is malformed. See the line between the asterisks lines below. It looks like the file name is printed with only a carriage return, after which the error message itself is printed.

A:\srh\TEALS\x > tools\docto.exe -T wdFormatPDF -F "A:\srh\TEALS\x\" -O "A:\srh\z\" -OX .pdf
FileToConvert:A:\srh\TEALS\x\
OutputFile:A:\srh\z\.pdf
Ext17
*******************************************
 (A:\srh\TEALS\x\)on  The directory name isn't valid.
*******************************************
Error: Exiting with Error Code : 220

Modify "view only" setting of XLS file

Hi! This is more of a feature request, so please feel free to ignore and/or close it 😄

I would like to be able to set an XLS file to view only mode, from the command line, so as to script it for a full directory tree.

Thanks for considering!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.