A Developer. An Eweek. Long time no see. I have been given a task to replace text within an existing PDF file. I played around with iTextSharp and is halfway.

Author:Aracage Gardami
Language:English (Spanish)
Published (Last):23 November 2005
PDF File Size:15.79 Mb
ePub File Size:1.47 Mb
Price:Free* [*Free Regsitration Required]

Search everywhere only in this topic. Advanced Search. Classic List Threaded. Then modify the background of that text i. Is this possible with iText? Any tips appreciated.

It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. And if so, it should be possible to replace those structured elements with new ones with the appropriate visual settings?

It seems such a basic thing, but I understand PDF is rather prohibitive in this regard. Alexis Pigeon. Your assumptions are wrong. My understanding is that you can create PDF documents with iText. Certainly this is possible.

PDF is for creating documents! This means that the PDF format must encode the presentation in a structured way. Otherwise, the PDF viewer cannot reproduce the document. Thus, it is structured and all the document information including text is represented in the PDF format. On that part, I may be wrong. Slashdot Needs You. Come on, we don't ask for help often. Wrong again. There is no such thing as a paragraph, line, not even word in PDF.

Just bunches of characters written at some positions. A text element specifies that characters should be drawn at certain positions. The characters are specified using the encoding of a selected font resource. The intro of that chapter should convince them. Take our quick survey online. In reply to this post by Alexis Pigeon. Ahhh, I see. So each individual character is an element.

Well, that's disappointing I guess. But thanks for the clarification! Kevin Day. In reply to this post by sesshomurai. Don't give up yet! It is possible to search for a word using the pdf. If all you want to do is add hi-lighting, then you can probably do this. If you want to actually change the text, then that's a much, much harder problem. That's a great suggestion Kevin. I'll look into it. So basically, I want to highlight and also redact place a black box over the text , so maybe its doable with some clever coding.

If you reply to this email, your message will be added to the discussion below:. Leonard Rosenthol A LOT of government agencies around the world have gotten into trouble using software that only "covers" stuff but doesn't actually redact.

That's a really good point Is it possible with itext? Again your assumptions are wrong. PDF is a format for presentating documents, not for manipulating them. Cheers, alexis Got Input? In reply to this post by Alexis Pigeon Ahhh, I see. In reply to this post by sesshomurai Don't give up yet! If you want to write redaction software, then do actual redaction remove the data!!!

Sent from the iText - General mailing list archive at Nabble. In reply to this post by sesshomurai hello, Are you resolved your problem? Free forum by Nabble. Edit this page.


Find/Replace Text in Existing PDF?

HOME url abc xamarin. Keep Coding csharp, asp. This question already has an answer here: Replace text in PDF file using iTextSharp not AcroFields [closed] 1 answer I' ve been searching the Internet for 2 Weeks and found some interesting solutions for my Problem, but nothing seems to give me the answer. I would like to keep the design of the content. Is it really that hard?


Find And Replace Text In Pdf File. Using C#

By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I' ve been searching the Internet for 2 Weeks and found some interesting solutions for my Problem, but nothing seems to give me the answer. I would like to keep the design of the content.


How to replace specific word in pdf using itextsharp


Related Articles