itext

iText(sharp) side margins width

Hello. It looks like I can't set left margin to be less then 42pt width. I am setting it to 0f but it always ends as 42pt. If I set margin to any number greater then 0 it just adds it to initial margin of 42pt. I am setting margin of document object: iTextSharp.text.Rectangle docRect = new iTextSharp.text.Rectangle(pageWidth, pageHeight...

PDF Report generation

EDIT : I completed this project using ABCpdf. For anyone interested, I love this product and their support is A+. Everything I listed as a 'Con' for the HTML -> PDF solution was easily doable in ABCpdf. I've been charged with creating a data driven pdf report. After reviewing the plethora of options, I have narrowed it down to 2. I ne...

itextsharp swf embeded cannot be print

Dim r As Rectangle = New Rectangle(0, 0, 600, 400) Dim spec As PdfFileSpecification = PdfFileSpecification.FileEmbedded(writer, swfFile, "Post Event Report", Nothing) Dim annot As PdfAnnotation = PdfAnnotation.CreateScreen(writer, r, "test.swf", spec, "application/x-shockwave-flash", True) annot.Flags = Pd...

How to embed Helvetica font in PDF using iText?

How to embed Helvetica font in PDF using iText? Following does not work: BaseFont helvetica = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.EMBEDDED); Font font = new Font(helvetica, 20, Font.BOLD); That is, this will return false: font.getBaseFont().isEmbedded() Embedding works if I provide the TrueTyp...

Fit text in TextField IText

Sorry if there exists similar post like mine but I'm new on this forum and I haven't find it. I have problem with dynamically resize TextField size depends on text size. I fill existing PDF - fill fields in AcroForm: form.setField("field", "value"); (etc.) Everything it's OK, but I also want to set text (in TextField) which size is g...

What Default Fonts Are Included With iText?

The iText documentation states that it only includes a certain subset of fonts but never says what those are. Does anyone have any ideas what fonts are included by default in iText? (I've searched online and haven't been able to find this list of fonts anywhere!) ...

Can I reset a forgotten owner password with iText?

With iText I can use Java to open a pdf and write it. If the pdf has an owner password I can still open it but it can not be written. Clearly the content is readable, it seems like at that point you could simply write the document to a new file. iText doesn't allow this, it throws a bad password exception. Is there a way around thi...

Using unicode charater in generated pdf (java, iText)

Hi. I have a problem with with unicode characters in generated pdf. Everything works fine on my own workstation, but at the test environment things go wrong. Code inserting value is following: Font boldDefaultFont = FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD); // ... PdfPCell headerCell = new PdfPCell(); // unit.getName() ...

Can I enable a PDF for digital signatures outside Acrobat Pro?

I'm working on a small program to take a large PDF, split it up (using iText), and add digital signature fields to each file. The splitting part works fine, but users with Adobe Reader can't sign the generated files until someone with Acrobat Professional opens them and enables them for Reader. Is there a way to do the enabling automati...

while generating pdf from doc using IText, it adds some junk chars in the start and end of the pdf file

I have used IText in the application to convert different files to PDF. When I convert some image file/text file to pdf ,if works fine. Simple doc file also gets converted to PDF normally. But when I test the application to convert formated doc file( containing tables and bullets) to PDF file, the resulting PDF file displays some junk...

Using iText, generate on memory a PDF that is generated on disk instead.

Hello, I'm just wondering how to do this: I'm generating a PDF from a Java application. (And works great) the problem is that the PDF generated is generated on disk as: Document documento = new Document(PageSize.A4, 25, 25, 25, 25); PdfWriter writer = PdfWriter.getInstance(documento, new FileOutputStream("/Users/sheldon...

Move to next page if Table can not adjust in current page using iText

I am generating a PDF report using iText. The report is having four parts as - Project Info1 (A PDF Table of variable height) Project Info2 (A PDF Table of variable height) Requestor Info (A PDF Table of Fixed height) Location Info (A PDF Table of Fixed height) The top two information are of variable height and they can acquire cer...

Examples of filling pdf form with iText in ColdFusion

Looking for some examples of iText 5 and ColdFusion 7. I need to fill some pdf forms with data from the DB all the iText and ColdFusion examples I found are at least 4 years old and use previous version of iText. ...

Creating PDF, HTML, and optionally RTF documents from the same source using Java?

I was looking at using iText to create both a pdf and html version of a document with RTF as a possible option. According to this question this is no longer possible with iText. Is there a library that will allow me to create a document in Java and output it as both PDF and HTML? The ability to output RTF would be nice but is not require...

Creating angled column headings using iText

Does anyone know how to make angled column headings (e.g. at 45 degrees) in a table inside a PDF file, using the iText library? The best I can do is to use images for the column headings. Each image consists of a column heading rotated by 45 degrees, against a transparent background. For each column heading, I create a PdfPCell containi...

how do I add bookmark into a pdfpcell

I am doing a report which contains more 1000 records by using pdfptable of itext. it is not easy to seek a particular record, so i am wondering if there is any way to add bookmark in a pdfpcell. ...

How to Adding link in to a PDF whis Coldfusion and itext

I used this technique to insert an image http://stackoverflow.com/questions/697122/adding-a-dynamic-image-to-a-pdf-using-coldfusion-and-itext Now, I need to insert a link to a external URL at X/Y and text inside with itext and coldfusion. Can someone help me do this? Thanks. ...

JAVA - Weird NoClassDefFoundError in : com/lowagie/textDocumentException

Hi, This is the situation. I need to add PDF generation to a program that already has PNG generation. Initially the 2 classes involved are : ActionUsuels From where the constructor of CaptureImage3D is called. When I added the PDF generation I added a method at the CaptureImage3D class. Before adding the PDF generation, the PNG gener...

Sizing image probleme in PDF whis iText or cfPDF in Coldfusion 8

WHen I insert a Image into a existing PDF whis CFPDF or directely whis iText, the size of my image is increased by 1.5. How to control the image size ? my code are inspired from : http://stackoverflow.com/questions/697122/adding-a-dynamic-image-to-a-pdf-using-coldfusion-and-itext ...

How to paginate using itext and xhtmlrenderer

Greetings, I had a question regarding covnerting xml content to pdf. I am able to successfully generate pdf out of the xml using xhtmlrenderer and inbuilt interface to itext library. I had one question regarding page size and pagination. Currently, if my rendered xml does not fit on the specified page size, a second page is not created...