tobya / DocTo

Simple command line utility for converting .doc & .xls files to any supported format such as Text, RTF, CSV or PDF
http://tobya.github.io/DocTo
MIT License
440 stars 52 forks source link

Update Multi files (Powerpoint) #127

Closed kk12837 closed 4 years ago

kk12837 commented 4 years ago

Hi,

The os system is Windows Server 2012 R2 Standard

docto version: DocTo Version:1.2.26.49.b.pp OfficeApp Version:15 Source: https://github.com/tobya/DocTo/

I ran the following command in windows server. Ant there are 1 powerpoint file in the directory.

C:\Users\eladmin>

C:\Project\nsw\docto.exe -PP -f \10.100.28.24\nswv\input\pptx\ -O \10.100.28.24\nswv\output\pptx\ -OX pdf -t ppSaveAsPDF -L 1 -R true

however, it returns

Ready to Execute Executing Conversion ... FileToConvert:\10.100.28.24\nswv\input\pptx\ OutputFile:\10.100.28.24\nswv\intput\pptx.pdf Ext32


Error: EOleException The filename, directory name, or volume label syntax is in correct


Error: Exiting with Error Code : 220

[20200617 17:21:53 -]: Log Level Set To:10 Loading ChooseConverter... Parameter Count is 11 [20200617 17:21:53 -]: Log Level Set To:10 Loading ChooseConverter... Parameter Count is 11 Converter:MS Powerpoint Log Level Set To:10 Loading Configuration... Parameter Count is 11 Input File is: \10.100.28.24\nswv\input\pptx\ Output directory: \10.100.28.24\nswv\intput\pptx\ Type Integer is: 32 Log Level Set To:10 File List

Current Directory: C:\Users\eladmin Ready to Execute Executing Conversion ... FileToConvert:\10.100.28.24\nswv\input\pptx\ OutputFile:\10.100.28.24\nswv\intput\pptx.pdf Ext32


Error: EOleException The filename, directory name, or volume label syntax is in correct


Error: Exiting with Error Code : 220

Did anyone has the same experience?

Thanks

Keith

github-actions[bot] commented 4 years ago

Thank You for the Issue. I will try to get to look at it as soon as I can.

tobya commented 4 years ago

I'll take alook. It doesnt seem to be finding files. It may only be looking for ppt not pptx files.

Can you try with a ppt file and see if it works. I can update if that is the problem.

Thank you for using docto

kk12837 commented 4 years ago

I'll take alook. It doesnt seem to be finding files. It may only be looking for ppt not pptx files.

Can you try with a ppt file and see if it works. I can update if that is the problem.

Thank you for using docto

Yes, you are correct. It works if there are ppt files.

kk12837 commented 4 years ago

I tested on the docx dir, it works fine. So there is only a problem with pptx.

Thanks @tobya

The os system is Windows Server 2012 R2 Standard

kk12837 commented 4 years ago

xlsx format has the same problem.

Thanks!

tobya commented 4 years ago

Thsi should be a fix. I havent had time to test it, so let me know if it causes problems.

docto.zip

kk12837 commented 4 years ago

It works well! thanks for your help @tobya

kk12837 commented 4 years ago

hi @tobya

I experienced error 220 couple of times.

I need to restart my PC to avoid this error. This error pops up if I converted many pptx, like more than 500 ppt. Then it pops error 220.

Is it normal?

Thanks

Keith

tobya commented 4 years ago

Hi @kk12837.

Can you log this as a new issue.? Its most likely that some files are being left open or not properly closed and so over time are causing issues. It may also be an issue with PPTX as I havent had a similar issue with XLS or Word . I'll take a l;ook at the code and see if I can see anything that might be causing it.

Do you get any extra information with the 220 error. Could you try running next time with verbose logging so that you have log files when you start getting the error?

thanks

kk12837 commented 4 years ago

Ok, I will try to log it and open a new ticket. Thanks