【发布时间】:2016-09-09 02:50:36
【问题描述】:
在 google chrome 中查看 pdf 时,DOM 的结构非常相似。总是有一个带有 'stream-url' 属性的嵌入元素,其值如下:'blob:chrome-extension://abunchofrandomnumbersandletterswithdashes'
例如:
摘自: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="">
我唯一注意到的是,如果您重新打开选项卡,值会发生变化。非常感谢!
【问题讨论】:
标签: html google-chrome http dom google-chrome-extension