[iText-questions] Is it possible to copy a page in the current document and have it repeat with-in the document?

2006-06-13 Thread Gareth Edwards
Without saving it to a file and re-reading it in? Cheers Gareth. ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions

Re: [iText-questions] TiffImage.java question

2006-06-13 Thread Paulo Soares
- Original Message - From: "Jamsa, Jonathan D - Eagan, MN - Contractor" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 13, 2006 10:52 PM Subject: [iText-questions] TiffImage.java question What if the value of rowsStrip is greater than Integer.MAX_VALUE, as in the file I'm currently tryin

[iText-questions] TiffImage.java question

2006-06-13 Thread Jamsa, Jonathan D - Eagan, MN - Contractor
Title: TiffImage.java question What if the value of rowsStrip is greater than Integer.MAX_VALUE, as in the file I’m currently trying to read where the value is 4294967295 ? int rowsStrip = h; if (dir.isTagPresent(TIFFConstants.TIFFTAG_ROWSPERSTRIP)) //another hack for broken tiffs     rows

Re: [iText-questions] Get Field Background Color

2006-06-13 Thread Leonard Rosenthol
At 05:01 PM 6/13/2006, Nick Darnell wrote: >Hmm, well perhaps you can clear up what I am missing here. I was able to >copy a field earlier, same page, name, dimensions, no problem. When I >finally got the BG and saved it to the dictionary I was able to generate a >PDF that had a field with a red

Re: [iText-questions] Get Field Background Color

2006-06-13 Thread Nick Darnell
> I believe that the object copier in iText copies all > indirect references - yes. However, there shouldn't be ANY > colorspaces or fonts used in Annots... Hmm, well perhaps you can clear up what I am missing here. I was able to copy a field earlier, same page, name, dimensions, no pro

Re: [iText-questions] Get Field Background Color

2006-06-13 Thread Leonard Rosenthol
At 04:18 PM 6/13/2006, Nick Darnell wrote: >Will copying the /Annot dictionary deal with all the colorspaces/fonts and >indirect refs from the old PDF? I believe that the object copier in iText copies all indirect references - yes. However, there shouldn't be ANY colorspaces or fonts u

Re: [iText-questions] Get Field Background Color

2006-06-13 Thread Nick Darnell
Okay, Will copying the /Annot dictionary deal with all the colorspaces/fonts and indirect refs from the old PDF? If not what additional work will I need to do to move those resources? Thanks for your help so far Leonard, -Nick ___ iText-questions m

Re: [iText-questions] Get Field Background Color

2006-06-13 Thread Leonard Rosenthol
At 03:39 PM 6/13/2006, Nick Darnell wrote: > > Copying the fields from the template doc to the doc with the > > content is VERY simple and logical - there shouldn't be any problems. > >I'm sure it is...but when new ways are added and old ways are not being >depricated, case in point PRAcro

Re: [iText-questions] Get Field Background Color

2006-06-13 Thread Nick Darnell
> Copying the fields from the template doc to the doc with the > content is VERY simple and logical - there shouldn't be any problems. I'm sure it is...but when new ways are added and old ways are not being depricated, case in point PRAcroForm.FieldInformation and AcroField.Item, well I'm

Re: [iText-questions] Get Field Background Color

2006-06-13 Thread Leonard Rosenthol
At 02:04 PM 6/13/2006, Nick Darnell wrote: >Hmm, do annotations only contain information about fields? No. They also contain all the other types of annotations... > I tried >modifying the field copier to grab the fields from one document, and the >content from the other. But that onl

Re: [iText-questions] Get Field Background Color

2006-06-13 Thread Nick Darnell
Hmm, do annotations only contain information about fields? I tried modifying the field copier to grab the fields from one document, and the content from the other. But that only resulted in tons of errors when I went to save the files. If I wanted to take the fieldcopy implementation, let it run

[iText-questions] About Column

2006-06-13 Thread yosa kresnandya
hi my name is Ossa, i'm new in this mailing list, and i have a question about iText 1. what i want to ask is how to make a dynamic data (array list) that looping to the right (not down), ex : data1 data2 data3 data4 ...etc 2. how to load an array list, but when the primary key

[iText-questions] How to assign a digital signature to an existing image

2006-06-13 Thread Frankinet Philippe
I'm using this code to assign a graphic element to my digital signature.   ... PdfSignatureAppearance sap = stamper.getSignatureAppearance(); sap.setVisibleSignature(new Rectangle(100, 100, 200, 200), 1, null); sap.setImage(image);   Is there a way to assign the digitial signature to a

Re: [iText-questions] BaseFont getWidths()

2006-06-13 Thread bruno
Kristoffer Jacobsen wrote: >Will test it on different OS, and see if I can reproduce it. It seems to be >a tricky one though. > > If you don't embed the font, who knows how they will be rendered? As Leonard says: it's better to embed the font. >By the way, do you have any ideas for fixing the p

