Print Page | Close Window

Blocking or Erasing Text

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


Topic: Blocking or Erasing Text
Posted By: JohnTMD
Subject: Blocking or Erasing Text
Date Posted: 07 Jan 15 at 3:05PM
After drawing text is there a reliable way to "erase" or otherwise block or blank the text?

Given:
DPL.SetTextColor(0,0,1); //Blue
DPL.DrawText(1,1, 'Test');

//text inserted

Later:
DPL.SetTextColor(1,1,1); //White?
DPL.DrawText(1,1, 'Test');

Result is a faint outline of text- not completely obscured.

Changing the text transparency setting does not influence text
already inserted.

Any ideas?

TIA,

John





Replies:
Posted By: mLipok
Date Posted: 08 Jan 15 at 1:13AM
Did you look here:
http://www.quickpdf.org/forum/add-text-content-and-remove-later_topic2991.html

-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: JohnTMD
Date Posted: 08 Jan 15 at 2:56PM
Thanks so much.
It looks promising, but, it appears that this method has complications and may not have been tested completely.

I'm going to see if I can simply place a white block over the text, effectively erasing it.

The question then becomes, what happens after each erasure and subsequently adding text.

I'm open for suggestions, but, will report back if I find a simple, workable solution.

I'm casting my vote for a new function, DeleteText(Horizontal,Vertical,Width,Height) or
DeleteText(Horizontal,Vertical,'Original Text').

John



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