Print Page | Close Window

replacetag

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=4008
Printed Date: 22 Nov 24 at 8:30AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: replacetag
Posted By: mandriospo
Subject: replacetag
Date Posted: 17 Apr 23 at 11:27AM
I am looking for a way to replace text in my pdf file which was not created by quick pdf library.
I tried ReplaceTag function but it works with weird way. When I run code:
$oQP.ReplaceTag('Z!CD!', ' ')
then text 'MARTA" will be changed to space
Z stansd for M
! stands for A
C stands for T

Now when I use this code:
$oQP.GetPageText(3)
then I can see 'MARTA' text normally

I also tried:
$oQP.ReplaceTag('Z!CD!', 'MARTA')
and now instead of 'MARTA' text I see '1EB7E' text Confused

Is it something about encoding?



Replies:
Posted By: Ingo
Date Posted: 20 Apr 23 at 10:47PM
The text content CAN be visible but it's not a must - there are several technics to integrate text.



-------------
Cheers,
Ingo



Posted By: mandriospo
Date Posted: 22 Apr 23 at 7:44PM
I mean I can replace text on my pdf but A letter does not match A. Why is that?


Posted By: Ingo
Date Posted: 25 Apr 23 at 10:27PM
What you see and how it's embedded into the content is different.
Here you can read about the file type pdf in common and how information is integrated in a pdf-file:
https://en.wikipedia.org/wiki/PDF

Regarding strings inside of pdf content you can read this:
  • https://en.wikipedia.org/wiki/String_%28computer_science%29" rel="nofollow - Strings , enclosed within parentheses ((...)) or represented as hexadecimal within single angle brackets (<...>). Strings may contain 8-bit characters.




-------------
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