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 - Search & Replace Text
  FAQ FAQ  Forum Search   Register Register  Login Login

Search & Replace Text

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


Joined: 30 Jul 12
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote pranavs Quote  Post ReplyReply Direct Link To This Post Topic: Search & Replace Text
    Posted: 30 Jul 12 at 9:29PM
Does QuickPDF Library supports Search & Replace Text function?
 
For example, I want to search for [This information is For:] and replace it with person's name.
 
Thanks,
Pranav...
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 31 Jul 12 at 6:59AM
Hi Pranav!

You can try the embedded text extract funcionalities.
There are options to get informations like used font,
fontheight, fontcolour and the whole text coordinates
while extraction, too.
So you can extract the text page by page,
search for your text and with the draw functionalities
you can fill the background on the same coordinates with
white colour and on the same position you can write your
new text.

This you can do with QuickPDF. This is not a real search
and replace but it looks like ;-)

Cheers and welcome here,
Ingo

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 02 Aug 12 at 11:10AM
PDF files are not designed for Search and Replace which is why most libraries only allow you to add / append commands to an existing PDF file.

There are some options.

1. DrawText(x,y, text)  - but you would need to know where the text is.

2. Use form fields and then you can flatten their contents.

If you are loading existing PDF files that you have no control of then you may be out of luck.

Andrew.

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