폴더에서 여러 pdf 스크롤 “즉시”수행해야하므로 옵션이 아닙니다. 나는

한 폴더에 여러 개의 PDF 파일이 있습니다. 모든 파일을 스크롤하여 하나의 PDF처럼 보이게하고 싶습니다.

파일을 하나의 파일에 병합하는 것은 인트라넷 웹 서비스에서 “즉시”수행해야하므로 옵션이 아닙니다.

나는 “pdf-index”파일과 같은 것을 생각하고 있었는데,이 파일은 각 pdf 파일의 경로를 잡고 스크롤 할 때 데이터를 호출했다.

파일을 가져 와서 스크롤을 위해 중첩시킨 웹 서비스 (php)도 옵션이 될 수 있습니다.



답변

아래는 Windows에서 작업을 수행하는 autohotkey 스크립트입니다. 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


답변