Print Page | Close Window

Removing text and graphics based on 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=1583
Printed Date: 06 May 25 at 9:39AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Removing text and graphics based on color
Posted By: dengarrett
Subject: Removing text and graphics based on color
Date Posted: 30 Sep 10 at 2:39PM
I have several thousand PDF files which are student workbook pages that include questions.  These pages contain the answers to the questions in the form of text, graphics that represent circled answers, lines that connect answers to questions, etc.  I need to create versions of the files with the answers removed.  Cany anyone offer an approach for tihs using Quick PDF Library 7.21?  Thanks in advance.



Replies:
Posted By: Ingo
Date Posted: 30 Sep 10 at 3:44PM
Hi!

With QP you can overwrite it - not remove.
Another thing (annoying): Render the pages to images...
Paint on the images...
Render images to pdf

Cheers, Ingo


Posted By: dengarrett
Date Posted: 30 Sep 10 at 3:52PM

Thank you very much for the quick reply.  A couple of questions:

1.  Overwriting is probably the best option - how can I programatically obtain the paths needed to overwrite?  They are at random locatons on the page.  The only thing in common that I can find is the color.
 
2.  I thought about rendering to a DC and then manipulating the bits, but I am concerned about the size of the resulting PDF file.  I need to fit thousands of the PDF files on a single CD (not DVD) along with custom software installer for both Mac and Windows.


Posted By: dengarrett
Date Posted: 30 Sep 10 at 5:06PM
I could offer a payment to anyone that can help find a workable solution.


Posted By: Ingo
Date Posted: 30 Sep 10 at 10:29PM
Hi!
 
If you don't do it by yourself you won't learn about easy working with QP ;-)
If you want to know the positions of special text (to be overwrited) you should use the extract functions for the textcontent. With option "3" you'll get the text with all position data, textcolour, fonttype and dimensions.
With this data you can overwrite pretty precise.
 
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