XXXX免费阅读_百度文库
网上的图书在线试读,想摘录,不让!
逐页打印之,然后拼接怎么弄?
注意:
版权所有,侵权必究
网友解答:
The commandline utilities, Ghostscript and PDFtk, will do what you want.
-
Code:
-
gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -sOutputFile=[output file] [input files]
-
or
-
Code:
-
pdftk [input files] cat output [output file]
In the above commands, you need to insert the names of the input and output files. When combining a large number of PDF files, it may be easiest to place them in an empty directory and use *.pdf as the input files.
如果不用考虑书签,那么 pdftk 是最好的选择。
Download PDFTK 1.44 - free - latest version
页面上的视频不错:How can you protect yourself from Ransomware
拼接步骤:
获取文件名列表 pdf_GetNames.ps1 > t.txt
将数字填写到脚本 pdf_cat.bat 中,并运行,即可得到拼接后的 all.pdf。
-
# powershell: pdf_GetNames.ps1
-
-
pushd .
-
cd ../pdfs/
-
-
# 获取排序后的文件名列表
-
$res = $(ls *.pdf | sort-object -property Name | Foreach-Object {
-
$_.name
-
})
-
-
#$res.Replace("`n", " ")
-
# 将字符串数组合并成结果字符串
-
$res -join " "
-
-
popd
-
-
-
# 注:如果文件名格式不统一,请先统一格式,否则文件名排序时可能不正确。
-
# 本函数功能:将 x.pdf 更名为 x.1.pdf,以便和 x.2.pdf, x.3.pdf ... 放在一起时能正确排序
-
Function rename2XdotX()
-
{
-
ls *.pdf | Foreach-Object {
-
$ss = $_.Name.split(".")
-
if($ss.length -eq 2)
-
{
-
#$_.name
-
$to = $ss[0]+".1."+$ss[1]
-
"Rename-Item {0} to {1}" -f $_.name,$to
-
Rename-Item $_.name $to
-
}
-
}
-
}
-
rem pdf_cat.bat
-
-
set outfile="%cd%\all.pdf"
-
pushd .
-
-
set pdftk="E:\workspace\vc\OpenSource\html5canvas\pdfs_cat\pdftk-1.44-win-install\bin\pdftk.exe"
-
-
cd ..\pdfs\
-
set infiles=27.1.pdf 28.1.pdf 29.1.pdf 29.2.pdf 29.3.pdf 29.4.pdf 31.1.pdf 31.2.pdf 31.3.pdf 33.1.pdf 33.2.pdf 34.1.pdf 35.1.pdf 35.2.pdf 36.1.pdf 37.1.pdf 37.2.pdf 38.1.pdf 38.2.pdf 39.1.pdf 40.1.pdf 40.2.pdf 41.1.pdf 42.1.pdf 42.2.pdf 43.1.pdf 44.1.pdf 44.2.pdf 45.1.pdf 46.1.pdf 46.2.pdf 47.1.pdf 47.2.pdf 48.1.pdf 49.1.pdf 49.2.pdf 50.1.pdf 50.2.pdf 51.1.pdf 51.2.pdf 51.3.pdf 52.1.pdf 52.2.pdf 52.3.pdf 52.4.pdf 53.1.pdf 53.2.pdf 53.3.pdf 54.1.pdf 54.2.pdf 54.3.pdf 55.1.pdf 55.2.pdf 55.3.pdf 55.4.pdf 56.1.pdf 56.2.pdf 56.3.pdf 57.1.pdf 57.2.pdf 57.3.pdf 58.1.pdf 58.2.pdf 58.3.pdf 58.4.pdf 59.1.pdf 59.2.pdf 59.3.pdf 60.1.pdf 60.2.pdf 60.3.pdf 60.4.pdf 61.1.pdf 61.2.pdf 61.3.pdf 62.1.pdf 62.2.pdf 62.3.pdf 63.1.pdf 63.2.pdf 63.3.pdf 64.1.pdf 64.2.pdf 64.3.pdf 64.4.pdf 65.1.pdf 65.2.pdf 65.3.pdf 66.1.pdf 66.2.pdf 66.3.pdf 67.1.pdf 67.2.pdf 67.3.pdf 67.4.pdf 68.1.pdf 68.2.pdf 68.3.pdf 69.1.pdf 69.2.pdf 70.1.pdf 70.2.pdf 70.3.pdf 70.4.pdf 70.5.pdf 71.1.pdf 71.2.pdf 72.1.pdf 72.2.pdf 72.3.pdf 72.4.pdf 73.1.pdf 73.2.pdf 73.3.pdf 73.4.pdf 74.1.pdf 74.2.pdf 74.3.pdf 75.1.pdf 75.2.pdf 75.3.pdf 76.1.pdf 76.2.pdf 77.1.pdf 77.2.pdf 78.1.pdf 78.2.pdf 78.3.pdf 78.4.pdf 79.1.pdf 80.1.pdf 80.2.pdf 81.1.pdf 81.2.pdf 81.3.pdf 82.1.pdf 82.2.pdf 83.1.pdf 83.2.pdf 83.3.pdf 84.1.pdf 84.2.pdf 85.1.pdf 85.2.pdf 86.1.pdf 86.2.pdf 86.3.pdf 87.1.pdf 87.2.pdf 88.1.pdf 88.2.pdf 89.1.pdf 89.2.pdf 89.3.pdf 90.1.pdf 90.2.pdf 91.1.pdf 91.2.pdf 92.1.pdf 92.2.pdf 92.3.pdf 93.1.pdf 93.2.pdf 93.3.pdf 94.1.pdf 94.2.pdf 95.1.pdf 95.2.pdf 96.1.pdf 96.2.pdf 97.1.pdf 97.2.pdf 98.1.pdf 98.2.pdf 99.1.pdf 99.2.pdf 99.3.pdf 99.9.pdf
-
-
%pdftk% %infiles% cat output %outfile%
-
-
popd
阅读(754) | 评论(0) | 转发(0) |