Skip to content

Force Rendering of PDF Documents #4584

Answered by amaitland
dbuechel asked this question in Q&A
Discussion options

You must be logged in to vote

If your going to keep the stream in memory then Request Interception is one option.

There's a simplified option available using RegisterResourceHandler. Basically you tell the browser that for the given url it should load the stream. Then you load the url.

public static void RegisterResourceHandler(this IWebBrowser browser, string url, Stream stream, string mimeType = ResourceHandler.DefaultMimeType,

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@dbuechel
Comment options

Comment options

You must be logged in to vote
7 replies
@amaitland
Comment options

@dbuechel
Comment options

@dbuechel
Comment options

@amaitland
Comment options

Answer selected by dbuechel
@dbuechel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants