How to convert pdf from crystal report using itextsharp

I need to change the PDF extraction option in document restriction summary section. Is it possible. Please find the elaboration of the question on below link.

Member 8394855 25-Jun-17 7:16
Response.ContentType = "pdf/application"; Response.AddHeader("content-disposition", "attachment;filename=First_PDF_document.pdf"); Response.OutputStream.Write(ms.GetBuffer(), 0, ms.GetBuffer().Length);
Member 10037267 11-Jun-17 23:06
How to Convert/Export an ASPX page with texboxes and other controls(Checkbox,Radio buttons etc) to PDF using itextsharp Can any one help?
nachia 17-May-17 23:53
How to generate bookmarks based on the PDF. We did not need to hard code any bookmarks instead it will process from the input file. Is it possible in ITextSharp. Please guide me.
Sign in· View Thread
Rajib13 29-Oct-16 17:17 Member 9862987 26-Oct-16 6:23
Thanks for your hard work on this - a really useful article.
Sign in· View Thread
ormonds 16-Sep-16 19:22
Thank you for your excellent article. I was struggling with itextsharp until I found it.
I am using your Add Watermark code but it is not adding a watermark. Unlike
[^]
the file sizes remain the same.
The DLL is version 5.9.9.0, has there been any change since you wrote your article?
Any other suggestions?
Sign in· View Thread
kapil koli 1-Sep-16 3:45

Thank you very much for this well explained article. I am going through it to learn the basics.

Since last one day, I am exploring couple of third party components to work with PDF through C#. These are Aspose.pdf.net and iTextSharp. Following are the details about what I am exploring them for:

I have some PDFs that contain sensitive information in form of text, like name of person, city, etc.
These PDFs need to be duplicated into another copy but while creating duplicated copy, sensitive text needs to be found & replaced with some dummy text.
The replacement is essential to avoid tracing original information, by any fraudulent means.
Also, the replaced text requires to be redacted.

Finding text is expected to support RegEx, as there could be variations of text that needs to be masked.

Could you please assist me how can this be done using iTextShart.

Beginner Luck 16-Aug-16 23:44 prince raj 30-Jul-16 0:45

i have read full blog on
http://www.codeproject.com/Articles/686994/Create-Read-Advance-PDF-Report-using-iTextSharp-in

now my question is
i have PDF that like

Benefits of Water Without water nothing can live. Both animals and plants need water to live. It the source of all life on earth. We drink water. . . water

above pdf written in ARIAL font

now understand me

i need loop through all character and change font for particular character

character - fontname
----------------------
W - FONTforW
A - FONTforA
T - FONTforT
E - FONTforE
R - FONTforR


i want to change character wise font

Member 11716653 6-Jan-16 22:29 Member 11716653 6-Jan-16 21:58
Thanks. its very useful and easy to learn..
Sign in· View Thread
Humayun Kabir Mamun 2-Jan-16 23:21 Member 9325544 23-Oct-15 4:04
I'm just starting in iTextSharp and could understand many things.
Thanks
Sign in· View Thread
Member 11993999 22-Sep-15 19:48 ALVERNE 19-Dec-15 4:35

Private Function MakePdfFromImage(ima As System.Drawing.Image) As MemoryStream Dim PDFBytes As Byte() Dim im As iTextSharp.text.Image Dim imgMS As New MemoryStream() ima.Save(imgMS, System.Drawing.Imaging.ImageFormat.Png) im = iTextSharp.text.Image.GetInstance(imgMS.ToArray(), False) Dim width As Single = CSng((im.Width / 300.0) * 72.0) Dim height As Single = CSng((im.Height / 300.0) * 72.0) Dim rect As New iTextSharp.text.Rectangle(width, height) Using mem = New MemoryStream Using doc = New Document() Using writer = PdfWriter.GetInstance(doc, mem) doc.SetMargins(0, 0, 0, 0) writer.SetMargins(0, 0, 0, 0) writer.CompressionLevel = 100 writer.SetFullCompression() doc.Open() doc.SetPageSize(rect) im.SetAbsolutePosition((doc.PageSize.Width - width) / 2, doc.PageSize.Height - height) im.ScaleAbsolute(width, height) doc.Add(im) doc.Close() PDFBytes = mem.ToArray End Using End Using Return New MemoryStream(PDFBytes) End Using End Function