Re: [iText-questions] Barcode font size

2008-02-14 Thread 1T3XT info
Ruskin Dantra wrote: > So if I want the barcode to be of "font 34pt" is there an example which > tells me what the value of the bar height and ink spreading will be? > how do you figure those two variables out? I knew that barcodes had dimension. I didn't know that barcodes also had font sizes.

Re: [iText-questions] finding the position of xobject in an existing pdf

2008-02-14 Thread Fabrizio Accatino
Chris, I don't understand exaclty what your code does but... findind the real position of an xobject is very complex. I write "real positon" because a xobject can contain other xobjects and the placement could be translated and rotated (see tranformation matrix). So, AFAIK, understaning where an o

Re: [iText-questions] MultiColumnText getting this error on our Unix server

2008-02-14 Thread 1T3XT info
pmartin wrote: > java.lang.SecurityException: class "com.lowagie.text.pdf.MultiColumnT > ext"'s signer information does not match signer information of other classes > in > the same package The last few jars that were released where signed with Bruno's private CAcert key. You are getting this exc

Re: [iText-questions] finding the position of xobject in an existing pdf

2008-02-14 Thread 1T3XT info
chris glace wrote: > I'm trying to find the position of an xobject in an existing pdf > file. > I'm wondering if there is a way to use stream.get(PdfName. . . > to return the location of the object. The code I'm using is as follows. I don't understand your code. If you say you're looking for t

Re: [iText-questions] why pdf fields of 1st page move to 2nd page

2008-02-14 Thread Sarah1
Thanks, Bruno. I got it. :) Bruno Lowagie (iText) wrote: > > Sarah1 wrote: >> Hi Bruno, >> >> Thanks. I did find your example before, but my code is different from >> yours. >> Please look at the following code. I want to create name1 field on page1, >> name2 field on page2, but I found 2 name

[iText-questions] finding the position of xobject in an existing pdf

2008-02-14 Thread chris glace
I'm trying to find the position of an xobject in an existing pdf file. I'm wondering if there is a way to use stream.get(PdfName. . . to return the location of the object. The code I'm using is as follows. for (int i = 1; i < reader.getXrefSize(); i++) { PdfObject pdfobj

Re: [iText-questions] MultiColumnText getting this error on our Unix server

2008-02-14 Thread Xavier Le Vourch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pmartin wrote: | | java.lang.SecurityException: class "com.lowagie.text.pdf.MultiColumnT | ext"'s signer information does not match signer information of other classes in | the same package Please make sure you don't have several versions of the iText

[iText-questions] MultiColumnText getting this error on our Unix server

2008-02-14 Thread pmartin
I am having no problem in the PC development environment using the latest iText 2.0.8 - but when I want to deploy the WebApp to our Unix environment I get the following error. I have never had this kind of error on library package before. I understand that someone different wrote this method -

Re: [iText-questions] Barcode font size

2008-02-14 Thread Ruskin Dantra
So if I want the barcode to be of "font 34pt" is there an example which tells me what the value of the bar height and ink spreading will be? how do you figure those two variables out? Regards, Ruskin On Thu, Feb 14, 2008 at 9:33 PM, Bruno Lowagie <[EMAIL PROTECTED]> wrote: > Ruskin Dantra wrot

Re: [iText-questions] rtf - strange character at the beginning

2008-02-14 Thread Henry Lu
You are right. I remove it and it works. -Henry Howard Shank wrote: > Henry, > > The strange character right before the name is caused by > > document.add(new RtfPageNumber()); > > I do not know why at the moment, only that this line causes it and the page > number does not display on the page.

Re: [iText-questions] Repost: PDF merging with layers

2008-02-14 Thread Leonard Rosenthol
You should really do some reading in the PDF Reference, but here's a quicky (simplified!) explanation. There are three parts to Optional Content (aka layer) in a PDF - the actual definitions in each content stream, the document-level naming/ organization of the groups (OCG's) and the per-page

Re: [iText-questions] PDFStamper: Color of text in PDF changes when replacing button with PNG Image

2008-02-14 Thread Leonard Rosenthol
What are you seeing is the impact of newly placed transparency into a PDF that had not previously contained it, when consideration isn't given for the blending colorspace of the final output document. You have an RGB document that upon adding transparency is forced into CMYK due to lack of

Re: [iText-questions] Javascript from Acroform Fields

2008-02-14 Thread 1T3XT info
Joe Gerew wrote: >> I need to be able to extract the javascript code from an acrofield >> item. This question was already answered: http://article.gmane.org/gmane.comp.java.lib.itext.general/35731 Instead of double posting the question, please reply to the answer ans explain what it is you don't

