itextsharp

iTextSharp - Problem while extracting images with CCITTFaxDecode

Hi All, I am using iTextSharp to extract images from PDF. However, if the images are CCITT fax decoded, the bitmap creation fails with "Parameter not valid" error. As PdfReader.GetStreamBytesRaw returns CCITT encoded bytes, bitmap creation fails. Can someone please help me with decoding CCITT encoded bytes and in turn create a bitma...

How to write a table with iTextSharp

I can build a pdf. What I need to know is; How do you build a table with column headings and borders with iTextSharp? Thanks ...

Check Mark in iTextSharp

I am building a pdf. I would like to have some text and next to the text a check mark. Does anyone have an idea as to how to do this? Thanks ...

iTextSharp - Convert word doc/docx to pdf

Hello there, I understand iTextSharp can be used for converting a document to pdf. But first we have to create a document from scratch using iTextSharp.text.Document and then adding elements to this document. What if I have an existing doc file, is it possible to convert this document to pdf using iTextSharp. Also, I want to use iTex...

iTextSharp - Outputting a segment of HTML into PDF (into a Table Cell)

I'm using iTextSharp to generate PDFs for an ASP.NET application, the PDF generation seems to work fine, though I'm finding iTextSharp a little unintuitive to use, but that's a different story. I'm putting data into a table inside my PDF, now I want to place HTML content into a table cell and have it maintain the formatting/styling. I'v...

how to parse < sign htmlparser.Parse(sr)?

hi i am trying to export html to pdf. using itextsharp , In the html table one value appears like this <34 . while parsing , this is giving error. (closing tag i.e.> is required ...) please tell me how to get through this? thanks in advance, rsd ...

Problem adding javascript into PDF using iTextSharp

Hello experts, I am trying to embed JavaScript into pdf that is created using iTextSharp and it is working absolutely fine if it is a file as shown in the code. But when I try to embed the javascript part into a memory stream it is not working. Are there any limitations of iTextSharp?? Dim js As New StringBuilder Dim p...

Create pdf file from Binary data using itextSharp

Hello Users, I want to create a pdf file from Binary data. I looked around and found examples using iTextSharp by fetching data from the database. But almost all of them show how to display in the browser. I want to create a file like pdffromDB.pdf instead of displaying as shown below doc.Close(); Response.BinaryWrite(MemStream.GetBuf...

Reversing Strings in Right To Left (BiDirectional) Languages in C#

Hey, I'm using iTextSharp( C# iText port) to create pdfs from text/html. Most of my text is in Hebrew, a Right-To-Left language. My problem is that PDFs show RTL langauge in reverse, so I need to reverse my strings in a way that would only reverse the RTL text without reversing any numbers or text in English. It is my understanding th...

How to remove a column from an iTextSharp table

In my c# app, I have a function to generate a PDF document using iTextSharp, which includes a table of figures. The table (PdfPTable specifically) is populated and then inserted into the document. After it has been populated, under certain conditions, I would like to remove one of the columns - does anyone know how to do this? I know I...

How to generate a PDF file preview using iTextSharp

Hello everybody, Please advice how can I render the preview of the existing PDF file to a Bitmap so I can display it on my form? Many thanks in advance. BR, Murat ...

itextsharp: setting dimensions of image manually

the user will pick an image on their hardrive and i will put it on a pdf file using itextsharp with vb.net. how do i manually set the dimensions of the picture? ...

Append PDF to a Signed PDF

I need to append a pdf file to a digital signed pdf file, keeping valid the signature ...maybe using revision? ...using iTextSharp? How can I do it? Please help me with some sample. ...

How to make an incremental update to a PDF

I need to make an incremental update (add some existing pdf pages) to an signed pdf, making the included signature still be valid (that cover the first page). I've seen some post's telling that is possible with PDFStamper (iTextSharp), but I'm unable to find a example out to make it append, some one can help? Thanks. ...

itext positioning text absolutely

In itext I have a chunk/phrase/paragraph (I dont mind which) and I want to position some where else on the page e.g. at 300 x 200. How would I do this? ...

itextsharp and livecycle

i've managed to create a template (for an invoice) in livecycle. i've choosed dynamic pdf instead of static pdf because of a few fields that needed to autoresize (like address, product name). now i use itextsharp to complete the fields, and it works if i save the pdf as acrobat 7 dynamic xml form. the problem is that the fields are edit...

Writing to DirectContent with ColumnText does not update PdfDocument.GetVerticalPosition

Im using ITextSharp to generate a PDF, and have a situation where a need to use DirectContent via a ColumnText. The problem is, that after writing text via the ColumnText object, the PdfDocument.GetVerticalPosition has not been updated? See following test which fails: public void TestGetVerticalPositionIsUpdated() { Pdf...

I use itext.dll for generating a PDF using ASP.NET and I want a footer in my document?

I use itext.dll for genrating a PDF using ASP.NET and I want a footer in my document in the form of: Page 1 of 6 HeaderFooter footer = new HeaderFooter(new Phrase("Page"), new Phrase(" of 6")); footer.setBorder(Rectangle.NO_BORDER); footer.setAlignment(Element.ALIGN_CENTER); document.setFooter(footer); Is thi...

Itextsharp non breaking hyphen

When I set the text in a TextBox field in a PDF using iTextSharp, the word wrap occurs at the hyphens. I want the hyphens to be non breaking. I have tried inserting \U2011, but unfortunately when I open the Pdf doc the hyphens are not shown until I adjust the size of the textbox manually. Maybe I need to override the SplitCharacter in...

Making a PDF output in raster format instead of vector using itextsharp

I have written C# code to save product specifications to a PDF document using iTextSharp, mainly with PdfPTable and Chunks/Paragraphs in the PdfPCells. However, I have been told that the output is unacceptable due to the fact that you can highlight and copy the text from the document and document storage and retrieval server software tha...