批处理文件把所有PDF格式文本(含xpdf中) [英] Batch file to convert all pdf to text (with xpdf)

查看:168
本文介绍了批处理文件把所有PDF格式文本(含xpdf中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以饱满的PDF文件运行一个文件夹中批量转换。我一直在使用xpdf的,这是单个文件的命令提示符:

I would like to run a batch conversion in a folder with full of pdf files. I have using xPDF and this is the command prompt for a single file:

C:\\测试\\ pdftotext -layout firstpdftoconvert.pdf firstpdfconverted.txt

c:\Test\pdftotext -layout firstpdftoconvert.pdf firstpdfconverted.txt

可能有人帮助,请做一次过(只转换所有PDF文件)使用批处理文件?在此先感谢!

Could somebody help please to do it in one go (convert all the pdf files only) using a batch file? Thanks in advance!

推荐答案

你的问题这个答案遍历目录中的文件

for /r %i in (*.pdf) do "c:\Test\pdftotext" -layout "%i"

这将在所有的PDF文件的工作在电流的目录。

This will work on all pdf files in the current directory.

要确保,如果你从一个批处理文件运行此翻一番迹象。

Be sure to double the % signs if you run this from a batch file.

这篇关于批处理文件把所有PDF格式文本(含xpdf中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