Re: [iText-questions] How do I know when to move onto the next page?

2005-07-19 Thread Philip Newton
On 7/19/05, John M. Gabriele <[EMAIL PROTECTED]> wrote: > BaseFont bf = BaseFont.createFont( BaseFont.HELVETICA, BaseFont.CP1252, > BaseFont.NOT_EMBEDDED ); // No idea what that CP1252 means. Code page 1252 -- the Windows "Western" code page used for most Western European languages. Basically say

Re: [iText-questions] Invalid PDF generated

2005-07-19 Thread Chris Wilson
Hi Paulo, I don't know if you noticed but your GS version is really old. I hadn't noticed, thanks for pointing it out. I tried with GS 8.14 and it doesn't crash, so it does indeed appear to be a bug in the old Ghostscript. (shame that 8.x is non-Free). Also, I was following the advice on

Re: [iText-questions] iText generated PDF wont open directly in Adobe

2005-07-19 Thread Paulo Soares
Show me the damaged files. - Original Message - From: "Bear Giles" <[EMAIL PROTECTED]> To: "Less, Doug" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, July 19, 2005 11:05 PM Subject: Re: [iText-questions] iText generated PDF wont open directly in Adobe > I may have a related problem. My boss

Re: [iText-questions] Invalid PDF generated

2005-07-19 Thread Paulo Soares
I don't know if you noticed but your GS version is really old. - Original Message - From: "Chris Wilson" <[EMAIL PROTECTED]> To: "Paulo Soares" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, July 19, 2005 8:56 PM Subject: RE: [iText-questions] Invalid PDF generated > Hi Paulo, > > > Works for

RE: [iText-questions] Invalid PDF generated

2005-07-19 Thread Chris Wilson
Hi Paulo, Works for me in GS and Acrobat. Note that you have javascript in the pdf to print and that's what is causing the message. Thanks for the quick response. Now I can't reproduce the GS crash by changing the code back :-( but the table cell containing the image doesn't display at all.

Re: [iText-questions] iText generated PDF wont open directly in Adobe

2005-07-19 Thread Bear Giles
I may have a related problem. My boss says that he's getting "damaged file" warning when he opens the documents I produce with 1.3.1. This is happening with both files generated from scratch and an Adobe created document where I filled in multiple form fields. His details: Windows Version 5.1

Re: [iText-questions] Help with OnEndPage

2005-07-19 Thread Francisco Carvalho
Figured it out, just in case anyone wonder: public class Letter : PdfPageEventHelper { public void write() { Document document = new Document(PageSize.LETTER,40,10,10,60); PdfWriter writer = PdfWriter.GetInstance(document, new FileStream("hello.pdf"

[iText-questions] Help with OnEndPage

2005-07-19 Thread Francisco Carvalho
I'm not able to get the OnEndPage to fireup what am I doing wrong? using System.IO; using iTextSharp.text; using iTextSharp.text.pdf; .. private void button1_Click(object sender, System.EventArgs e) { Document document = new Document(PageSize.LETTER,40,10,10,60); PdfWriter writ

Re: [iText-questions] concatenating a large number of pdf files

2005-07-19 Thread R K
try this PdfCopyFields copy = new PdfCopyFields(new FileOutputStream(outputFile)); PdfReader reader = null; for (int i = 0; i < pages.size(); i++) { reader = new PdfReader(filePath + pages.get(i)); copy.addDocument(reader); } copy.close(); On 7/15/

Re: [iText-questions] How do I know when to move onto the next page?

2005-07-19 Thread John M. Gabriele
--- "I" <[EMAIL PROTECTED]> wrote: > [snip] > While I'm adding text to this page (to big PdfPCell in a PdfPTable in the > middle of the page), > what I need is a way to add a new page once the text I'm adding reaches a > certain point > down the page. > > The only way I can figure to do that is

Re: [iText-questions] rectangle, table to a position

2005-07-19 Thread Philip Newton
On 7/19/05, Nadrai Tamás <[EMAIL PROTECTED]> wrote: > 1. > I'd like to ask if I can draw a rounded rectangle, like > those two in this example. You can certainly do it Direct Content -- see part 4 of the tutorial ( http://itextdocs.lowagie.com/tutorial/#part4 ). That would require you to draw them

RE: [iText-questions] Invalid PDF generated (fwd)

2005-07-19 Thread Chris Wilson
(sorry, sent with wrong source address, resending) Hi Paulo, Works for me in GS and Acrobat. Note that you have javascript in the pdf to print and that's what is causing the message. Thanks for the quick response. Now I can't reproduce the GS crash by changing the code back :-( but the tab

Re: [iText-questions] Hello, I can not toi create PDF on the fly using iText library, can you help me, please?

2005-07-19 Thread Philip Newton
On 7/18/05, LEOS CAMARILLO, ANGELICA <[EMAIL PROTECTED]> wrote: > > Hello i am using jsp file, it show a report Html format, but how can I > convert it in PDF format, I analized iText library, but I find I have to > add every element to the document object (document.add(new Paragraph("Hello

RE: [iText-questions] iText, iTextSharp, iTextDotNet

2005-07-19 Thread Francisco Carvalho
Hey Paulo, I've tried to use iTextSharp instead of iTextDotNet, but the event onEndPage() stops working. my class inherits from PdfPageEventHelper. What am I doing wrong? Francisco >>> "Paulo Soares" <[EMAIL PROTECTED]> 07/19/05 11:50 AM >>> Let's see what we have: iText - the original, in Jav

[iText-questions] Unreadable RTF

2005-07-19 Thread Bhasker Konakanchi
Hi, I have this ColdFusion web application that generates RTF Documents using IText 1.3 This application was working great until a week ago. But now I try to generate this RTF document it is dumping all the meta information in the generated file. I don't remember changing any of this code in th

RE: [iText-questions] iText, iTextSharp, iTextDotNet

2005-07-19 Thread Paulo Soares
Let's see what we have: iText - the original, in Java itextdotnet - a port to J# itextsharp - a port to C# with some API changes (just the name or property replacing function) to make it more C# look and feel and to solve some conflicts it had with VB.NET Both ports are up-to-date. Whatever you

RE: [iText-questions] iText generated PDF wont open directly in Adobe

2005-07-19 Thread Paulo Soares
If you generate the file to disk, does it work? If it doesn't, post the file. > -Original Message- > From: Less, Doug [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 19, 2005 7:41 PM > To: Paulo Soares; Less, Doug; itext-questions@lists.sourceforge.net > Subject: RE: [iText-questions] iT

RE: [iText-questions] webdav urls in Image.getInstance(URL url)

2005-07-19 Thread Paulo Soares
iText has nothing to do with webdav or any other authentication, it uses what is provided by Java. If you need anything special read the image to a byte array using whatever authentication method you like. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On >

RE: [iText-questions] iText generated PDF wont open directly in Adobe

2005-07-19 Thread Paulo Soares
iText is innocent, look for the butler or IE. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Less, Doug > Sent: Tuesday, July 19, 2005 3:29 PM > To: 'itext-questions@lists.sourceforge.net' > Subject: [iText-questions] iText generated PDF wont o

RE: [iText-questions] webdav urls in Image.getInstance(URL url)

2005-07-19 Thread Bill Ensley
Can you access the webdav using java alone? if you can, get the image as a byte[] and then pass it to iText -Bill > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Cédric > REYMANN > Sent: Tuesday, July 19, 2005 7:59 AM > To: itext-questions@lists.source

[iText-questions] iText, iTextSharp, iTextDotNet

2005-07-19 Thread Rebecca
I have just found these projects within the last few days, and I am getting extremely confused. Which should I be using? There does not appear to be a published api for all the projects, and they are different. I can't use the api for iText on iTextSharp, it gives me errors. All I want to d

[iText-questions] webdav urls in Image.getInstance(URL url)

2005-07-19 Thread Cédric REYMANN
Hello, In order to generate my pdf, I need to instanciate an Image from a webdav directory with an URL of the form "https://mywebserver.com/webdav/"; It seems that the webdav is accessed as the "guest" user. Of coures, it's absolutely logical but the problem is that I need authentication so that

[iText-questions] iText generated PDF wont open directly in Adobe

2005-07-19 Thread Less, Doug
We have been using iText to generate PDF files as a reporting solution.  This works great in Windows 2000 with Adobe 7.0 installed, however in Windows XP (with Adobe 7.0) all iText generated PDF documents are intercepted by Windows XP as 'corrupt' or 'of the wrong file type' and wont open di

Re: [iText-questions] visual tool for itext, filling pdf forms

2005-07-19 Thread Leonard Rosenthol
At 12:11 PM 7/19/2005, =?ISO-8859-2?Q?Nadrai_Tam=E1s?= wrote: I used pdf forms in a web applicatin but i couldt send hungarian characters to from fields. (because adobe didnt embedd the hungarian fonts to the form fields only to the normal text of the document) Acrobat 5 and later suppo

RE: [iText-questions] visual tool for itext, filling pdf forms

2005-07-19 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Nadrai Tamás > Sent: Tuesday, July 19, 2005 5:11 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] visual tool for itext, filling pdf forms > > Hi! > > I'd like to ask

[iText-questions] How do I know when to move onto the next page?

2005-07-19 Thread John M. Gabriele
I'm using iText to create a nicely formatted doc using mostly Paragraphs (some just containing newlines for spacing purposes) and PdfPTables (letting iText decide where this stuff lands on the page). My doc happens to also have some text *manually* placed near the bottom of the doc. That text gets

[iText-questions] visual tool for itext, filling pdf forms

2005-07-19 Thread Nadrai Tamás
Hi! I'd like to ask some questions. does a visual tool exist for iText, where i can create a pdf file like in Adobe Acrobat, and get the iText code? or something like this, for example, a tool that converts an existing pdf document to iText code? I used pdf forms in a web applicatin but i could

RE: [iText-questions] Invalid PDF generated

2005-07-19 Thread Paulo Soares
Works for me in GS and Acrobat. Note that you have javascript in the pdf to print and that's what is causing the message. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Chris Wilson > Sent: Monday, July 18, 2005 10:33 PM > To: itext-questions@l

[iText-questions] RE:itext support writing javax.swing.text.Document directly to the pdf file?

2005-07-19 Thread agletfan agletfan
itext developer: Hi! I write some code about the editor in java and I want to export the edited text to the pdf file. javax.swing.JEditorPane or javax.swing.JTextPane, you know, support the StyledDocument and offer a API getDocument() which they extends from the javax.swing.text.JText

RE: [iText-questions] Re: Signing a Certified document having a signature field

2005-07-19 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Wahaj Khan > Sent: Tuesday, July 19, 2005 10:57 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Re: Signing a Certified document > having a signature field > > OK I h

[iText-questions] Converting XML to PDF

2005-07-19 Thread Rebecca
I have used sgml to convert my html document into xml, hoping that I will be able to convert this into pdf. Surprise...it didn't work. So I scaled down. I then converted Chap0701.xml into pdf which worked fine. I can also convert the Shakespeare play with custom tags using TagMap, works grea

[iText-questions] Background Color of Paragraphs

2005-07-19 Thread thmarx
Hi. Is it possible to set the backgroundcolor for a paragraph? I only find examples to add backgroundcolor to chunks. cheers --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadm

[iText-questions] rectangle, table to a position

2005-07-19 Thread Nadrai Tamás
hi! I have to generate pdf files from a web application. The files have to look like this : http://gatya.atw.hu/temp.doc , but filled with datas. 1. I'd like to ask if I can draw a rounded rectangle, like those two in this example. 2. Can i create a table to an absolute position to make such

[iText-questions] Re: Signing a Certified document having a signature field

2005-07-19 Thread Wahaj Khan
OK I have tried it another way without certifying. I made 4 pdfs which contain an empty signature field having their properties i.e. Form Field property set to: 1) Visible 2) Not visible on print 3) Hidden 4) Hidden but Visible on print After signing with iText for all of the above, the form f

Re: [iText-questions] xml parsing

2005-07-19 Thread Roberto \"Tasso\"
Ok but i've downloaded a file from your site and i saw that the parser in corrispondence of this portion of XML inserts a blank page in the pdf file. But if i duplicate the section close after the parser still inserts only one blank page --- Bruno Lowagie <[EMAIL

[iText-questions] xml parsing

2005-07-19 Thread Roberto \"Tasso\"
Hi what's the xml tag (or tags) to insert a black page in a pdf document? Roberto "Tasso" HMD Staff ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it

[iText-questions] Invalid PDF generated

2005-07-19 Thread Chris Wilson
Hi all, I'm using iText in a project and I'm very impressed. Thank you all for your hard work in making it so flexible and powerful. I think I have found a way to make iText generate an "invalid" PDF file. You can see an example PDF at [http://gcc.flexdns.net/invalid.pdf]. Ghostscript segfau

[iText-questions] Hello, I can not toi create PDF on the fly using iText library, can you help me, please?

2005-07-19 Thread LEOS CAMARILLO, ANGELICA
  Hello  i am  using  jsp file,  it show a report Html format, but how can I convert it in PDF format, I analized iText library, but I find I have  to add every element to the document object (document.add(new Paragraph("Hello World”))  alwas i want it apper in the web page in PDF format.