Re: [iText-questions] How to generate TOC so that page numbers are right aligned?

2008-02-14 Thread 1T3XT info
[EMAIL PROTECTED] wrote: > > > Hi group, > > Following the sample code provided by iText in Action, I'm able to > generate a table of contents page with all page numbers followed by > section name. I'd like to ask if there is any way to right align page > number. One would expect that you wa

Re: [iText-questions] rtf - strange character at the beginning

2008-02-14 Thread Henry Lu
Thank you very much for your help! I'll look into and let you know. -Henry Howard Shank wrote: > Henry, > > The strange character right before the name is caused by > > document.add(new RtfPageNumber()); > > I do not know why at the moment, only that this line causes it and the page > number doe

[iText-questions] Javascript from Acroform Fields

2008-02-14 Thread Joe Gerew
> I need to be able to extract the javascript code from an acrofield > item. For example, if the onmouseover code is app.alert("Hello > World"); then I would like to retrieve that code via Java. The > javascript is placed in the field via Adobe Acrobat (not generating > forms with iText..

Re: [iText-questions] rtf - strange character at the beginning

2008-02-14 Thread Howard Shank
Henry, I would also like to point out that the file you sent was saved via Word and not the file originally generated by iText. Regards, Howard - Original Message From: Henry Lu <[EMAIL PROTECTED]> To: Post all your questions about iText here Sent: Thursday, February 14, 2008 10:26:4

Re: [iText-questions] rtf - strange character at the beginning

2008-02-14 Thread Howard Shank
Henry, The strange character right before the name is caused by document.add(new RtfPageNumber()); I do not know why at the moment, only that this line causes it and the page number does not display on the page. Howard - Original Message From: Henry Lu <[EMAIL PROTECTED]> To: Post al

[iText-questions] How to generate TOC so that page numbers are right aligned?

2008-02-14 Thread mai.sun
> Hi group, > > Following the sample code provided by iText in Action, I'm able to > generate a table of contents page with all page numbers followed by > section name. I'd like to ask if there is any way to right align page > number. > > Thanks a lot in advance. > > Best wishes, > Mai Sun ---

Re: [iText-questions] rtf - strange character at the beginning

2008-02-14 Thread Henry Lu
MS word 2003 Howard Shank wrote: > So, what are you using to read the file that shows the unexpected > character(s)? > > Howard > > - Original Message > From: Henry Lu <[EMAIL PROTECTED]> > To: Post all your questions about iText here > > Sent: Thursday, February 14, 2008 10:14:30 AM >

Re: [iText-questions] Tool Tips before and after resultWriter.addPage(page)

2008-02-14 Thread chris123321
Bruno Lowagie (iText) wrote: > > chris123321 wrote: >> --> i use PdfCopy > > Why? > Switch from PdfCopy to PdfCopyFields and let us know > if the problem persists. > br, > Bruno > The problem persists, i do the following: private File combinePDFs(InputStream... pdfStreams) throws IOExcept

Re: [iText-questions] rtf - strange character at the beginning

2008-02-14 Thread Howard Shank
So, what are you using to read the file that shows the unexpected character(s)? Howard - Original Message From: Henry Lu <[EMAIL PROTECTED]> To: Post all your questions about iText here Sent: Thursday, February 14, 2008 10:14:30 AM Subject: Re: [iText-questions] rtf - strange character

Re: [iText-questions] rtf - strange character at the beginning

2008-02-14 Thread Henry Lu
Thank you for your quick response. Here is my code: private int MARGIN_LEFT = 5; private int MARGIN_RIGHT = 5; private int MARGIN_TOP = 30; private int MARGIN_BOTTOM = 30; public String makeCv(String MCV_ID, // MCV_ID String rec_id, // cv id OutputSt

Re: [iText-questions] rtf - strange character at the beginning

2008-02-14 Thread Howard Shank
Henry, Are you opening the RTF file with MS Office 2003 or some other reader application? Are you attempting to open the "text" of the RTF using a text editor? What are the "First few line:" of your code? Regards, Howard - Original Message From: Henry Lu <[EMAIL PROTECTED]> To: Post

[iText-questions] rtf - strange character at the beginning

2008-02-14 Thread Henry Lu
There is a strange/special/unexpected character at the very beginning of my rtf file if i have following code after first few line: Table t1 = new Table(2, (table_contents.length-1) * 2); // t.setBorder(Rectangle.NO_BORDER); // t.setDefaultCellBorder(Rectangle.NO_BORD

Re: [iText-questions] Calling iText from pl/sql

2008-02-14 Thread Dirk Weigenand
Hi, you would have to 'import' iText into your oracle DB first and then create a java stored procedure encapsulating your functonality using iText. You can then pass in your PDF documents as BLOBs i think. Have a look at the samples at http://www.oracle.com/technology/sample_code/tech/java/jsp/o

Re: [iText-questions] Tool Tips before and after resultWriter.addPage(page)

2008-02-14 Thread Bruno Lowagie
chris123321 wrote: > --> i use PdfCopy Why? Switch from PdfCopy to PdfCopyFields and let us know if the problem persists. br, Bruno - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studi

Re: [iText-questions] Tool Tips before and after resultWriter.addPage(page)

2008-02-14 Thread chris123321
> I simply don't know where to look for the cause of the problem, our > itext api code does not consider any tool tip manipulation and I am > not an expert in designing the form with adobe creator or whatsoever. Are you using PdfCopy? PdfCopyFields? Some more info would be appreciated. -->

Re: [iText-questions] Calling iText from pl/sql

2008-02-14 Thread Leo Erlandsson
>I am not certain how to do this. I would really like to pass in the existing >PDFs to this procedure as blobs (to be used in PdfReader construction), but >I don't know how. Has anyone else done this? This seems like more of an Oracle / PLSQL question. If you succeed in passing PDFs (or any binar

[iText-questions] inserting an image into a Table cell (ok its 6am and I didn't spell check my first message)

2008-02-14 Thread jlopes151
I'm creating an RTF file using the Table class. I want to create a cell that has combined text and an image. Example 50% :)- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. ht

[iText-questions] Insetig an image into a Table cell

2008-02-14 Thread jlopes151
I'm having trouble iserting an image into a Table cell. Has anyone tried to do this? Thanks- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse01

Re: [iText-questions] Repost: PDF merging with layers

2008-02-14 Thread Paulo Soares
When there's no answer: 1 - We didn't understand the question. 2 - We're too busy to answer. 3 - We've already answered. 4 - We don't have the time to explain a solution. 5 - We don't have the time to implement a solution (sometimes it's easier than to explain). 6 - It's not currently our priority

[iText-questions] Repost: PDF merging with layers

2008-02-14 Thread Stefan Burkard
hi all sorry, but I repost this since there were no further answers... in my case this would be quite clear: I'd like to have all layers that appear in any source document copied to the target document (with the same visibility settings). if a la

Re: [iText-questions] why pdf fields of 1st page move to 2nd page

2008-02-14 Thread Bruno Lowagie
Sarah1 wrote: Hi Bruno, Thanks. I did find your example before, but my code is different from yours. Please look at the following code. I want to create name1 field on page1, name2 field on page2, but I found 2 name1 fields on both pages, and on 2nd page name1 and name2 fields are overlapped . C

Re: [iText-questions] How to read fields in a static PDF form created in designer 7?

2008-02-14 Thread Bruno Lowagie
philip wrote: > Looking at the debug window I noticed that now the field names for the > new PDF have a strange pattern like (notice the "þÿ" after each period > and the spaces bettween characters): > > þÿ F [ 0 ].þÿ P 1 [ 0 ].þÿ c a n a d i a n _ p r o v i n c e s [ 0 ] > > instead of > F[0].P

Re: [iText-questions] re quirement to add image in a pdf doc based on location of word(s)

2008-02-14 Thread Bruno Lowagie
trishulpani wrote: > Hi, > > Thanks for the reply. There's another set of api's by PDFBox. > can that help? PDFBox will allow you to convert some (not all) PDF files to a txt file. I don't think it gives you the coordinates of specific words (I don't know, you should ask somebody at PDFBox). If

Re: [iText-questions] Barcode font size

2008-02-14 Thread Bruno Lowagie
Ruskin Dantra wrote: > Hi All, > I am trying to display a barcode but with different font sizes. I have > set the font on the barcode object to null as I don't want any text to > appear although the actual size of the barcode should be changing as I > am setting the font size on the pdfcontentb

Re: [iText-questions] re quirement to add image in a pdf doc based on location of word(s)

2008-02-14 Thread trishulpani
Hi, Thanks for the reply. There's another set of api's by PDFBox. can that help? 1T3XT info wrote: > > trishulpani wrote: >> Hi, >> >> I have a requirement of adding an image to a pdf document based on the >> presence /location of a word. >> >> Is this do-able using iText? > > If the word