将cfpdf与saveoption = "linear"或"full"配合使用。我看不出使用它有什么不同。如果有人知道这是什么意思,请在这里分享。谢谢。
<cfoutput>
<cfdocument name="myBook" format="PDF">
<cfloop from="1" to="200" index="i">
<h1>"Gandhi"redirects here. For the third prime minister of India, see Indira Gandhi. For other uses, see Gandhi (disambiguation).
MahātmāMohandas Karamchand GandhiStudio photograph of Mohandas K. Gandhi, London, 1931.Born Mohandas Karamchand Gandhi2 October 1869Porbandar, Kathiawar Agency, British-ruled IndiaDied 30 January 1948 (aged 78)New Delhi, IndiaCause of death Assassination (gunshot)
Monuments Raj Ghat,Gandhi SmritiNationality IndianOther names Mahatma Gandhi, Bapu ji, Gandhi jiEducation Bachelor of LawsAlma mater University College London[1]Inner TempleOccupation LawyerPoliticianActivistWriterYears active 1893–1948Era British RajKnown for Indian Independence Movement,Nonviolent resistanceNotable work
</h1>
</cfloop>
</cfdocument>
</cfoutput>
<cfpdf action="write" source="myBook" destination="res.pdf" overwrite="yes" saveoption="linear">发布于 2019-11-01 22:28:49
PDF输出的
为了有效地通过web访问PDF文件,请对PDF文档进行线性化。线性化的PDF文件的结构是在从web服务器下载整个文件之前,在浏览器中显示PDF文件的第一页。因此,线性PDF文档几乎可以立即打开。
我注意到您在问题中标记了Lucee以及Coldfusion的多个版本。请注意,在我写这篇文章时,有一个开放的(但未验证的)票据声称,在Lucee - https://luceeserver.atlassian.net/browse/LDEV-2537上,saveoption=“线性”不能正常工作。
https://stackoverflow.com/questions/58655939
复制相似问题