How to edit PDF File with iTextSharp - c#

I'm currently working on a .NET Desktop Application project, I need to manipulate a PDF template by replacing some keywords. It would be great if I can see a simple sample. Thanks in advance.

iTextSharp only allows you to modify Form Fields not flattened text.

Related

PDFium - Reading Values of PDF Text Form Fields?

I am using PDFium to load a PDF on my Windows-Form via Visual Basic .NET. The PDF contains form fields. There is a Windows-Forms-Button that allows me to save the PDF on hard disk.
Is it possible to read the entered values ON the PDF with PDFium once the save button is clicked?
Ideas based on Visual C# .Net are also welcome.
Thanks in advance.
This functionality is not present in the original Pdfium engine. But the vendor says that this ability will be provided in the next release of Pdfium.Net SDK which is expected soon.

Asp.net mvc upload word file to read bookmark

I want to upload a word template which has some bookmarks in it i need a code to read the bookmark and replace with the values which are coming from the database on a form so that i can print the word template can anyone tell me how to do it or any example to do it?
There is great .net library at http://docx.codeplex.com/ . It is a real good help for creating and manipulating word documents.

Create PDF report in ASP C# by using database

i'm trying to create a PDF by using database in ASP C#. PDF will include just titles and contents so what do i have to use to do such a thing and can you provide me a some examples? Thank you.
You can use iTextSharp which is an open source pdf library.
You can find a documentation format here.
Book reference : iText in Action
Generate PDF using iTextSharp can be a good startup on how to use iTextSharp to generate PDF using asp.net.
I would go for html -> pdf conversion. You can use a free command line utility wkhtmltopdf for it.
If you want something more complex like prepare multiple templates or store history of pdf outputs. Look at free reporting server jsreport. ( I am the author)

Search text in pdf

can someone tell me if AcrobatAccessLib (Acrobat Access 3.0 Type Library) in com references can be used for text searching in pdf document?
It contains class PDDom, but I dont know if I can load document into it or, how to work with it.
(I dont wanna use iTextSharp, and others, I tryied it but not works as I wanted - pdf has corrupted number paging + contains tables, that are across 2 pages - iTextSharp finds me searching text on both pages - instead of 1, but if I use Acrobat Reader - it works well)
EDIT: Or another question, Can I use acrobat reader and its searching module in my application?
I am working in c#
Thanks a lot!
Try to use PDFLIBNET.DLL
in that dll have pdfwrapper class, this class provides lots methods to get text from pdf. The FindText method used to get a text from a particular position, and exportToText method gives content of pdf page
from that content u will search the pdf content..
am using tat DLL and searching the pdf content with out any issue..
try it and let me know..
If money is not an issue, I would by the Aspose PDF components. They work pretty well and are built for server usage.

how to search and highlight pdf's keyword programmatically

i've tried two different component to integrate pdf file in windows form application (c#).
the above mentionated component are PDFSharp and Sloppycode webBrowserEx.
Now, both of them work fine, but I'm not able to search and highlight programmatically full text defining by user through a textBox.
Can anyone give me some suggest to achieve my purpose?
Thanks in advance.
I found this answer to help me when I was working with PDFs. Not sure if you seen it yet but it may help you. I went with iTextSharp.
how to highlight a text or word in a pdf file using iTextsharp?
hope it helps.

Categories