웹에서 PDF 파일생성하는 DLL을 사용하다가 생성시 서버 부하 및 기타 문제로
PNG파일 생성으로 바꾸기 위해 찾았던 자료 정리.. ( Download : Bat_To_Exe_Converter.exe , IECapt-2008-06-10.zip )
왜 2개의 페이지로 나눠놓았는지는 기억이 잘 안남..
* MakePNG.asp
ROOTDIR = "C:data" fileNm = Request("Code") & "_INFO.png" Set Executor = Server.CreateObject("ASPExec.Execute") Executor.Application = "C:wkhtmltopdfMake_png.exe " & "http://" & Request.servervariables("HTTP_HOST") & " " & Code & " " & ROOTDIR Executor.Parameters = "" Executor.ShowWindow = true strResult = Executor.ExecuteWinApp set Executor = Nothing
* Make_png.exe
- 받은 3개의 변수를 각각 %1 %2 %3 으로 받게됨.
C:\IECapt.exe --url="%1/info.html?hCode=%2" --out="%3/report/temp/%2_INFO.png"