“name” web pdf for better default save filename in Acrobat?

后端 未结 16 1747
难免孤独
难免孤独 2020-12-14 00:09

My app generates PDFs for user consumption. The \"Content-Disposition\" http header is set as mentioned here. This is set to \"inline; filename=foo.pdf\", which should be

16条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 00:59

    Try this, if your executable is "get.cgi"

    http://server,org/get.cgi/filename.pdf?file=filename.pdf

    Yes, it's completely insane. There is no file called "filename.pdf" on the server, there is directory at all under the executable get.cgi.

    But it seems to work. The server ignores the filename.pdf and the pdf reader ignores the "get.cgi"

    Dan

提交回复
热议问题