Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARCs of PDF include browser's wrapper #110

Open
machawk1 opened this issue Nov 28, 2018 · 0 comments
Open

WARCs of PDF include browser's wrapper #110

machawk1 opened this issue Nov 28, 2018 · 0 comments
Labels

Comments

@machawk1
Copy link
Owner

When viewing a PDF in Chrome, the browser creates a faux DOM as a wrapper of the PDF content. For example:

<html><body style="height: 100%; width: 100%; overflow: hidden; margin: 0px; background-color: rgb(82, 86, 89);"><embed width="100%" height="100%" name="plugin" id="plugin" src="https://uri/of.pdf" type="application/pdf" internalinstanceid="10"></body></html>

In this case, the Content-Type: application/pdf in the HTTP response does not match that which was captured. While it may be a philosophical issue as to whether the wrapper should be preserved, there seems to be an issue with capturing the PDF's contents. This may be due to WARCreate checking with the faux DOM for embedded resources and there being a conflict with the Content-Type (really application/pdf but the presentation contains content like text/html).

Also, it may be questionable whether WARCreate is currently configure to scrape this URI in the embed, generated by Chrome.

@machawk1 machawk1 added the bug label Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant