Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Render page as inline JPG/JPEG in browser |
Post Reply |
Author | |
Autodidact
Team Player Joined: 03 Feb 06 Status: Offline Points: 21 |
Post Options
Thanks(0)
Posted: 17 Feb 09 at 3:41PM |
I want to avoid rendering to files that are going to clutter the system, but after hours of trial and error based on information floating around all over the Net I am still unable to achieve my desires. Thus I need some guidance/help.
The code below serves a valid and working JPG-image through the browser that can be saved; Response.ContentType = "image/JPEG" Response.AddHeader "Content-disposition", "attachment; filename=rendered.jpg" Response.BinaryWrite QPDF.RenderPageToVariant( 72, 1, 1 ) Response.end One should think that replacing the second line with the line below, ought to make the image show up in the web page — not so, and I do not know how far off I am although this seem to be the code that I have tried that I find the most logical. Response.AddHeader "content-disposition", "inline; filename=rendered.jpg" Any suggestions, pointers, ideas ... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store