We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

PDF - Search & Replace

Thread ID:

Created:

Updated:

Platform:

Replies:

130765 Sep 20,2005 11:44 AM Oct 16,2017 08:09 AM Windows Forms 12
loading
Tags: PdfViewer
Thomas Abruzzo
Asked On September 20, 2005 11:44 AM

We are looking for a solution to search and replace fields or text string within a pdf. We were working with the API but we could not figure out how to accomplish this task. Any help would be appreciated.

Administrator [Syncfusion]
Replied On September 21, 2005 12:57 PM

Hi Thomas, The current version of Essential PDF can only create PDF files from scratch and does not have the capability to read existing PDF documents. However we do have plans for implementing reading functionality in the 4-6 months timeframe. We will surely try to implement search and replace feature if possible during that timeframe. Sorry for the inconvenience. Thanks, Stephen. >We are looking for a solution to search and replace fields or text string within a pdf. > >We were working with the API but we could not figure out how to accomplish this task. > >Any help would be appreciated. >

Martin Dolecek
Replied On November 11, 2008 12:29 PM

Hello Stephen or someone else,

please is this functionality now possible in present version (Nov 2008)? Is there some example in C# how to do it? Thank you very much, I must be fully sure, that this is possible now.

Martin


>Hi Thomas,
>
>The current version of Essential PDF can only create PDF files from scratch and does not have the capability to read existing PDF documents. However we do have plans for implementing reading functionality in the 4-6 months timeframe. We will surely try to implement search and replace feature if possible during that timeframe.
>
>Sorry for the inconvenience.
>
>Thanks,
>
>Stephen.
>
>
>>We are looking for a solution to search and replace fields or text string within a pdf.
>>
>>We were working with the API but we could not figure out how to accomplish this task.
>>
>>Any help would be appreciated.
>>


Sri Subhashini M [Syncfusion]
Replied On November 12, 2008 07:42 AM

Hi Martin,

Thank you for your interest in Syncfusion products.

With the current implementation of Pdf.base, we can read an existing document with the help of class PdfLoadedDocument. We can extract the text and images from an existing PDF document by using the methods ExtractText() and ExtractImages().

ExtractText() method retrieves text content from PDF document and it does not preserve the text formatting style. We could perform search and replace operations over the extracted text.

Please do find the sample from the below specified location which demonstrates above specified feature and let me know if this helps.

http://websamples.syncfusion.com/samples/pdf.windows/F3498/Pdf_Window_34980.zip

Regards,
Suba




Alan Schofield
Replied On April 27, 2009 11:00 AM

I've looked at the sample supplied but unless I am mistaken (I've not finished downloading the trial yet!) it appears to simply create a new PDF conainaing the text, with the selected test replaced.

What I need is a way to replace text in a completed PDF document, either in the original or in a copy. Either way the result must be an exact copy of the original exccept for the replaced text.

Note: there is no requirment to replace images, simply text.


Bhuvaneswari P [Syncfusion]
Replied On April 29, 2009 06:46 AM

Hi Alan,

Thank you for your inquiry.

The current version of Essential PDF can only read existing document page by page or we can extract entire text or image without the position details in the document.

Currently we don't have support to find and replace text in the document. Previously given workaround will work in case the document contains only text without formatting.

We have logged feature request regarding this requirement. We will get back to you once the feature is implemented.

Best Regards,
Bhuvana


Anders Molin
Replied On June 19, 2014 08:12 AM

Hi,

This is an old thread, but is there any news about this.

I need to find some text in a pdf, and replace it with some new text. The text is formatted and I need to keep this formatting....

Duane Boldt
Replied On October 20, 2014 05:46 PM

I would also like to both search and replace test and search and replace images.  Has this functionality been added since this thread was started in 2005?

Duane

Duane Boldt
Replied On October 20, 2014 05:48 PM

I would also like to both search and replace TEXT and search and replace images.  Has this functionality been added since this thread was started in 2005?

Duane

Philip Tenn
Replied On May 31, 2017 02:40 PM

Hello,

I need this sample code, but I get access denied when trying to download it.

Ayswarya Krishna Kumar [Syncfusion]
Replied On June 1, 2017 10:37 AM

Hi Customer,    
Thank you for your update.  
At present, we do not support replacing a text in the PDF document using Syncfusion PDF library. However, we can find the texts in the PDF document using FindText() method. The sample provided in the forum is a workaround sample. But it has some drawbacks. We cannot retrieve the font name and the font color for the found text. While replacing the text, we cannot place the text in the exact bound of the text found(overlapping of the texts may occur). We will consider this as a feature in our product. Please let us know your requirements regarding the find and replace of the texts in the PDF document. This will be helpful for us to analyze further and assist you better.    
Regards,  
Ayswarya 


Paul
Replied On October 15, 2017 08:33 PM

wow! 12 years and still not implemented :-(... this is the only reason why i downloaded syncfusion essentials... 

glad to have seen this thread... saved me a time...

kindly announce once this feature is supported


Priyanga Elangovan [Syncfusion]
Replied On October 16, 2017 08:09 AM

Hi Paul,

Sorry for the inconvenience caused.

Currently, the PDF viewer do not support replacing the texts in the PDF document. The feature “Replacing the text in the PDF document” does not comes under the scope of the PdfViewerControl and we are focusing only in displaying the PDF document and manipulating annotations in it. We do not have any plans to implement the support for PDF editor and the support for finding and replacing texts in the PDF documents.

Please let us know if you have any concern.

Regards,
Priyanga.E
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;