Print Page | Close Window

Replacing Text in a PDF

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=671
Printed Date: 05 Apr 26 at 1:02AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Replacing Text in a PDF
Posted By: PhilG
Subject: Replacing Text in a PDF
Date Posted: 11 Mar 07 at 10:46PM
Hello,
 
Does anyone know if it's possible to directly replace text in a PDF?  Looking at the help file, ReplaceTag certainly looks promising; but when I use it, however nothing happens.  The following code
 
QP.SelectPage 1
QP.ReplaceTag "Original text>", "<New text>"
 
is ineffectual and the only way I have at the moment of replacing text is to draw a white box that covers up the existing text and then draw new text on top of that.
 
Is there a trick to getting ReplaceTag to work, or does it perhaps not apply to all text in the PDF?  If the latter is true, they is it possible to directly replace text in a PDF?
 
Thanks.
 
PhilG


-------------
PhilG



Replies:
Posted By: Ingo
Date Posted: 12 Mar 07 at 1:51AM
Hi Phil!

Few weeks ago i've mailed with Uli in this case...
Replacing text in a pdf-document isn't easy. You need much functionality from a pdf-reader. It's not only replace... it's unencrypt... again encrypt... text can be in objects and not between the "normal" text-tags... There are many things you have to keep in mind when replacing.

For my understanding it's ReplaceTag and not ReplaceText ;-)
ReplaceTag can replace the tag of beginning textcontent  or other objects inside a pdf-document.

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