etc

웹에서 PNG 이미지 생성하기

by kay posted Mar 02, 2013
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

웹에서 PDF 파일생성하는 DLL을 사용하다가 생성시 서버 부하 및 기타 문제로

PNG파일 생성으로 바꾸기 위해 찾았던 자료 정리.. ( Download : Bat_To_Exe_Converter.exe , IECapt-2008-06-10.zip )

  

왜 2개의 페이지로 나눠놓았는지는 기억이 잘 안남..



 
* MakePNG.asp

- 3개의 변수를 넘긴다. URL , Code , OutPut 경로   (필요에 따라 수정... 넘기지 않아도 됨.)
     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"