Html 是否显示查询中的pdf标题信息?
我有一个从帐户获取详细信息的查询,然后我将该信息显示在Html 是否显示查询中的pdf标题信息?,html,coldfusion,title,Html,Coldfusion,Title,我有一个从帐户获取详细信息的查询,然后我将该信息显示在 <title>Attachments for <cfoutput>#GetDetails.TrackingNum# - #ucase(trim(GetDetails.Lname))#/#ucase(trim(GetDetails.Fname))# #GetDetails.JobTitle# at #GetDetails.EmployerName#</cfoutput></title>
<title>Attachments for <cfoutput>#GetDetails.TrackingNum# - #ucase(trim(GetDetails.Lname))#/#ucase(trim(GetDetails.Fname))# #GetDetails.JobTitle# at #GetDetails.EmployerName#</cfoutput></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" media="all">
GetDetails.TrackingNum#-#ucase(trim(GetDetails.Lname))/#ucase(trim(GetDetails.Fname))##GetDetails.JobTitle在#GetDetails.EmployerName的附件#
我显示图像或pdf文件
<cfoutput>
<cfif find("image",#GetAttachment.ContentType# )>
<cfimage action="writeToBrowser" source="#GetAttachment.FileData#" width="1000" >
<cfelse>
<cfcontent type="#GetAttachment.ContentType#" variable="#GetAttachment.FileData#" >
</cfif>
</cfoutput>
图像标题确实会显示,但当我提取PDF时,它不会显示标题信息,而标题信息位于查询中
为什么PDF不显示标题?PDF实际上显示的是url
我还注意到它在不同的浏览器(如FIREFOX、CHROME)中的显示方式有所不同。
我试图让它在IE 8上工作。当您使用
cfcontent
输出PDF时,任何现有生成的内容都将被丢弃-只有PDF会发送到浏览器
状态为“…当使用文件
属性时…当前CFML页面上的任何其他输出都将被忽略;只有文件的内容被发送到客户端。”
你可能会考虑我的答案来模拟将PDF嵌入到页面中。
你不需要用<代码> >代码> >变量,就像你在<代码> <代码>语句中使用它的方式。e、 g.
可以像