是“ZIP”吗?扩展强制“保存为”的唯一方式为你的PDF? [英] Is a "ZIP" extension the ONLY way to force a "SAVE AS" for your PDF?
问题描述
我有一份PDF格式的简历,我希望任何左键单击链接的人
强制保存文件,无论如何_not_打开。
由于PDF在任何情况下都会在他的缓存中,我会尽快将
雇主控制在他希望保存的目录中,并且两个
这个突出的原因:
1.我希望他自己的文件
2.我希望他找到这份文件,很快,在他的硬盘上
无论如何我不希望它被埋在他的缓存中并且很容易被抛弃。
在正常情况下我会对客户(更不用说
浏览器)在PDF文件的处理方面行使自由裁量权感到满意?感谢
我正在向他推送这个文件,明确意图是扣留他的
选项以便轻松处理它。 ;)
我想我理解两点,即FORCE A SAVE-AS。问题,但纠正我,如果
我错了:
1.这不是你可以编码到HTML中的东西(它是一个HTTP函数)
2.我需要运行某种脚本来覆盖客户端的浏览器本能
和/或首选项设置
我非常不想要压缩这个文件,但我会作为最后的手段。
我有一个聪明的想法,一个解决方法(原谅我,如果这是业余的)它是
这个:有没有办法简单地编码成HTML的东西,比如
myfile.pdf = OPEN,FALSE
或
myfile.pdf =不要打开
?
另外,有没有人知道免费软件脚本,在某个地方,我可以修改
并用它来实现这个工作吗?
我不觉得很多人都很欣赏这个问题有多棘手是!我不敢相信我在这个问题上读过的很多帖子。在我见过的其他各种剧本中,有些是b $ b - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
内容 - 处置:附件; filename = MYFILENAME.pdf"
" Content-type:application / pdf"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
和
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
标头(&Content-Type:$ mimetype";
标头(&Content-Length:$ filelength");
header(" Content-Disposition:attachment; filename = $ filename")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
我确实意识到这有多难,但用〜.zip重命名它的替代方法
扩展程序非常感谢。谢谢大家!
天使
I have a resume in PDF format and I want anyone who LEFT-OR-RIGHT clicks the link to
force the file to be saved, and in any event _not_ opened.
Since the PDF will be in his cache in any event, I would just as soon place the
employer in control of what directory he wishes to save it in, and there are two
salient reasons for this:
1. I want him to OWN the document
2. I want him to FIND the document, quickly, on his hard drive
In any event I don''t want it buried in his cache and so easily abandoned.
Under normal circumstances I would be comfortable with the client (not to mention the
browser) exercising discretion as to the disposition of a PDF file ? appreciate that
I am PUSHING this one document to him with the express intent of withholding his
option to dispose of it so easily. ;)
I think I understand two points viz this "FORCE A SAVE-AS" issue, but correct me if
I''m wrong:
1. This isn''t something you can code into your HTML (it is an HTTP function)
2. I would need to run some sort of script to override the client''s browser instinct
and/or preference settings
I so badly don''t want to have to zip this file, but I will as a last resort.
I had one clever thought as to a workaround (forgive me if it is amateur) and it was
this: Is there a way to simply code into the HTML something like
myfile.pdf = OPEN, FALSE
or
myfile.pdf = DO NOT OPEN
?
Alternatively, does anyone know of a freeware script, somewhere, that I could modify
and use to get this to work?
I don''t think many people appreciate how tricky this issue is! I can''t believe how
many posts I''ve read on this ONE ISSUE. Amongst various other scripts I''ve seen are
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Content-Disposition: attachment; filename=MYFILENAME.pdf"
"Content-type: application/pdf"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
and
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
header("Content-Type: $mimetype";
header("Content-Length: $filelength");
header("Content-Disposition: attachment; filename=$filename")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I do realize how difficult this is but any alternatives to renaming it with a ~.zip"
extension would be so appreciated. Thanks everyone!
Angel
推荐答案
mimetype" ;
header(" Content-Length:
mimetype";
header("Content-Length:
filelength");
header(" Content-Disposition:attachment; filename =
filelength");
header("Content-Disposition: attachment; filename=
filename")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
我确实知道这有多难,但任何替代方案使用〜.zip
扩展名重命名它将非常感激。谢谢大家!
天使
filename")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I do realize how difficult this is but any alternatives to renaming it with a ~.zip"
extension would be so appreciated. Thanks everyone!
Angel
这篇关于是“ZIP”吗?扩展强制“保存为”的唯一方式为你的PDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!