Re: [iText-questions] BaseFont getWidths()

2006-06-13 Thread Kristoffer Jacobsen
Thanks again for your reply. Will test it on different OS, and see if I can reproduce it. It seems to be a tricky one though. By the way, do you have any ideas for fixing the problem if embedding the font still produce the error occasionally? It only shifts the characters of text that are not bo

Re: [iText-questions] Get Field Background Color

2006-06-13 Thread Leonard Rosenthol
At 04:52 PM 6/12/2006, Nick Darnell wrote: >I've been trying to get the content from one PDF, and the fields from a >second pdf, and simply overlay the second pdf's fields over the content of >the first pdf in a new pdf document. I would treat that as a "generic object copy" rather than

Re: [iText-questions] embedding a font, to do it or not?

2006-06-13 Thread Leonard Rosenthol
At 12:48 PM 6/12/2006, Brian wrote: >What's the difference between embedding a font in your >pdf file and not embedding a font? In the former case (embedding) the font data is included in the PDF so that the recipient will see EXACTLY what you saw. In the latter case, it only puts a "r

Re: [iText-questions] We have a cover!

2006-06-13 Thread Bruno Lowagie
bruno wrote: > I'll publish the Table of Contents very soon. http://www.lowagie.com/maand.php?year=2006&month=6#75 br, Bruno ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-ques

Re: [iText-questions] special PDF-splitting

2006-06-13 Thread bruno
Reiber Matthias wrote: > Hello, > > i have, i guess, a simple Qestion. > > I have an pdfFile witch includes 5 pages, and i wanna split this pages > in separate pages. > > If you have an simple helloWorld for me, i would be very happy. <>Suppose that your 5 page PDF file is hello.pdf, then

Re: [iText-questions] Output pdf to stdout

2006-06-13 Thread bruno
Bas Gosselink wrote: >Wow, ye guys are fast. > Ghent isn't that far away from the Netherlands ;-) br, Bruno ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions

Re: [iText-questions] BaseFont getWidths()

2006-06-13 Thread bruno
Kristoffer Jacobsen wrote: >Thanks for your reply. > >I guess my problem is really related to how I can reproduce the error of >character shifting. With "Not formatted with any font weight" I mean that >any text that is BOLD in my PDF is printed correctly, while the text the >font-weight normal is

[iText-questions] special PDF-splitting

2006-06-13 Thread Reiber Matthias
Hello,   i have, i guess, a simple Qestion.   I have an pdfFile witch includes 5 pages, and i wanna split this pages in separate pages.   If you have an simple helloWorld for me, i would be very happy.   I wanna have something like this:   myPDFWriter.addPage(myPDFReader.getPage(1));   myP

Re: [iText-questions] Output pdf to stdout

2006-06-13 Thread Bas Gosselink
Wow, ye guys are fast. Thank you very much ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions

Re: [iText-questions] BaseFont getWidths()

2006-06-13 Thread Kristoffer Jacobsen
Thanks for your reply. I guess my problem is really related to how I can reproduce the error of character shifting. With "Not formatted with any font weight" I mean that any text that is BOLD in my PDF is printed correctly, while the text the font-weight normal is shifted one ASCII character up.

Re: [iText-questions] Output pdf to stdout

2006-06-13 Thread bruno
Bas Gosselink wrote: >Would it be possible to print de content of the newly generated PDF's with >iText to stdout > Of course it's possible. There's even an image that proves this on the first page of this article: http://www.pdfdev.com/page/articles_1/ br, Bruno ___

[iText-questions] Output pdf to stdout

2006-06-13 Thread Bas Gosselink
Would it be possible to print de content of the newly generated PDF's with iText to stdout (and not using a temporary output file) so you can pipe it to eg. lpr or another command? Sincerely, Bas ___ iText-questions mailing list iText-questions@list

Re: [iText-questions] Put Barcode on existing Pdf

2006-06-13 Thread beppe costagliola
I got it !! Because the original pdf is a one-page scanned image, the barcode should be added only once. Now it's perfect. Thanks. giuseppe. --- bruno <[EMAIL PROTECTED]> ha scritto: > beppe costagliola wrote: > > >Bruno, > > > >I know the dimension of the final barcode and I > also > >know

Re: [iText-questions] BaseFont getWidths()

2006-06-13 Thread bruno
Kristoffer Jacobsen wrote: >Hi. I'm experiencing the problem with character shifting on the PDF print. > >I create a PDF with java and iText, and some users experience character >shifting when printing the PDF. It seems only to happen to the text that is >not formatted with any font weight. > I do

Re: [iText-questions] BaseFont getWidths()

2006-06-13 Thread Kristoffer Jacobsen
Hi. I'm experiencing the problem with character shifting on the PDF print. I create a PDF with java and iText, and some users experience character shifting when printing the PDF. It seems only to happen to the text that is not formatted with any font weight. I've been reading through the forum to

Re: [iText-questions] BaseFont getWidths()

