itextsharp

itextsharp "Object reference not set to an instance of an object" error

I have the following code. In my dev enviroment I am not getting any erros but in my production enviroment I do. ... private Document _pdf; public Report() { _pdf = new Document(); } public string GenerateReport(string reportType) { try { var fs = new FileStream("C:\\myfile.pdf", FileMo...

ASP.NET - PDF Component in Medium Trust

Can anyone recommend some ASP.NET-compatible PDF Components that work in a medium trust environment? I read that ITextSharp works well, but coming from ABCPdf and ASPPdf, the thought of compiling the entire PDF in code is very daunting. Ideally I'd like to use something like wkhtmltopdf to simply convert HTML pages to PDFs (but of course...

iTextSharp international text

Hi there, I have a table in asp.net page,and trying to export it as a PDF file,I have couple of international characters that are not shown in generated PDF file,any suggestions, Thanks in advance ...

itextsharp change table cell data

i have a pdf file i want to change a table cell data by itextsharp is there any way ...

iTextSharp Crashes with a StackOverflowException when getting a font

iTextSharp really, really doesn't like it when I try to create Fonts: FontFactory.GetFont(Font.HELVETICA, 12) This gives me a user-friendly StackOverflowException. So I tried this: new Font(Font.HELVETICA, 12) which does the same thing. Tried Font.TIMES, and got the same thing, too. So I tried dropping a bit lower based on this ans...

iTextSharp international text

Hi There, I have a asp.net BulletedList with some international characters,I am using iTextSharp library to Export the page to PDF. I have no problem with other web page contents except this one.any ideas? Thank in advance ...

iTextSharp : pdfPTable overlapping with other content

I am using iTextsharp to generate a PDF document from C# application. I am having a PdfPTable to display some tabular data. My problem in the table is overlapping with the other paragraph .Is there anyway i can place the table on a particular position ? then below is my code PdfPTable objTable = new PdfPTable(6); objTab...

Is the iTextSharp DLL free to use and redistribute with my web application project?

Is the iTextSharp DLL free to use and redistribute with my web application project which i will be selling? ...

iTextSharp asp.net Bulleted List to PDF

Hi There, I have a asp.net web page with some contents and a BulletedList with some international characters, I am using iTextSharp library to export to PDF format. How can I export only this BulletedList with international characters to PDF. Any Ideas? Thanks ...

How can I use revisions to avoid invalidating digital signatures in a PDF?

Using Acrobat 9, if I sign a PDF using a self-signed certificate and then edit the PDF after I sign it, Acrobat will inform me that there is a valid signature on the document but that the document also has unsigned changes. If I then sign the PDF again and look in the signature panel, it will show the first signed revision with a valid s...

iTexhSharp and international character problem

Hi there, let me ask this questiom one more time, I have a table with some international characters and using iTextSharp to create PDF file. this is my code,some charcters are missing and I need to have these characters as well. Thanks in advance ////////////////////////////////////////////////////////////////////////////////////////...

how to set pagesize in special pages that i want to rotate just these pages!

Hello, I have a document in iTextSharp. I want to set the default 'pagesize' to 'A4', but here we have special pages that needed to be rotated (just these pages) using A4.Rotate(). document.setpagesize(A4.Rotate()) for the pages to be rotated. I'm sorry for my bad english. ...

Replace text programmatically in pdf file with itextsharp

I need to replace text programmatically in existing pdf file (possibly with itextsharp). Where Does anyone know how to do it (well done working example)? Thanks in advance! ...

Reading PDF file to get tabular data in structured format,

I have to read a pdf file which contains a table with several columns. Using iTextSharp I am able to read the file but I get bunch of non-formatted text. I am not able to structure the data so that I can insert into a database. Any suggestions? ...

iTextSharp diacritics

Hi, I am trying to typeset a pdf with iTextSharp library, but I cannot find anywhere how to handle diacritics. Since I found tables of contents of two books about iTextSharp where diacritics has a section, I suppose it is doable. So the question is How to typeset "ř" ? In addition, is there some guide or link about this problem? Than...

iTextSharp: Fill form + add new content

Hi, which is the way to go, if you want in one script: fill a form of an existing PDF document, using pdfReader, pdfStamper and AcroFields add new content to this document: chunk, table, paragraph Thx p.s.: What about PdfContentByte? ...

Importing existing pdf into new document

Hi, I am trying to use iTextSharp to build a new pdf document, that will contain some already existing pdf's. I can import existing jpg's without a problem, but i am struggling with pdfs. Anyone got any info to point me in the right direction Cheers Luke ...

itextsharp table text overlapping

Hi, A website im working on creates a pdf document using itextsharp xml but for some reason when content in a table row is split between two pages the content is falling into the next column and overlapping on the next page. Has anyone come across this issue before and if so any fizes? Any help would be much appreciated. John ...

how to copy only body of pdf file using itextsharp or pdfsharp in C#

I am still waiting for the reply from you all. I really need your support.......plz I am developing a project called pdf recovery. In that i want to just copy the body of file into another pdf file using itextsharp C# lib. i want to parse entire file as soon as i get body i.e. " 1 0 obj<<....>>endobj " according to pdf reference. t...

How to add a form field to an existing pdf with itextsharp?

How to add a form field to an existing pdf with itextsharp? I have an existing pdf document, I'd like to add form fields to it without creating a copy and writing out a new document. ...