首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >cfpdf tag - work选项有线性还是没有线性不起作用?

cfpdf tag - work选项有线性还是没有线性不起作用?
EN

Stack Overflow用户
提问于 2019-11-01 16:04:33
回答 1查看 64关注 0票数 1

cfpdfsaveoption = "linear""full"配合使用。我看不出使用它有什么不同。如果有人知道这是什么意思,请在这里分享。谢谢。

代码语言:javascript
复制
<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">
EN

回答 1

Stack Overflow用户

发布于 2019-11-01 22:28:49

来自https://cfdocs.org/cfpdf

PDF输出的

  • 保存选项:
  • full:将修改保存到签名的(default)
  • incremental: document.
  • linear:以加快显示速度时需要正常保存

为了有效地通过web访问PDF文件,请对PDF文档进行线性化。线性化的PDF文件的结构是在从web服务器下载整个文件之前,在浏览器中显示PDF文件的第一页。因此,线性PDF文档几乎可以立即打开。

我注意到您在问题中标记了Lucee以及Coldfusion的多个版本。请注意,在我写这篇文章时,有一个开放的(但未验证的)票据声称,在Lucee - https://luceeserver.atlassian.net/browse/LDEV-2537上,saveoption=“线性”不能正常工作。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58655939

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档