2006-06-13 Thread bruno
Kristoffer Jacobsen wrote: >What's the easiest way to rename and embed fonts with iText and Java? > Rename fonts? Are you talking about changing an existing PDF file, or creating a new PDF document? br, Bruno ___ iText-questions mailing list iText-ques

Re: [iText-questions] Put Barcode on existing Pdf

2006-06-13 Thread bruno
beppe costagliola wrote: >Bruno, > >I know the dimension of the final barcode and I also >know its position because I always write it on the >same place. > Aha, that's makes it easier. >I also have to add some text beside the >barcode and the white rectangle should actually be a >little larger

Re: [iText-questions] Put Barcode on existing Pdf

2006-06-13 Thread beppe costagliola
Bruno, I know the dimension of the final barcode and I also know its position because I always write it on the same place. I also have to add some text beside the barcode and the white rectangle should actually be a little larger than the barcode. this adds the barcode: Barcode128 code128 = ne

Re: [iText-questions] BaseFont getWidths()

2006-06-13 Thread Kristoffer Jacobsen
What's the easiest way to rename and embed fonts with iText and Java? -- View this message in context: http://www.nabble.com/RE%3A-Re%3A-BaseFont-getWidths%28%29-t1643671.html#a4842003 Sent from the iText - General forum at Nabble.com. ___ iText-ques

Re: [iText-questions] Put Barcode on existing Pdf

2006-06-13 Thread bruno
beppe costagliola wrote: >I will try to rewrite acorrding to your suggestion. > What if you use createTemplateWithBarcode or createImageWithBarcode ONLY to get the width? You can then discard the template or image, draw the rectangle (based on the dimensions of the template/image) and place the ba

Re: [iText-questions] Put Barcode on existing Pdf

2006-06-13 Thread beppe costagliola
I remember that I used the placeBarcode instead of an Image object because I got a smaller size. At the beginning I did also try with a table but because I archive thousands of documents, even a 1K makes a difference; that's why I choose the placeBarcode. I will try to rewrite acorrding to your su

Re: [iText-questions] Put Barcode on existing Pdf

2006-06-13 Thread bruno
beppe costagliola wrote: >But because the barcode goes over a dark area > Oops. I know my answer was too simple, but I didn't know why. When you do getUnderContent, everything you write to this layer goes UNDER the dark area too. Let's take a step back and rewrite the code so that it looks somew

Re: [iText-questions] Put Barcode on existing Pdf

2006-06-13 Thread beppe costagliola
Bruno I can't make it working; over = stamp.getOverContent(i); over.concatCTM(1, 0, 0, 1, 50, 806); Rectangle rect = code128.placeBarcode(over ,..) places a barcode over the existing image. But because the barcode goes over a dark area and cannot be seen, I'm trying to draw a white rectangle und

Re: [iText-questions] Put Barcode on existing Pdf

2006-06-13 Thread bruno
beppe costagliola wrote: >I'm writing the bardoce onto an existing pdf with this >code: > >PdfStamper stamp = new PdfStamper(reader, new >FileOutputStream(TOPDF)); > >over = stamp.getOverContent(i); > >Rectangle rect = code128.placeBarcode(under, null, >null); > > >Now how can I get the:

Re: [iText-questions] Get Field Background Color

2006-06-13 Thread bruno
Nick Darnell wrote: > So here is something that is bothering me since then. What is the > difference between AcroField.Item's and PRAcroForm.FieldInformation's? The former is written more recently than the latter. >I've been trying to get the content from one PDF, and the fields from a >second

Re: [iText-questions] Tables and footers

2006-06-13 Thread bruno
Jeff Mogielnicki wrote: >1) Should I be using the Table object or use PDFpTable and writeSelectedRows()? > > It's better to use PdfPTable than Table in your case. You don't necessarily have to use writeSelectedRows. You can add a PdfPTable to a document the same way you add a Table. >2) Has thi

Re: [iText-questions] We have a cover!

2006-06-13 Thread bruno
Eliasen Jan wrote: >Your book, will it cover iText, iTextSharp or both? Can you reveal anything? > Manning is currently making a web page with more info. I'll publish the Table of Contents very soon. It will cover iText; all examples will be written in Java, but it will be more about PDF than abo

Re: [iText-questions] iText 1.4.1 release notes

2006-06-13 Thread bruno
David Deriso wrote: > Hello, > > I have looked around to see what was changed between iText 1.4 and > iText 1.4.1. The website referenced some bug fixes, but did not > elaborate on what was fixed. > When you talk about the website, do you mean the history file? http://www.lowagie.com/iText/hist

[iText-questions] iText 1.4.1 release notes

2006-06-13 Thread David Deriso
Hello, I have looked around to see what was changed between iText 1.4 and iText 1.4.1.  The website referenced some bug fixes, but did not elaborate on what was fixed.  Is there a more comprehensive set of release notes for 1.4.1 somewhere?   Thanks, David