Print Page | Close Window

SetTransparency

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


Topic: SetTransparency
Posted By: hbarclay
Subject: SetTransparency
Date Posted: 06 Jul 11 at 6:05PM

I'm not sure if this is a bug or if I'm just overlooking something obvious, but I'm having to use a workaround to get SetTransparency to work like I expect.

The problem occurs when I am using primarily FormFields but want to overlay the form with text.

I write the field values
Make a call to settransparency with a relatively high value (88) in this case.
Set the text size to a large value.

Call DrawrotatedText to print on the document.

Set the text size back to the original value
Call SetTransparency(0)

Now if I just flatten the fields and print the documents, the fields will use the proper text size, but the transparency is still 88 so they really don't show.

I can make this work by calling DrawRotatedText or just DrawText with a blank value after the SetTransparencly(0) and that apparently tickles the SetTransparency(0) to apply to the fields.

Am I overlooking something?

Harry




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