Print Page | Close Window

Background color

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=1093
Printed Date: 12 Dec 25 at 10:19AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Background color
Posted By: artjaggy
Subject: Background color
Date Posted: 01 Jun 09 at 2:34AM
Hi,

I am using QuickPDF 7.13, and I was curious is there a way to use background color other than white, when rendering PDF.

Thnx in advance.



Replies:
Posted By: Ingo
Date Posted: 02 Jun 09 at 6:30AM
Hi!

First you should use
SetFillColor
sample: SetFillColor(0.5, 0.5, 0.5) is grey
sample: SetFillColor(1.0, 1.0, 1.0) is white
Second you should use
DrawBox

Cheers, Ingo



Posted By: artjaggy
Date Posted: 08 Jun 09 at 2:57AM
Thnx for your reply, Ingo!

What I meant is how do I render existing pdf file to the monitor, but instead of white background, I want to use, lets say yellow.


Posted By: Ingo
Date Posted: 08 Jun 09 at 6:26AM
Hi!

You don't render on white background.
Rendering means transforming complete pdf-pages into an imageformat.
If the pdf-page has a yellow background you will see it after rendering, too. If not then not ;-)
If you are rendering with less dpi and if your image component or whereever you want to show the render result has yellow background color then you see a yellow background. If not then not ;-)
What i want to say is: Rendering has nothing to do with a background color. You can render the pdf bigger or smaller to an image component - what you can do is to set the background color of the image component.
If you want to set a frame round your rendered document then i come back to my previous post.

Cheers, Ingo




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