itextsharp

Problem matching Code128A Barcodes generated with iTextSharp vs. Barcode.4NET

First of all, I'm kinda new to the barcode formats and what I do know, I've learned from Wikipedia. We have some barcodes generated by an existing app that uses the Barcode.4NET library. The barcode is in Code 128A format. The code to generate them is pretty simple, looking something like this: // Create the barcode Code128ABarcode c12...

ITextSharp and putting rich text in a specific position.

I have created a pdf document using Adobe LiveCycle. The problem I am facing is that I need to add some formatted text in a specific position on the document. How can I do that? overContent.BeginText(); overContent.SetTextMatrix(10, 400); overContent.ShowText("test"); This will only add basic text in the position specifie...

Convert style-laden HTML tables to PDF, in .NET 1.1

I have colleagues working on a .NET 1.1 project, where they obtain XML files from an external party and programmatically instruct iTextSharp to generate PDF content based on the XML data. The tricky part is, within this XML are segments of arbitrary HTML content. These are HTML code users copied and pasted from their Office applications...

Maintain CSS styling when converting HTML to PDF in ASP.NET

Hi, I am using ITextSharp to convert a HTML page to PDF. However, ITextSharp prints the CSS in the STYLE declaration straight out, ignores stylesheets even when added programatically and only listens to some inline styles (e.g. font-size and color but not background-color). Is there something I am missing with ITextSharp, or is there ...

Render PDF in iTextSharp from HTML with CSS

Any idea how to render a PDF using iTextSharp so that it renders the page using CSS. The css can either be embedded in the HTML or passed in separately, I don't really care, just want it to work. Specific code examples would be greatly appreciated. Also, I would really like to stick with iTextSharp, though if you do have suggestions...

Printing from web applications

How do you generate paper-prints from a web application? Specifically I am thinking about more complex paper documents like diplomas, invoices and contracts. Variable number of pages with frames, tables, logos and headers/footers. Today I use custom forms and CSS for certain things and iTextSharp for others (I work with asp.net and MS-...

Can I fill in an encypted PDF with iTextSharp?

I have a fillable, saveable PDF file that has an owner password (that I don't have access to). I can fill it out in Adobe reader, export the FDF file, modify the FDF file, and then import it. Then I tried to do it with iText(Sharp). I can't create a PdfStamper from my PdfReader because I didn't provide the owner password to the reader....

How do I force formatting and calculations in a PDF when filling other fields using iTextSharp?

I have a PDF form with a number of text fields. The values entered in these fields are used to calculate values in other fields (the calculated fields are read-only). When I open the form in Adobe Reader and fill in a field, the calculated fields automatically re-calculate. However, I am using iTextSharp to fill in the fields, flatten ...

PDF Search and Replace in C#

Hi, I want to perform a simple (ideally RegEx) search and replace over a large number of PDF documents in a WinForms application. I've got as far as using ITextSharp to read and tokenise existing documents, from which I can search for the text. The problem is that it doesn't seem to support generating new document from these tokens (onl...

iText - how to do search/replace on existing RTF document

Hi all, Currently I'm working on simple Mail-Merge module. What I need is to load plain *.RTF template, then replace all words enclosed in [[field]] tags and at the end - print them out. I found iText library which is free and capable of loading/saving pdfs and rtf. I managed to load rtf, merge a few copies to one huge doc but I have ...

Create Black and White PDF from Oracle Reports

I have an Oracle Report that must be in pure Black and White. It contains two images which have been converted into Monochrome bitmaps before being inserted onto the report. When the report is executed, the resulting PDF appears to be in black and white. When I view the colour separations in Adobe Acrobat Professional, the image has C...

Is there a straight forward way to append one PDF doc to another using iTextSharp?

I've scoured the Web looking for examples on how to do this. I've found a few that seem to be a little more involved then they need to be. So my question is, using iTextSharp, is there a fairly concise way to append one PDF document to another one? Optimally this would NOT involve a third file. Just open the first PDF doc, append t...

How can I insert an image with iTextSharp in an existing PDF?

I have an existing PDF and I can use FdFWriter to input to text boxes. It works well. Now I have an image. I have read the documentation and looked at many examples but they all create new documents and insert an image. I want to take an existing PDF and insert an image into either an image field or as the icon image of a button. I ...

HTML to PDF Keeping Look and Feel

So I have been using iTextSharp to do a HTML -> PDF conversion, overall it works fairly well, but it doesn't seem to be liking most of the formatting. Bold, Italic, and Underline are all working, however, none of the font sizes, styles or other information is being followed, therefore the export doesn't look much at all like the HTML th...

pdf paragraph or blocks of text positions

I need to find the rectangles that make up the paragraphs and/or blocks of text in a PDF page. I have looked at iTextSharp and DataLogics. The best I have been able to do is find an individual words. However, I need to know if the words are in the same block of text. I am using C#. Anybody have any ideas? ...

Building PDF Files with C#

Does anyone have experience using the following libraries (or others) to build PDF files in C#? Which have you found to be the easiest and most straightforward? What I would like to do is push some HTML into a library and have it spit out a PDF. Any help would be appreciated. iTextSharp QuickPDF Library DynamicPDF TallPDF ExpertPDF ABC...

LaTex for .NET

I am using ItextSharp to generate PDF. Part of our output, we have a lot of math related content. Maybe we can use some kind of Latex library to feed the result to ItextSharp to produce PDF. I have been googling for a while now but found nothing. Do you know if there is a latex library for .NET exists? Also, do you know if ItextSharp ...

How to get html content and convert it to PDF with itextsharp?

Does anyone know how to get a html content, convert it to pdf and save it to database? I've tried so many ways, but nothing seems to work. In some articles, it's written to use HTMLParse, in others HTMLWorker... sometimes throws an error "document has no pages"... sometimes, it just throws an exception but it didn't specify the error......

Is there a way to replace a text in a PDF file with itextsharp?

Hi! I'm using itextsharp to generate the PDFs, but I need to change some text dynamically. I know that it's possible to change if there's any AcroField, but my PDF doen's have any of it. It just has some pure texts and I need to change some of them. Does anyone know how to do it? Thanks in advance! ...

itextsharp extract images

I have been using this code with great success to pull out the first image found in each page of a PDF. However, it is now not working with some new PDFs for an uknown reason. I have used other tools (Datalogics, etc) that do pull out the images fine with these new PDFs. However, I do not want to buy Datalogics or any tool if I can us...