I have a .tif file DOLA13196.tif which is processed successfully if the “direct” parameter of TiffImage.getTiffImage is set true but causes an array index out of bounds exception if this parameter is set false.
The Javadoc says:
* @param direct for single strip, CCITT images, generate the image
* by direct byte copying. It's faster but may not work
* every time
I have a web application where I need to generate PDF files on the Linux server. I need to support a few Indian languages along with English. I started by using Arial Unicode (ARIALUNI.TTF) and test pdf generation on my the application installed on my Windows machine. iText is generating pdf files with Gujarati fonts but doesn't seem to implement any ligature.
Does iText have ligature implementation for Indian languages such as Hindi, Gujarati, Marathi, etc?
Here is the part of the PDF generation code:
// open the pdf document
I'm working with a J2C (JPEG2000 codestream) file and I need to be able to set the colorspace. I found getColorspace() but no setColorspace(int c). Also, the bands are BGR not RGB. Is there a way to specify the band order?
I am creating a document which lists a number of options a customer has selected for a product. This may run over more than one page. I want every page to have some header information (Company details, customer details etc.), then the list of options, and a disclaimer at the bottom of each page. The final page has some summaryl information after the last of the options, then the footer data.
I've searched through Google and Bing and have found several discussions involving Geospatial PDFs with iText but no final answers. The closest I found was downloading iText's Source, expose the PdfPage through an extended PdfPageEvent to add the PdfArray with the necessary dictionaries.
However, this discussion was over 2 years ago and I was wondering if there have been any other better ways to do it? Everytime I update iText it would be nice to not have to re-download the source, edit it, and recompile it.
I'm using PdfStamper to add a watermark to an existing PDF document. This works fine, except for a couple of specific PDF documents. iText reader says it can't read them. However: I can open these files in Adobe Reader without any problem.
I'm following all the advice that is given in the book (using append mode instead of changing the PDF). I know this has worked before in our application, but now Reader enabling is broken. Did an Acrobat update break it? Did an update of our software break it? (We're now adding a watermark to the form.)
When I send a fax from my fax machine -> fax server / tiff -> itext, getDpiY is returning 50% of the actual Y value.
Sending the same page from my fax modem -> fax server / tiff -> itext, getDpiY returns the correct 100% Y value.
Viewing both images in Irfanview shows correct X & Y values, both use Group 3 Fax Encoding, both are 1 page and the sizes are comparable, 3.78MPixels vs. 3.9MPixels.
Any ideas on why getDpiY is cut in half for the fax machine image?
I am converting images to PDF and that works well.
For some JPGs however, iText doesn't throw an exception, but when I open the PDF in Adobe Reader, I get the error "Insufficient data for an image".
I don't think something is wrong with the image because I can open it in any viewer application.
I need to use the \u1E0F character in a document, but when I use it with a specific font, the character isn't shown. What can I do to check if the font has this character?