Print Page | Close Window

Background Color for pdf-pages

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=648
Printed Date: 01 Feb 26 at 1:38PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Background Color for pdf-pages
Posted By: Ingo
Subject: Background Color for pdf-pages
Date Posted: 22 Feb 07 at 4:06PM
Hi!

Perhaps i can't read the reference ... ;-)
How can i create a background color for a complete document-page with QuickPDF?

Thanks in advance!
Ingo




Replies:
Posted By: Ingo
Date Posted: 05 Mar 07 at 3:11PM
Yes... I couldn't read the reference ;-)

Here's a small example with a red background:

QP.SetPageDimensions(width, height); // The page dimension for the new page
QP.SetFillColor(1.0,0.0,0.0);        // It's RGB ... so 1.0 means red
QP.DrawBox(0,0,width,height,1);      // 1=Fill

Best regards,
Ingo







Posted By: marian_pascalau
Date Posted: 06 Mar 07 at 3:15AM
Ingo,
I once had a plan to change the backround color in rendering. If you need this feature I may check a way how you can set it from delphi.


Posted By: Ingo
Date Posted: 06 Mar 07 at 4:20AM
Hi Marian!

For my needs it works like i described.
Thanks for your offer.

Best regards,
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