itextsharp

In iTextSharp, can we set the vertical position of the pdfwriter?

Hello, I've recently started using iTextSharp to generate PDF reports from data. It works quite nicely. In one particular report, I need a section to always appear at the bottom of the page. I'm using the PdfContentByte to create a dashed line 200f from the bottom: cb.MoveTo(0f, 200f); cb.SetLineDash(8, 4, 0); cb.LineTo(doc.PageSize.W...

Is there a free component to convert arabic html to pdf?

I need to take an HTML page in Arabic and convert it to a PDF. itextsharp doesn't work. Here is some example HTML with Arabic in it. <div> <table border="1" width="500px"> <tr> <td colspan="2"> aspdotnetcodebook اللغة العربية</td> </tr> <tr> <td> ...

.NET version or port of Flying Saucer

Is there any open source .NET project (or port) similar to the Flying Saucer project which renders HTML to PDF using iText? ...

delete first page from PDF using iTextSharp

Hello, Is there a way we can delete the first page of the PDF using iTextSharp? ...

Can I flip the coordinate system without flipping text in iTextSharp?

I have some chart-creating code written for a coordinate system in which a y-coordinate of 0 is the top of the page. We are now converting to iTextSharp, which uses the conventional system from mathematics where a y-coordinate of 0 is the bottom of the page. There are many calculations involved in producing the chart and I'd like to not ...

Inverted colours in tiff to PDF conversion

I'm sure I'm making some kind of silly mistake here, but when converting a tiff file to PDF, the colours become reversed. I can't figure out why. Here's my code: Document document = new Document(PageSize.A4, 50, 50, 50, 50); PdfWriter writer = PdfWriter.GetInstance(document, new FileStream("Image.pdf", FileMode.Create)); System.Drawin...

ITextsharp anchor link in new window

Hi, iam using iTextsharp to create pdf. but the problem is that when i am using anchor element to open link but the link opening in same pdf window rather that i want to open in new window......... ...

Is it possible, with iText# (iTextSharp), to put text on top of an image?

I would need to insert images in a pdf and then put text on top of the image at certain coordinates. Is this possible? ...

using iTextSharp with MVC

I've got a two part question about using iTextSharp. I've built a simple MVC application to store information about "lessons learned" in a SQL Server database. When a user is looking at the details for a lesson I want them to be able to save the lesson as a PDF. I've got some working code but 1) I'm not sure how sound my approach is and ...

IText can't keep rows together, second row spans multiple pages but won't stick with first row.

I am having trouble keeping my first and second rows of my main PDFPTable together using IText. My first row consists of a PDFPTable with some basic information. My second row consists of a PdfPTable that contains all of the tabulated info. Everytime the tabulated info becomes too big and spans multiple pages, it is kicked to the seco...

iTextSharp last version doesnot support metadata?

Console.WriteLine("Chapter 1 example 6: Meta Information"); // step 1: creation of a document-object Document document = new Document(); try { // step 2: // we create a writer that listens to the document // and directs a PDF-stream to a file PdfWriter.Get...

iTextSharp for PDF - how add file attachments?

Hi all. I am using iTextSharp to create a PDF document in C#. I would like to attach another file to the PDF. I'm having just loads of trouble trying to do so. The examples here show some annotations, which apparently attachments are. This is what I've tried: writer.AddAnnotation(its.pdf.PdfAnnotation.CreateFileAttachment(writer, n...

iTextSharp - how to open/read/extract a file attachment?

I have some PDF's all with two attached files with static names. I would like to use iTextSharp to extract these files to a temp directory so that I can work with them further. I tried following the tutorial here but I ran into problems when the iTextSharp.text.pdf.PdfReader didn't have a getCatalog() method as shown in the bottom exam...

is there a nice tutorial/help/ebook/documentation online for itextsharp?

is there a nice tutorial/help/ebook/documentation online for itextsharp? ...

Image auto resizes in PdfPCell with iTextSharp

Hi, i'm having a weird problem with images in iTextSharp library. I'm adding the image to the PdfPCell and for some reason it gets scaled up. How do i keep it to original size? Here's the image of the PDF at 100% and the image in its original size opened in paint.net. I though that the images would be same when printed but the differen...

Populating PDF fields in .NET without a API, such as iTextSharp

class mineTest { string pdfTemplate = @"c:\us.pdf"; public mineTest(Customer c, string output) { StreamReader sr = new StreamReader(pdfTemplate); StreamWriter sw = new StreamWriter(output); string content = sr.ReadToEnd(); content.Replace("(Customer name)/DA(/Ve...

How do I enumerate all the fields in a PDF file in ITextSharp

Let's say I've loaded a PDF file using iTextSharp: PdfStamper p = GetDocument(); AcroFields af = ps.AcroFields; How do I get a list of all field names on the document from af? ...

pdfptable format problem?

Hi, I am using the code below to convert Html string to PDF.I notice that at times, it does print the tables in PDF but no styles(no border, color etc..).Below is the html string: Can anyone suggest me where am I missing something? Hi userThe Message ID 56456 has been assigned to you for Edition. AUTO VERIFY FOR CONGROUP cccccc...

Cant save modified PDF created with itextsharp PdfCopyFields

I can use PdfStamper to populate a blank PDF form with data values, and the result document can be changed and saved by the user. When I needed to stream 2 copies of the same document with different data as a single download, I modified my code to use PdfCopyFields to merge the two documents, which works, but the result document can't b...

Where did iTextSharp's Rtf support go

Hi, with version 5, iText has been split into two branches - iText PDF & iText RTF. iTextSharp, which I use, seem to be iText PDF now. Is there a iText RTF port for .NET yet? I would think that iTextSharp homepage would mention this, but there is nearly no useful information, only file download, I don't even find a way to contact iTextS...