itextsharp

Merge PDF with ITextSharp

HI, i'm trying to merge 3 pdf file. One of this 3 file have some TextField, but after the merge this textfield aren't editable anymore. Why? ...

Add a new Page to existing Pdf File with ITextSharp

How can i do to add a new page and a new text to an existing Pdf File with ITextSharp library? i'm trying but the new page delete the existing page. thank you Bye ...

Itextsharp resize(as in zoom-out, not crop, not compress) pdf from 210x297 to 197x279

How do i resize an existing pdf to another format. I don't want to crop the pdf, it must be zoomed-out. (for printing issues) When i try this it doesn't work because the pdf is cropped instead of zoomed document.SetPageSize(new Rectangle(558.40f, 790.83f)); // 558.40f == 197mm ...

Can iTextSharp rasterize/export to JPEG or other image format?

I need to be able to export PDF's that I am creating to JPEG, so that users can have a screenshot/thumbnail of the end product, which is faster than opening the whole PDF. I am running this on an ASP.NET website running in Medium Trust in the Rackspace Mosso Cloud. I have yet to find a library that will either work in Medium trust, or ...

Can I use iText to render PDF in my Swing application?

Can iText render PDF documents in Swing application ? Or do I have to use another library/framework for that? ...

iTextSharp open Document as 75%

hi i am using iTextsharp to generate pdf ,i would like to open a pdf at 75% ...

iTextSharp everything works but getting strange error when opening pdf document

Hello everybody, I am using iTextSharp to create my PDF document on the fly. Everything works fine, and i get no errors in the code; however, when i open created PDF it gives me error saying that document will be not displayed properly because it contain errors. Here is the code bellow that gives me a problem: public class pdfevents :...

How to calculate the correct image size in out pdf using itextsharp ?

I' am trying to add an image to a pdf using itextsharp, regardless of the image size it always appears to be mapped to a different greater size inside the pdf ? The image I add is 624x500 pixel (DPI:72): And here is a screen of the output pdf: And here is how I created the document: Document document = new Document(); ...

iTextSharp: How to position and wrap long text?

The PDF I can produce at the moment: I want the text to fill up the space in the lower left. How can I do that? Thanks! This is my code: private static void CreatePdf4(string pdfFilename, string heading, string text, string[] photos, string emoticon) { Document document = new Document(PageSize.A4.Rotate(), 26, 36, 0, 0); PdfWrite...

Read/Modify PDF Metadata using iTextSharp

Hello, I am trying to use iTextSharp to read/modify PDF metadata. I figured out how to do it using pdfreader and pdfstamper. I was wondering if I could also read/modify additional metadata information like copyright information and few others within the XMP photoshop namespace. I would greatly appreciate any pointers to the solution. ...

Trouble with ITextSharp - Converting XML to PDF

Okay... I'm trying to use the most recent version of ITextSharp to turn an XML file into a PDF. It isn't working. The documentation on SourceForge doesn't seem to have kept up with the actual releases; the code in the provided example won't even compile under the newest version. Here is my test XML: <Remittance> <RemitHeader> <Paye...

Create PDF in memory instead of physical file

How do one create PDF in memorystream instead of physical file using itextsharp. The code below is creating actual pdf file. Instead how can I create a byte[] and store it in the byte[] so that I can return it through a function using iTextSharp.text; using iTextSharp.text.pdf; Document doc = new Document(iTextSharp.text.PageSize.LETT...

ITextSharp HTML to PDF?

I posted a question here a few weeks ago asking about an alternative to creating .fdf files to fill in pdf documents and someone here pointed me to ITextSharp. It's working like a champ so thanks for that. I'd now like to know if ITextSharp has the capability of converting HTML to PDF. Everything I will convert will just be plain text...

iTextSharp: Writing RTF in a PDF document

Hello, I'm using iTextSharp (with C# and VS2008) to generate a report from a database table row. Generate PDF is not a problem... but when I try to add RTF text into the PDF I cant't find a way into iTextSharp object structure. How can I do it? Thanks a lot! ...

i had problem in adding the additional content in my pdf

I am converting my data set into a pdf document.My data set contains the product bill details.So,at the top of the pdf i need to added some more content like "my company name & address customer name, date of bill,bill no" Below code i am using to convert into pdf. public static void Exportdata(DataTable dataTable, HttpResponse Response...

Edit PDF online and save and form data to server

Hello, I have some PDF documents which are being displayed in the browser, with some fields already being pre-populated from the database using iTextSharp (we are running Windows Server 2008, IIS 7, SQL Server 2008, and ASP.NET 2.0/2.5 with C#). Our clients need to be able to fill in the remaining fields and save the PDF to the server. ...

Convert asp.net webforms logic to asp.net MVC

I had this code in an old asp.net webforms app to take a MemoryStream and pass it as the Response showing a PDF as the response. I am now working with an asp.net MVC application and looking to do this this same thing, but how should I go about showing the MemoryStream as PDF using MVC? Here's my asp.net webforms code: private void...

Populate Multiple PDFs

I am using itextsharp to populate my PDFs. I have no issues with this. Basically what I am doing is getting the PDF and populating the fields in memory then passing back the MemoryStream to be displayed on a webpage. All this is working with a single document PDF. What I am trying to figure out now, is merging multiple PDFs into one Mem...

iTextSharp table alignment

I am using iTextSharp to create a pdf in my ASP.NET 3.5 application. Below is the current layout of my pdf: John Doe   EmployeeID 2008      Department1                                                        Department2                                                        Department3 Below is the code I am using: PdfPTable table = ...

iTextSharp move objects in PDF

Hi, I am trying to move content in a pdf document using iTextSharp. We have a number of documents that are the same size i.e. 488x320mm, the content within these documents is always positioned relative to the top right of the document but varies in size i.e. 210x330mm, 240x350mm etc. What i need to do is 'find' the content block and mo...