Monday 15 June 2015

windows - Converting a lot of PDF to XLS documents using a batch program -



windows - Converting a lot of PDF to XLS documents using a batch program -

i want convert lot of documents pdf xls programme called cogniview pdf2xl cli, created batch programme (.bat) this:

@echo off cd c:\program files\cogniview\pdf2xl /f "delims=." %%g in ('dir /b "c:\inputfolder"\*.pdf') pdf2xl -input="c:\inputfolder\%%g.pdf" -layout="c:\layoutsfolder\thelayout.layout" -format=excelfile -range=all -output="c:\outputfolder\%%g.xls" -noui -autoopen=on

the code executed without error, when in output folder don't see xls files. did miss something?

in input files, you're doubling ".pdf" @ end. seek this, removed .pdf end of input files:

@echo off cd c:\program files\cogniview\pdf2xl /f "delims=." %%g in ('dir /b "c:\inputfolder"\*.pdf') pdf2xl -input="c:\inputfolder\%%g" -layout="c:\layoutsfolder\thelayout.layout" -format=excelfile -range=all -output="c:\outputfolder\%%g.xls" -noui -autoopen=on

windows batch-file pdf command-line xls

No comments:

Post a Comment