[iText-questions] Problem writing a stream to a signature dictionary

2008-05-28 Thread BSJ
Hello, I am creating a blank signature field with iText (C#) and have to write a custom data stream into the /SV key. Doing that as described below, the signature will not show up in Acrobat and if a try to open the signature's 'annots-node' with PDFCanOpener, I get an error "Dictionary keys must

[iText-questions] BaseFont Problem

2008-05-28 Thread FlyingBuzz
public BaseFont helv; helv = FontFactory.getFont("c:/windows/fonts/arialn.ttf",9,Font.BOLD).getBaseFont(); the base font when i do this is not bold. Not sure what I did wrong here. public void onEndPage(PdfWriter writer, Document document) { PdfContentByte cb = writer.getDirectC

Re: [iText-questions] Importing XFDF with annotations

2008-05-28 Thread wasegraves
(Oops! Mea culpa! Where I wrote "Leonard" in the previous incarnation of this response, read "Paulo". Please accept my apologies, Paulo.) x2 Best regards, Bill Segraves -- Original message -- From: <[EMAIL PROTECTED]> > > Hi, > > does iText support the import of

Re: [iText-questions] Importing XFDF with annotations

2008-05-28 Thread wasegraves
Oops! Mea culpa! Where I wrote "Leonard" in the previous incarnation of this response, read "Paolo". Please accept my apologies, Paolo. Best regards, Bill Segraves -- Original message -- From: <[EMAIL PROTECTED]> > > Hi, > > does iText support the import of annot

Re: [iText-questions] Importing XFDF with annotations

2008-05-28 Thread wasegraves
-- Original message -- From: <[EMAIL PROTECTED]> > > Hi, > > does iText support the import of annotations in XFDF format? > > To import an FDF I can use PdfStamper.addComments, but this only accepts a > FDFReader. You didn't mention the type of annotations, but if

Re: [iText-questions] Converting text to outlines

2008-05-28 Thread Leonard Rosenthol
On May 28, 2008, at 8:26 AM, Vernon wrote: > One the standard problems with commercial printing PDFs is that the > recipient > may not have the font's installed; Which is why you embed the font. > and embedding is not necessarily as reliable > as converting the text font to outlines.

Re: [iText-questions] getting font of form field

2008-05-28 Thread jimdigriztn
Thanks 1T3XT BVBA, I really appreciate your help. I'll continue looking for a solution on my own, and will check back here for responses from you or others. Jim -- This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com http://www.opensubscriber.com/message/itext-questions@lis

Re: [iText-questions] Page numbers right aligned

2008-05-28 Thread Howard Shank
That is always a challenge. Someone, be it you or the project manager, needs to make a decision on how they want the page formatted and just do it. My suggestion would be to consider a 4 digit possibility and center the number at a specific amount of space both before and after the "of" text. H

Re: [iText-questions] Page numbers right aligned

2008-05-28 Thread Birthe Berland
My problem is that I don't know the number of pages up front and therefore don't know the space to reserve for the page count in order for it to be right aligned. I apologize if this is a stupid question. On 28 May, 2008, at 19:11 , 1T3XT info wrote: > Birthe Berland wrote: >> I have used a

Re: [iText-questions] Arial Unicode MS alternative

2008-05-28 Thread Schalück , Elmar
Nice Arial like font. http://dejavu.sourceforge.net/ <>- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120

Re: [iText-questions] Page numbers right aligned

2008-05-28 Thread 1T3XT info
Birthe Berland wrote: > I have used a template to display the page number "page 1 og 10". > > Now I want this to be right aligned, but I can't find out how to do > this. As you don't know the width of the total number of pages in advance, so you'll always have a gap between the "page 1 og" and

Re: [iText-questions] getting font of form field

2008-05-28 Thread 1T3XT info
Due to the lack of time, I'm forwarding this to the mailing list. Note that there was a discussion a few days ago (search for the latest mailing list posts by Roger Mistelli) about getting font names from PDF forms. I'm going offline now, but if nobody answer, I'll write you an example. [EMAIL PRO

[iText-questions] Page numbers right aligned

2008-05-28 Thread Birthe Berland
I have used a template to display the page number "page 1 og 10". Now I want this to be right aligned, but I can't find out how to do this. Birthe Berland Complimenta - This SF.net email is sponsored by: Microsoft Defy

Re: [iText-questions] Convert EML (rfc/822 email) file to PDF?

2008-05-28 Thread Bruno Lowagie
AJ Weber wrote: > Is it that HTMLWorker can only handle a subset of all the "legitimate" > HTML tags at this time, or is it non-well-formed HTML that causes it > grief? Unfortunately it's a little bit of both (as far as I remember). > We can "tidy" the HTML in a pre-processing-method if that's

Re: [iText-questions] export pdf file to excel

2008-05-28 Thread 1T3XT info
hakbari wrote: > Hello to All , > > I have created a pdf file by iText library but I need export that file to > excel. does have a special library for this work? does have any sample for > that? Your work flow is wrong. You should consider the PDF creation to be a one-way process. Instead of t

Re: [iText-questions] export pdf file to excel

2008-05-28 Thread Howard Shank
Are you trying to convert the PDF to Excel or are you looking to generate an Excel file from your data? If you are looking to convert your PDF to a spreadsheet, you're probably out of luck as PDF is not formatted to easily support convert to a spreadsheet. If you want to create an XLS file from

Re: [iText-questions] export pdf file to excel

2008-05-28 Thread Alexis Pigeon
Hi hakbari, On 28/05/2008, hakbari <[EMAIL PROTECTED]> wrote: > > Hello to All , > > I have created a pdf file by iText library but I need export that file to > excel. does have a special library for this work? does have any sample for > that? Since you create the PDF with iText, why don't yo

Re: [iText-questions] getting font of form field

2008-05-28 Thread 1T3XT info
[EMAIL PROTECTED] wrote: > Hi, > I have some PDF form fields which iText is populating. (snip) > The ideal solution would compact text that is overflowing, > but respect the original font size if extra space is available. > To that end, I'm trying to get the Font object in order to > calculate how

Re: [iText-questions] Convert EML (rfc/822 email) file to PDF?

2008-05-28 Thread AJ Weber
Is it that HTMLWorker can only handle a subset of all the "legitimate" HTML tags at this time, or is it non-well-formed HTML that causes it grief? We can "tidy" the HTML in a pre-processing-method if that's what is required. I will take a look and see if I can move this forward a little. Thank

[iText-questions] getting font of form field

2008-05-28 Thread jimdigriztn
Hi, I have some PDF form fields which iText is populating. The problem is that the text does not always fit the boxes. When I try the solution from the iText book of setting the font to zero, it does scrunch the font size to fit, but it also seems to expand the font size of fields that have room

[iText-questions] export pdf file to excel

2008-05-28 Thread hakbari
Hello to All , I have created a pdf file by iText library but I need export that file to excel. does have a special library for this work? does have any sample for that? Regards , -- View this message in context: http://www.nabble.com/export-pdf-file-to-excel-tp17514193p17514193.html Sent

Re: [iText-questions] Convert EML (rfc/822 email) file to PDF?

2008-05-28 Thread Bruno Lowagie
AJ Weber wrote: > Has anyone built a class to parse and convert a EML file to a PDF? > > Just curious, before I "reinvent the wheel". I started writing a mailbox parser a while ago: http://itext.ugent.be/wiki/examples/src/com/lowagie/collections/mail/ but it's not finished (for instance: the HTM

Re: [iText-questions] Strange text showing up in table cell when using cell.addElement

2008-05-28 Thread Giotto
Thanks to your answers, I've finally found the solution. I've forgot that the RJB ruby bridge can't invoke overloaded methods correctly, so I've needed to call addCell with the class signature of the parameter I've sent to it. Thank you for your help, I owe you a beer for this one :) So if you e

Re: [iText-questions] invalid END header

2008-05-28 Thread Alexis Pigeon
> Could someone help me to find out why this message appears when > compiling an application on AIX 5.3 > > error: error reading itext-1.4.1.jar; invalid END header (bad central > directory offset) itext-1.4.1.jar Did you try with a more recent version? Latest release is 2.1.2u, could you try

Re: [iText-questions] invalid END header

2008-05-28 Thread Alexis Pigeon
Hola Lilliana, Una cosa : en esta lista de correo se habla inglés, voy a traducir tu pregunta, a ver si te pueden ayudar... Here's the OP question, in english : Could someone help me to find out why this message appears when compiling an application on AIX 5.3 error: error reading itext-1.4.1.j

[iText-questions] Convert EML (rfc/822 email) file to PDF?

2008-05-28 Thread AJ Weber
Has anyone built a class to parse and convert a EML file to a PDF? Just curious, before I "reinvent the wheel". Thanks, AJ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. h

[iText-questions] invalid END header

2008-05-28 Thread Lilliana Pelaez
Puede alguien ayudarme a descubrir por qué aparece este mensaje al compilar una aplicación en AIX 5.3 error: error reading itext-1.4.1.jar; invalid END header (bad central directory offset) itext-1.4.1.jar Bajé de nuevo el jar pero aún persiste el error. Gracias

Re: [iText-questions] Strange text showing up in table cell when using cell.addElement

2008-05-28 Thread 1T3XT info
Giotto wrote: > You were right, addCell invokes to_string on anything that I give to it as a > parameter. I just didn't noticed because I've used a Chunk which just gave > back it's value as a string and that seemed ok. > > However, I'm not invoking to_string directly, I'm just passing the newly >

Re: [iText-questions] Converting text to outlines

2008-05-28 Thread 1T3XT info
Vernon wrote: > Hi everyone, > > One the standard problems with commercial printing PDFs is that the recipient > may not have the font's installed; and embedding is not necessarily as > reliable > as converting the text font to outlines. I don't agree with you (and so will Leonard probably).

Re: [iText-questions] Strange text showing up in table cell when using cell.addElement

2008-05-28 Thread Giotto
You were right, addCell invokes to_string on anything that I give to it as a parameter. I just didn't noticed because I've used a Chunk which just gave back it's value as a string and that seemed ok. However, I'm not invoking to_string directly, I'm just passing the newly created objects to addCe

[iText-questions] Converting text to outlines

2008-05-28 Thread Vernon
Hi everyone, One the standard problems with commercial printing PDFs is that the recipient may not have the font's installed; and embedding is not necessarily as reliable as converting the text font to outlines. Can one do this in iText ? Apologies if I missed it in searching the archives.. Th

Re: [iText-questions] [RTF] Re: Underline up to the end of the line

2008-05-28 Thread Howard Shank
VerticalPositionMark and lineSeparator are brand new to iText and has no counter part in RTF creation yet. Perhaps Mark knows of a solution, but he's pretty busy at the moment. Howard - Original Message From: Bruno Lowagie <[EMAIL PROTECTED]> To: Post all your questions about iText her

Re: [iText-questions] Strange text showing up in table cell when using cell.addElement

2008-05-28 Thread 1T3XT info
Giotto wrote: > But, if I create a Cell, and use cell.addElement to add this chunk to the > element, then use table.addCell to add it to the table I get a strange > "Rectangle: 0.0x0.0 (rot: 0 degrees)" text showing up in the cells instead > of the actual text. O.o "Rectangle: 0.0x0.0 (rot: 0 degr

Re: [iText-questions] Arial Unicode MS alternative

2008-05-28 Thread Bruno Lowagie
Paul Hastings wrote: > elvish I used to think that "Elvish" was the language "spoken by Elvis". That was before the LotR movies. Anyway: thanks for the links; I've added them to the FAQ entry. br, Bruno - This SF.net email i

[iText-questions] Strange text showing up in table cell when using cell.addElement

2008-05-28 Thread Giotto
Hi everyone! I'm having a problem I can't solve myself. I'm using iText through the ruby RJB bridge, but I think that has nothing to do with the problem. I create a table, then I create a Chunk or Phrase and set it up to use a truetype font. If I add this to the document the Chunk/Phrase shows u

Re: [iText-questions] OverPrint doesn't work

2008-05-28 Thread 熊田貢
It worked! Thank you Paulo and Leonard. KuMi > PdfGState.setOverPrintStroking() and > PdfGState.setOverPrintNonStroking(). > > Paulo > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > > Behalf Of ??? > > Sent: Wednesday, May 28, 2008 11:52 AM > >

Re: [iText-questions] OverPrint doesn't work

2008-05-28 Thread Paulo Soares
PdfGState.setOverPrintStroking() and PdfGState.setOverPrintNonStroking(). Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of ??? > Sent: Wednesday, May 28, 2008 11:52 AM > To: Post all your questions about iText here > Subject: Re: [iText-que

Re: [iText-questions] OverPrint doesn't work

2008-05-28 Thread 熊田貢
Thank you Leonard. I'm wondering if there is a public method for adding OP. KuMi Yes, you need OP. OPM is an extra option on top of OP... Leonard > Hi Paulo, > > Does it have something to do with "OP" key? > The generated PDF has "OPM" key, but does not have "OP" > key. > > > Are you settin

Re: [iText-questions] OverPrint doesn't work

2008-05-28 Thread Leonard Rosenthol
Yes, you need OP. OPM is an extra option on top of OP... Leonard On May 28, 2008, at 6:31 AM, 熊田貢 wrote: > Hi Paulo, > > Does it have something to do with "OP" key? > The generated PDF has "OPM" key, but does not have "OP" > key. > > > Are you setting overprint view in the viewer? > > Paulo > >

Re: [iText-questions] AcroFields are not recognized when created with pdflatex

2008-05-28 Thread Leonard Rosenthol
This is a known bug in older versions of PdfTeX - I reported it about 6+ months ago and it's been since fixed. Leonard On May 28, 2008, at 6:20 AM, 1T3XT info wrote: > Baer wrote: >> Hi all, >> >> I have generated a pdf with pdflatex containing several form >> fields by using >> the source o

Re: [iText-questions] OverPrint doesn't work

2008-05-28 Thread 熊田貢
Hi Paulo, Does it have something to do with "OP" key? The generated PDF has "OPM" key, but does not have "OP" key. Are you setting overprint view in the viewer? Paulo > Hello all, > > I tried the following code, but the first rectangle is > knocked-out. > I want the first rectangle over-p

Re: [iText-questions] Arial Unicode MS alternative

2008-05-28 Thread Paul Hastings
Bruno Lowagie wrote: > This is the promised FAQ entry: > http://www.1t3xt.com/docs/faq.php?branch=faq.xtra&node=fonts you missed klingon & elvish--the klingons are particularly sensitive about perceived slights especially when drunk ;-) http://kasper-online.de/en/docs/startrek/klingon.htm http:/

Re: [iText-questions] AcroFields are not recognized when created with pdflatex

2008-05-28 Thread 1T3XT info
Baer wrote: > Hi all, > > I have generated a pdf with pdflatex containing several form fields by using > the source on this page: > > http://de.nntp2http.com/comp/text/pdf/2006/03/18b38b9f1f37e1c6236825d407ab42b1.html > > The result is this pdf file: > http://www.nabble.com/file/p17505806/formu

Re: [iText-questions] Arial Unicode MS alternative

2008-05-28 Thread Bruno Lowagie
Bruno Lowagie wrote: > Thanks, I'll probably make a FAQ entry about this, > with the different links. This is the promised FAQ entry: http://www.1t3xt.com/docs/faq.php?branch=faq.xtra&node=fonts I also added this one: http://www.1t3xt.com/docs/faq.php?branch=faq.xtra&node=fonts_search br, Bruno

Re: [iText-questions] [NEWBIE] Re: PdfStamper: OverContent not showing

2008-05-28 Thread Bruno Lowagie
tgkprog wrote: > I will make a contribution to show am gratefull. Small contributions (max. 20 euro) can be put in the TipIt jar: https://tipit.to/itexttipjar I didn't cash in the current tips yet, so I don't have any idea if the system works correctly. One company (http://www.devoil.com/ De Voi

Re: [iText-questions] OverPrint doesn't work

2008-05-28 Thread 熊田貢
Thank you Paulo for your quick response. I am using Acrobat 8 Professional. I confirmed overprint status with "Advanced > Print Production > Overprint Preview" checked and print the file. Are you setting overprint view in the viewer? Paulo > Hello all, > > I tried the following code, but th

Re: [iText-questions] [NEWBIE] Re: PdfStamper: OverContent not showing

2008-05-28 Thread Bruno Lowagie
tgkprog wrote: > I understood that over content is above -top section and under. > as the text appears on the bottom of the page and not on top as the user > wants it :( If you are talking about "under" and "over", we are talking about the Z-coordinate. If we are talking about the top and the bo

Re: [iText-questions] [NEWBIE] Re: PdfStamper: OverContent not showing

2008-05-28 Thread tgkprog
I understood that over content is above -top section and under. >From the javadoc /** Gets a PdfContentByte to write over the page of * the original document. * @param pageNum the page number where the extra content is written * @return a PdfContentByte to write over the page of

Re: [iText-questions] OverPrint doesn't work

2008-05-28 Thread Paulo Soares
Are you setting overprint view in the viewer? Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of ??? > Sent: Wednesday, May 28, 2008 10:04 AM > To: iTextメーリングリスト > Subject: [iText-questions] OverPrint doesn't work > > Hello all, > > I trie

[iText-questions] OverPrint doesn't work

2008-05-28 Thread 熊田貢
Hello all, I tried the following code, but the first rectangle is knocked-out. I want the first rectangle over-printed by the second one. --- cb.setCMYKColorFillF(1f, 0f, 0f, 0f); cb.rectangle(40, 40, 20, 20); cb.fill(); PdfGState gState = new PdfGSt

Re: [iText-questions] Arial Unicode MS alternative

2008-05-28 Thread Bruno Lowagie
Paul Hastings wrote: > Bruno Lowagie wrote: >> alternative available for Arial Unicode, but these are some links >> I listed in the Appendix of the book: > > also might find something here: > http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&cat_id=FontDownloads Thanks, I'll probably make

[iText-questions] [RTF] Re: Underline up to the end of the line

2008-05-28 Thread Bruno Lowagie
iText man wrote: > Yes, it is really included in 4.1.2. > > But we are using iText for generating RTF files, and as > far as I can see VerticalPositionMark, LineSeparator are > related to PDF generation. Then why didn't you say so in the first place? I've added [RTF] to the subject line. (I don

[iText-questions] [NEWBIE] Re: Fwd: Cannot find symbol while compiling 'com.lowagie.text.PageSize.POSTCARD'

2008-05-28 Thread Bruno Lowagie
harsha ravindra wrote: > i have added iText-2.1.2.jar but no success though... 1. DO NOT mail me personally. Use the mailing list address. Especially not in the current circumstances. It is NOT appreciated when people mail me personally with newbie questions. 2. PageSize.POSTCARD is present in

Re: [iText-questions] Cannot find symbol while compiling 'com.lowagie.text.PageSize.POSTCARD'

2008-05-28 Thread harsha ravindra
i have added iText-2.1.2.jar but no success though... harsha On Fri, May 23, 2008 at 12:17 PM, 1T3XT info <[EMAIL PROTECTED]> wrote: > harsha ravindra wrote: > > Hi, > > > > I'm having a problem while compiling a document with the page size > > 'POSTCARD'. What may be the cause for this..? > > I

[iText-questions] AcroFields are not recognized when created with pdflatex

2008-05-28 Thread Baer
Hi all, I have generated a pdf with pdflatex containing several form fields by using the source on this page: http://de.nntp2http.com/comp/text/pdf/2006/03/18b38b9f1f37e1c6236825d407ab42b1.html The result is this pdf file: http://www.nabble.com/file/p17505806/formular.pdf formular.pdf Nevert

Re: [iText-questions] Underline up to the end of the line

2008-05-28 Thread iText man
Yes, it is really included in 4.1.2. But we are using iText for generating RTF files, and as far as I can see VerticalPositionMark, LineSeparator are related to PDF generation. On Tue, 27 May 2008 12:05:18 + (UTC) Paulo Soares <[EMAIL PROTECTED]> wrote: > iText man ngs.ru> writes: > >>

Re: [iText-questions] Arial Unicode MS alternative

2008-05-28 Thread Paul Hastings
Bruno Lowagie wrote: > alternative available for Arial Unicode, but these are some links > I listed in the Appendix of the book: also might find something here: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&cat_id=FontDownloads ---