Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - replacetag
  FAQ FAQ  Forum Search   Register Register  Login Login

replacetag

 Post Reply Post Reply
Author
Message
mandriospo View Drop Down
Beginner
Beginner


Joined: 16 Dec 21
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote mandriospo Quote  Post ReplyReply Direct Link To This Post Topic: replacetag
    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?


Edited by mandriospo - 17 Apr 23 at 11:35AM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
mandriospo View Drop Down
Beginner
Beginner


Joined: 16 Dec 21
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote mandriospo Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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:
  • Strings, enclosed within parentheses ((...)) or represented as hexadecimal within single angle brackets (<...>). Strings may contain 8-bit characters.


Cheers,
Ingo

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store