RE: [iText-questions] Question about ByteBuffer.formatDouble

2005-12-15 Thread Paulo Soares
ByteBuffer.formatDouble() is designed to be fast and output 5 significative digits, not 5 decimal digits in all cases. This compromise works well but I also realize that for the odd cases more precision may be needed. There's version in the CVS that will always output 6 decimal digits if

[iText-questions] timestamped pdf

2005-12-15 Thread Tamas Nemeth
Hi All! Is it possible to create a timestamped pdf file and not to sign it? So I would like to request a timestamp on an unsigned pdf if, if it is possible.Thanks for Your help in advance!Best regards, Tamas

Re: [iText-questions] How do I stream output to browser instead of a file

2005-12-15 Thread Diana K. Woodhouse
Thanks everybody for your replies! I've changed the method createPdf() below to stream to an output buffer like in the tutorial example. I'm getting a null pointer exception in the close method. // NEW private ByteArrayOutputStream baos; private ServletOutputStream out; private

Re: [iText-questions] timestamped pdf

2005-12-15 Thread Leonard Rosenthol
At 09:24 AM 12/15/2005, Tamas Nemeth wrote: Is it possible to create a timestamped pdf file and not to sign it? You want just a visual time stamp? OR a cryptographically secure one? So I would like to request a timestamp on an unsigned pdf if, if it is possible. Request

Re: [iText-questions] How do I stream output to browser instead of a file

2005-12-15 Thread Diana K. Woodhouse
Nevermind this null pointer exception. I made the Pdf class extend Action and added this method. public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse

[iText-questions] (C#) Image.GetInstance() - encoder needed??

2005-12-15 Thread michelle jeffreys
Hi,I am using C# to write a PreviewPageInfo Image to aniTextSharp Image object using the Image.GetInstance() method. I cast my image to be of type System.Drawing.Imaging.Metafile, and then encapsulate itas a Bitmap. When I try to create the iText Image using GetInstance, it tells me "Value

Re: [iText-questions] How do I stream output to browser instead of a file

2005-12-15 Thread Diana K. Woodhouse
Ok, great then. I did that. But the page comes up blank. --- Michael Griffith [EMAIL PROTECTED] wrote: If you are writing the PDF to the outputstream your struts action can (should) return null. On 12/15/05 11:28 AM, Diana K. Woodhouse [EMAIL PROTECTED] wrote: Nevermind this null

RE: [iText-questions] How do I stream output to browser instead of a file

2005-12-15 Thread Bill Ensley
It is very difficult if not impossible to stream back to a browser Using ANY action type web-framework. -Bill Ensley -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Diana K. Woodhouse Sent: Thursday, December 15, 2005 9:29 AM To: Diana K. Woodhouse;

RE: [iText-questions] How do I stream output to browser instead of a file

2005-12-15 Thread Diana K. Woodhouse
If not an action type web-framework then how can it be done from a web page? Are there any examples anywhere? The current functionality of my applicaiton uses struts to map the action that gets the session info to update the database and generate a pdf. It currently writes to a file but I

RE: [iText-questions] How do I stream output to browser instead of a file

2005-12-15 Thread Bill Ensley
I realized AFTER I send that last message that perhaps someone else may have Had success doing this, but my experience has shown me that The best way to return a pdf to the browser is to create a custom-mapping That directly posts or gets to the servlet. -Bill Ensley -Original Message-

RE: [iText-questions] How do I stream output to browser instead of a file

2005-12-15 Thread Diana K. Woodhouse
Wow, I just got it to show up be removing the action method that called the pdf method (which I turned into an action method). I had one to many levels of indirection. Now that I can at least see the pdf in the browser, I believe I can change the code to do the other stuff I need to do regarding

Re: [iText-questions] How do I stream output to browser instead of a file

2005-12-15 Thread Michael Griffith
I'm not sure what prompts Bill to say this -- anything you can do in a servlet, you can do in a struts action class. I have done this many times, and its not difficult to do. On 12/15/05 11:53 AM, Diana K. Woodhouse [EMAIL PROTECTED] wrote: If not an action type web-framework then how can it

RE: [iText-questions] How do I stream output to browser instead of a file

2005-12-15 Thread Bill Ensley
Like I said, thy hand was faster than thy brain. I realized too late that I'm not the only programmer on the planet doing this. :) -Bill -Original Message- From: Michael Griffith [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 10:03 AM To: Diana K. Woodhouse; Bill Ensley;

RE: [iText-questions] Question about ByteBuffer.formatDouble

2005-12-15 Thread Adam Goode
This solves my problem. Thank you very much! Adam On Thu, 2005-12-15 at 12:21 +, Paulo Soares wrote: ByteBuffer.formatDouble() is designed to be fast and output 5 significative digits, not 5 decimal digits in all cases. This compromise works well but I also realize that for the odd

Re: [iText-questions] Mac/OSX Problems with Rtf

2005-12-15 Thread Mark Hall
On Wednesday 14 December 2005 15:49, Michael Griffith wrote: I am havinf some trouble with the TOC generated in an RTF file I am producing -- and I am not sure if anyone else has run into this problem or if its something I am doing. I am using iText 1.3 to generate an RTF file and

[iText-questions] PDF printing from Reader is randomly ROT1'ing the printed page(s)

2005-12-15 Thread Jeff Buhrt
Has anyone seen where Acrobat Reader 6/7 would display the text on a PDF fine, but when printed sometimes the output was shifted up one ascii character like a ROT1? [Like the old days of rot13 encryption.] So a page with: 'DATE 12/10/2005' Would print as: 'EBUF!!!2302103116' We have

Re: [iText-questions] (C#) Image.GetInstance() - encoder needed??

2005-12-15 Thread Paulo Soares
You already found out the way to make it work. There's no other way. - Original Message - From: michelle jeffreys [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Thursday, December 15, 2005 5:29 PM Subject: [iText-questions] (C#) Image.GetInstance() - encoder needed??

[iText-questions] Fwd: Help me for HTMLWorker

2005-12-15 Thread Alex Chew
Hi There I am working on an application try to covert some html fragment to pdf. from docs and mailing list, i think HTMLWokercan do this well. But in my test , i couldnot make it work with Chinese words - all Chinese words were replaced by blank even i used unicode directly. I cannot find any