我的資料夾中有多個 pdf 文件 - 我想滾動瀏覽所有文件,這樣它們看起來就像一個 pdf。
將文件合併到一個文件不是一種選擇,因為它應該從 Intranet Web 服務「即時」完成。
我正在考慮類似“pdf-index”文件的東西,它保存每個pdf文件的路徑並在滾動時調用資料。
匯入檔案並顯示它們嵌套滾動的 Web 服務 (php) 也可能是選項。
答案1
以下是一個自動熱鍵腳本,可在 Windows 中完成您的任務。您需要修改程式以適合您的 pdf 資料夾和 pdf 閱讀器。
;This Autohotkey program loops through pdf files in a specified folder, by pressing "f" for forward, "r" for reverse, and "x" for exit.
; You'll need the freeware autohotkey installed and to save this text file program with an .ahk extension. You will also
; need to change the pdf viewer exe files below to that of your machines own pdf reader, as well as specify the folder
;containing your pdfs.
Folder := "C:\" ; <----------------------SPECIFY FOLDER HERE CONTAINING PDF FILES IN QUOTES
FileList = ; Initialize to be blank.
FileCount := 0
Loop, %Folder%*.pdf {
FileList = %FileList%%A_LoopFileLongPath%`n
FileCount++
}
Array := StrSplit(Filelist,"`n")
FileIndex := 1
StartNewPDF:
MsgBox,,, Opening PDF File %FileIndex% of %FileCount%,0.7
FileToOpen=% Array[FileIndex]
; v---------------------------------SPECIFY PATH and *.exe FILE OF PDF READER
Run, "C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe"
"%FileToOpen%"
Input, OutputVarx, L1 ,, frx
if (OutputVarx="f")
{
FileIndex := 1 + Mod(FileIndex - 1 + 1, FileCount)
}
if (OutputVarx="r")
{
If (FileIndex=1)
FileIndex = FileCount
Else FileIndex := FileIndex - 1
}
if (OutputVarx="x")
{
; v-------------SPECIFY *.exe FILE OF YOUR PDF READER HERE
Process,Close,PDFXCview.exe
ExitApp
}
; v-------------SPECIFY *.exe FILE OF YOUR PDF READER HERE
Process,Close,PDFXCview.exe
Sleep, 100
Goto, StartNewPDF