Excelマクロで、PDFの保存をやってみました。
Sub Macro1() ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _ "c:\\xxx.pdf", Quality:= _ xlQualityStandard, IncludeDocProperties:=True, _ IgnorePrintAreas:=False, _ OpenAfterPublish:=False End Sub
ふむふむ。ちなみに、xlTypePDF=0 でした。
JScriptでかくと、以下の感じです。
function convertToPDF(sheet, fname) { try { sheet.ExportAsFixedFormat(0/*xlTypePDF*/, fname); } catch (e) { } }