0
這裏是我一起工作的代碼:眼下如何使用Applescript將單個Excel工作表導出爲PDF文件?
saveExcelasPDF("Users:Seth:Documents:OneDrive:Process:12648 0920 Volvo of the Triad 128.xlsx", "Users:Seth:Desktop:test.pdf")
on saveExcelasPDF(documentPath, PDFName)
set tFile to (POSIX path of documentPath) as POSIX file
tell application "/Applications/Microsoft Excel.app"
set isRun to running
set wkbk1 to open workbook workbook file name documentPath
activate object worksheet "Invoice" of wkbk1
set mySheet to sheet "Invoice" of wkbk1
alias PDFName -- Necessary to avoid Excel Sandboxing
save mySheet in PDFName as PDF file format
close wkbk1 saving no
if not isRun then quit
end tell
end saveExcelasPDF
,這樣可以節省每片所需的書PDF文件,所以我最終用約60頁PDF文件..
如何將「發票」表單保存到我的PDF文件中?
謝謝!