在google chrome中查看pdf时,DOM的结构非常相似。总是存在与 '流-URL' 与这样一个值属性的嵌入元件: '斑点:铬扩展:// abunchofrandomnumbersandletterswithdashes'什么是流url?
例如:
摘自:http://www.mathworks.com/moler/random.pdf
<embed id="plugin" type="application/x-google-chrome-pdf" src="http://www.mathworks.com/moler/random.pdf" stream-url="blob:chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/95301F67-C250-4082-B5C0-6BDBB077B63C" headers="Accept-Ranges: bytes
Content-Length: 111906
Content-Type: application/pdf
Date: Fri, 13 May 2016 03:53:17 GMT
ETag: "1b522-4e738e204e8c0"
Last-Modified: Wed, 25 Sep 2013 17:50:03 GMT
Server: Apache/2.4.6 (CentOS)
" background-color="0xFF525659" top-toolbar-height="56" full-frame="">
我注意到的唯一情况是,如果您重新打开选项卡,值会发生变化。非常感谢!