説明
PDF を Response.BinaryWrite で使用できるバイト配列として返します。
戻り値の型
Variant
|
説明 |
|
バイト配列として指定した PDF |
構文
value = object.BinaryImage
BinaryImage メソッドは次のパラメータから構成されています。
|
パラメータ |
説明 |
|
Object |
Toolkit オブジェクト |
Example ASP
<%
Set TK = Server.CreateObject("APToolkit.Object")
r = TK.OpenOutputFile("MEMORY")
r = TK.MergeFile(Server.MapPath("Input.pdf"), 0, 0)
TK.CloseOutputFile
zz = m_PDF.BinaryImage
response.expires = 0
response.Clear
response.ContentType = "application/pdf"
response.AddHeader "Content-Type", "application/pdf"
response.AddHeader "Content-Disposition", "inline;filename=test.pdf"
response.BinaryWrite zz
Set TK = Nothing
response.End
%>