Print Page | Close Window

Render page as inline JPG/JPEG in browser

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1012
Printed Date: 08 May 24 at 8:23PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Render page as inline JPG/JPEG in browser
Posted By: Autodidact
Subject: Render page as inline JPG/JPEG in browser
Date 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 ...





Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk