Re: [iText-questions] EndOfStreamException on TiffImage.GetTiffImage

2014-08-28 Thread Michaël Demey
Hi, I've been able to create a PDF using the input TIF. Here's my cod, (it is Java code, but it should be simple enough to port ;) ) img = TiffImage.getTiffImage(new RandomAccessFileOrArray(new RandomAccessSourceFactory().createBestSource(imagePath)), CATCH_ERRORS, PAGE_NUMBER, TIFF_DIRECT);

Re: [iText-questions] EndOfStreamException on TiffImage.GetTiffImage

2014-08-28 Thread stefyg85
Hi Michael,thanks for your solution.After doing some research, I discovered that my tiff is not corrupted but cointains jpeg image with old style compression (JPEG compliant TIFF 6.0, reference here http://en.wikipedia.org/wiki/Tagged_Image_File_Format ).That format is obsolete and /rightly/

[iText-questions] coloumn widths are not reflecting

2014-08-28 Thread aamudhala
Hi, please suggest me. is it correct way to set column widths to a table? PdfPTable pdfTable1 = new PdfPTable(ta.getColumnCount()); // pdfTable1.setLockedWidth(true); pdfTable1.setWidthPercentage(100); ListFloat

Re: [iText-questions] coloumn widths are not reflecting

2014-08-28 Thread iText mailing list
On 8/28/2014 12:40 PM, aamudhala wrote: is it correct way to set column widths to a table? It looks like a convoluted way and the snippet doesn't provide any context. For instance: what is ta? In any case: the question whether or not this is the correct way to set column widths to a table is

[iText-questions] Detect 'blank' pages

2014-08-28 Thread Aritz
Dear all, I have a problem while creating a pdf and hope you can help me. I'm parsing some html code in order to generate the PDF, but the result shows sometimes blank (empty) pages. The scenario is that it is not a really blank page. If my html code has BR tags at the end (for example), they

[iText-questions] Detect 'blank' pages

2014-08-28 Thread Aritz
Dear all, I have a problem while creating a pdf and hope you can help me. I'm parsing some html code in order to generate the PDF, but the result shows sometimes blank (empty) pages. The scenario is that it is not a really blank page. If my html code has BR tags at the end (for

Re: [iText-questions] EndOfStreamException on TiffImage.GetTiffImage

2014-08-28 Thread Michaël Demey
Thanks for that information. Kind regards, Michaël. stefyg85 schreef op 28/08/2014 12:10: Hi Michael, thanks for your solution. After doing some research, I discovered that my tiff is not corrupted but cointains jpeg image with old style compression (JPEG compliant TIFF 6.0, reference here

[iText-questions] Detect lines

2014-08-28 Thread FDnC Red
Is there an easy way with iTextSharp to detect lines in PDF files? I see the lines in a stream but I'm not sure how to parse them out of there nor do I know how to convert them from the current transform matrix.  For this given PDF there are 4 horizontal lines and 3 vertical lines. q 1 0 0 1