Print Page | Close Window

Need sample code for DARenderPageToString

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=1508
Printed Date: 10 May 24 at 10:29PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Need sample code for DARenderPageToString
Posted By: abhay
Subject: Need sample code for DARenderPageToString
Date Posted: 09 Jul 10 at 9:39PM
I am need to modify PDF to image output before displaying to screen.

can anybody give me sample code to use DARenderPageToString so i can modify image in memory?
it will be better if example is with EMF+ in C++.



Replies:
Posted By: Ingo
Date Posted: 10 Jul 10 at 10:21AM
Hi!

Use the search function above
with option advanced,
for all forums,
for any time,
with searchstring "RenderPageToString".

You'll find enough.
First you should be familiar with the sdk - so have a look here:
http://www.quickpdflibrary.com/samples/index.php

Which language and which imagetype doesn't matter.

Cheers and welcome here,
Ingo



Posted By: abhay
Date Posted: 14 Jul 10 at 7:14PM
Thanks for Reply,

I search the samples for "RenderPageToString" and found they are likely to be used to insert in PDF.

What I want to achieve is to paint the PDF in DC at any starting coordinates and size. also I want to modify the colors and removing the page background
The RenderPageToDC paints the PDF from 0,0 (upper left corner).

So I have one option to use RenderPageToDC to paint PDF on memory DC and modify the bitmap as needed and paint it on actual DC using bitBlt. but after process the Image is not good quality as it is raster image. (after increasing the DPI, image is not smooth and affects the performance).

In second method I created the EMF using the RenderPageToFile and drawn on DC. that worked much better.
Now I want to avoid the file operation so instead of "RenderPageToFile", can I use "RenderPageToString"? is it the class or a file stream?

Regards

Abhay



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