Re: [iText-questions] QUESTION

2010-02-22 Thread 1T3XT info
ninefofo wrote: > > Hello, > > Using AddWatermarkText, and watermarktext as string, in v5.0.0.0 of > itextsharp.dll. > > Is it possible to have multiline watermarktext? Yes, use ColumnText to add the text. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.in

Re: [iText-questions] After rotation, images are getting displced in iText PDF

2010-02-22 Thread rhul_rk
Hi, It's very urgent. We need help in this. Looking towards positive support. rhul_rk wrote: > > Yes, you are right, there are lots of calculation and algebra in this. But > each and every object plots in the PDF are exist in an imaginary (hidden) > rectangle. When we plot an image (without r

Re: [iText-questions] PDF size after oPdfStamper.FreeTextFlattening, FormFlattening needs to go on a diet ??

2010-02-22 Thread Sebastian Sickelmann
tim clark-10 wrote: >Hi All >I have been using the itext lib in a app for a year or so typically to >merge >db content in to pdf form field documents >created with adobe acrobat. >Recently we have been merging to some rather large data and the size of >the >pdf document has now become an issue >T

[iText-questions] QUESTION

2010-02-22 Thread ninefofo
Hello, Using AddWatermarkText, and watermarktext as string, in v5.0.0.0 of itextsharp.dll. Is it possible to have multiline watermarktext? I tried concatenating two strings with a VbCrLf, but it still wrote them together. Thank You Brad -

Re: [iText-questions] Using Images extracted from a pdf

2010-02-22 Thread Leonard Rosenthol
You are assuming that PDF maintains the PNG nature of the image - that is NOT the case. PDF only supports two kinds of images JPEG (which is why this works) and "raw bitmaps" (aka an array of bits). So in your case, with the PNG, it is transcoded into the latter case and so if you want it back

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread 1T3XT info
mistercam wrote: > I hope my explanation is a bit more clear. A picture says a thousand words. Now I understand. I fear that PdfPTable is too limited for this kind of requirement, but maybe I have to sleep a night over this problem. If I had to build a solution right here, right now, I'd switc

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread Sebastian Furth
Hi, thank you so much! You were right - the problem was the JSP. Now I am using a Servlet instead and everything works fine. Once again thank you for your help, although it wasn't an iText Problem. Best regards. Sebastian Furth 2010/2/22 mkl > > Sebastian, > > > Sebastian Furth wrote: > > I

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread mistercam
I uploaded a larger image to show part of the second page: http://old.nabble.com/file/p27691079/pdfspan2.png pdfspan2.png The first orange cell begins "When we look to the individuals..." and the second orange cell begins "It has been disputed at what period..." The line chart is supposed to t

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread 1T3XT info
mistercam wrote: > So for one cell in a row, I want it to split, but for another cell in the > same row, I don't. This appears to be causing a misalignment issue with > where the two cells begin rendering. I don't understand what you mean, but I suggest that you work with different tables instead

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread mistercam
setSplitLate works for most of the orange cells in my example. The problem is I don't always want the orange cells to split across pages. In the example I posted, the orange cell in the 2nd row splits with only three lines of text written to the first page. This does not leave enough space for a c

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread 1T3XT info
mistercam wrote: > What I was looking to do is attach to each orange cell an event that checks > the remaining vertical space allotted to it. If it is less than the height > of one of the charts (which are always of fixed height in my application,) > then I want to pad the orange cell with just eno

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread mistercam
Hey, I was not familiar with this method. I gave it a try, and it didn't work, which is what I was expecting since I do work with other cells that span pages. Here's a screen cap of the first page of my example PDF: http://old.nabble.com/file/p27689378/pdfspan.png pdfspan.png The orange cells

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread mkl
Sebastian, Sebastian Furth wrote: > I attached the pdf where the Graphics is missing. Maybe you can get some > information out of it. If you look at that PDF, you'll see that something along the lines of high-bit-shaving happened --- there are very many '?' characters at positions where charact

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread 1T3XT info
mistercam wrote: > Hello, > > A brief background: What I'm looking to do is alter the height of a cell > based on where the bottom of it was rendered. I have a 3x3 PdfPTable that > contains PdfPCells or PdfPTables. Based on the remaining space of the page, > after rendering one of these PdfPCells,

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread 1T3XT info
Mike Marchywka wrote: > > LOL, I don't imagine this will help, but the high bit is probably being set > to zero. That's exactly what happened. It's described in both the 1st and 2nd edition of "iText in Action". 1st edition: page 642-643 I can’t repeat it enough: It’s a bad idea to use JSP to

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread 1T3XT info
Sebastian Furth wrote: > Of course it were good hints - the problem is me :) > > OK I try to explain my problem: > > I have created a JSP-Servlet which shall return a PDF Document on request. That's the problem!!! I opened your PDF in a text editor. This is what I saw: 1 0 obj <>>>/Subtype/Form

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread Mike Marchywka
LOL, I don't imagine this will help, but the high bit is probably being set to zero. Whoever is creating all those content attach/disposition things probably doesn't know it is not text. marchywka:/home/marchywka# od -ax  Desktop/Car-Diagnosis_Visualization.pdf | sed -e 's/ /\n/g' | grep "^..

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread Klas Lindbäck
I am doing in a similar way. The only notable difference is the response header. I use the following, which works in both IE and Firefox: response.setHeader("Content-Disposition", "*inline*; filename=form.pdf"); /Klas ---

[iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread mistercam
Hello, A brief background: What I'm looking to do is alter the height of a cell based on where the bottom of it was rendered. I have a 3x3 PdfPTable that contains PdfPCells or PdfPTables. Based on the remaining space of the page, after rendering one of these PdfPCells, I may want to pad it on the

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread Sebastian Furth
Of course it were good hints - the problem is me :) OK I try to explain my problem: I have created a JSP-Servlet which shall return a PDF Document on request. //Get the file content ByteArrayOutputStream bstream = de.d3web.empiricalTesting.caseVisualization.jung.JUNGCaseVisualize

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread Mike Marchywka
> Date: Mon, 22 Feb 2010 15:14:55 +0100 > From: sebastian.fu...@googlemail.com > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Writing to ServletOutputStream > > Thanks for your reply! > > Is it possible that the ServletOutputStream

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread Mike Marchywka
> Date: Mon, 22 Feb 2010 14:56:45 +0100 > From: i...@1t3xt.info > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Writing to ServletOutputStream > > Sebastian Furth wrote: >> Something happens during the request because

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread 1T3XT info
Sebastian Furth wrote: > Once again, thanks for your reply. Unfortunately I think I don't have > enough experience to understand your hints :) It were good hints though; I thought everybody knew wget. If possible, can you explain your problem as good as Mike explained how to use wget? For insta

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread Sebastian Furth
Thanks for your reply! Is it possible that the ServletOutputStream "shaves" the upper bit from every byte? I have a method which returns a ByteArrayOutputStream containing the pdf data. If I delegate this OutputStream to a FileOutputStream everything is ok but if I use the ServletOutputStream the

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread 1T3XT info
Sebastian Furth wrote: > Something happens during the request because it returns a pdf in the > dimension set in the code - but there is absolutely no content (blank). Sounds like the "blank page" problem described in the book (1st and 2nd edition). This happens if you "shave" the upper bit from

Re: [iText-questions] iText position x,y problem

2010-02-22 Thread 1T3XT info
Kamil Ratajczak wrote: > I can't figure out what I do wrong. When you print, you should look at the print dialog, and tell the viewer not to scale the page! If you scale pages, it's obvious that the measurements change. ---

[iText-questions] iText position x,y problem

2010-02-22 Thread Kamil Ratajczak
} catch (DocumentException e) { e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } Thanks for help Best Regards Kamil __ Informacja programu ESET NOD32 Antivirus, wersja ba

[iText-questions] iText position x,y problem

2010-02-22 Thread Kamil Ratajczak
D32 Antivirus, wersja bazy sygnatur wirusow 4886 (20100222) __ Wiadomosc zostala sprawdzona przez program ESET NOD32 Antivirus. http://www.eset.pl lub http://www.eset.com -- Szybkie i niedrogie... Tylko dla mezczyzn! Spraw

Re: [iText-questions] Writing to ServletOutputStream

2010-02-22 Thread Mike Marchywka
> Date: Mon, 22 Feb 2010 11:45:43 +0100 > From: > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Writing to ServletOutputStream > > Hi, > > Please note that I postet links to pastie.org for better readability of the > code snippets. > > I am using

[iText-questions] Writing to ServletOutputStream

2010-02-22 Thread Sebastian Furth
Hi, Please note that I postet links to pastie.org for better readability of the code snippets. I am using iText to print graphs produced with the JUNG Framework to pdfs. To achieve this I have the following code: http://www.pastie.org/private/rsy6wzneedpvo4dai3vcgw Writing the graphics Object t

Re: [iText-questions] Visible signatures are hidden in some cases

2010-02-22 Thread mkl
Victor, victordomain wrote: > The problem still remains. How can a put the signature rectangle on the > document to be visible? > > [...] > > Even if the signature rectange is set manually, the rectangle is not shown > in the document. > > sap.SetVisibleSignature(new iTextSharp.text.Rectangle