Re: [iText-questions] FYI: personal message

2008-12-19 Thread Mirco Piccin
Bruno, i wish you and all your family a merry xmas. I hope your son get very well soon. Good luck for all! ..and thanks for all your job! Regards Mirco -- ___ iText-questions ma

Re: [iText-questions] The document has no pages.

2008-12-19 Thread Steve Cole
The code works fine. If you dump the ByteArrayOutputStream to a file, like this... FileOutputStream fos = new FileOutputStream("mynewdocument.pdf",false); fos.write(bos.toByteArray()); fos.close(); ...the pdf is just fine. Opening a new document is useless, but not harmful. Your error is oc

[iText-questions] Steve Senneff/HOME_OFF/AGLIFE is out of the office.

2008-12-19 Thread Steve_Senneff
I will be out of the office starting 12/19/2008 and will not return until 12/29/2008. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.

[iText-questions] what all do I need to use iText in .NET - I'm using VS2005, WinXP Pro.

2008-12-19 Thread K. Jitender
Thank you. Sincerely yours, Jitender. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-q

Re: [iText-questions] The document has no pages.

2008-12-19 Thread wmhfitz
Thanks for clearing that up. Seems I might be closer. The cleaned up code is below public class FormPdfView extends AbstractPdfView { protected void buildPdfDocument(Map model, Document document, PdfWriter writer, HttpServletRequest request, HttpServletResponse re

Re: [iText-questions] The document has no pages.

2008-12-19 Thread Steve Cole
Based on your System.err.println messages, all the code displayed is being executed successfully. Whatever is throwing the exception is being executed after the System.err.println("13"); statement. - Original Message - From: "wmhfitz" To: Sent: Friday, December 19, 2008 11:56 AM Subje

Re: [iText-questions] FYI: personal message

2008-12-19 Thread Alan Keown
Bruno, Thank you for the good news. Thank you for all the work you do on iText. I wish you and all those you care for a happy and fulfilling Christmas. Cheers AlanK -Original Message- From: Bruno Lowagie [mailto:br...@lowagie.com] Sent: Friday, 19 December 2008 8:07 PM To: Post all your

Re: [iText-questions] The document has no pages.

2008-12-19 Thread 1T3XT info
wmhfitz wrote: > Here's my class... > > public class FillEnabledForm { > > public static final String ENABLED_FORM = "CAI_0708.pdf"; > public static final String RESULT = "ENABLED_CAI.07.10.08.pdf"; > static String readPdf = > "C:\\TRMWorkspace\\ClearView\\WebContent\\WEB-INF\\

Re: [iText-questions] The document has no pages.

2008-12-19 Thread wmhfitz
Here's my class... public class FillEnabledForm { public static final String ENABLED_FORM = "CAI_0708.pdf"; public static final String RESULT = "ENABLED_CAI.07.10.08.pdf"; static String readPdf = "C:\\TRMWorkspace\\ClearView\\WebContent\\WEB-INF\\resources\\forms\\CAI070

Re: [iText-questions] The document has no pages.

2008-12-19 Thread wmhfitz
public class FormPdfView extends AbstractPdfView { protected void buildPdfDocument(Map model, Document document, PdfWriter writer, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Pdf

Re: [iText-questions] WebColors + PDF

2008-12-19 Thread 1T3XT info
Marta Figueiredo wrote: I believe that what i asked was clear enough. Both the RTF, HTML and PDF files are generated the same way. See my example. The colors are only applied to the first two types (RTF and HTML). So you are saying the the text "Hello World" in hello.htm and hello.rtf in

Re: [iText-questions] WebColors + PDF

2008-12-19 Thread Marta Figueiredo
I believe that what i asked was clear enough. Both the RTF, HTML and PDF files are generated the same way. The colors are only applied to the first two types (RTF and HTML). I was asking whether WebColors is supposed to work in pdf files. I'm applying the colors to paragraphs and adding them to

Re: [iText-questions] WebColors + PDF

2008-12-19 Thread 1T3XT info
Marta Figueiredo wrote: > Hi > > I'm setting paragraph colors using WebColors class, but the colors are > only applied if the output is RTF or HTML. It does not work for PDFs, > does anyone know why? What are the alternatives? I have a car at home and it doesn't work. What is wrong with it? (Di

Re: [iText-questions] The document has no pages.

2008-12-19 Thread 1T3XT info
wmhfitz wrote: > Instead of saying "it's bound to fail" do you have any real suggestions of > what is I need to change to accomplish this? The old fashioned way would be to add System.err.println("I'm here 1"); System.err.println("I'm here 2"); System.err.println("I'm here 3"); ... between every l

Re: [iText-questions] Convert PdfCopy to ByteArrayOutputStream - PDF merging

2008-12-19 Thread 1T3XT info
Marta Figueiredo wrote: > Hello, > > I'm using PdfCopy to merge the contents of two PDF, but I need the merge > output to be an array of bytes - ByteArrayOutputStream. Does anyone know > how to perform this? You are asking a question you have already answered yourself! You say you are using Pd

Re: [iText-questions] Hi, I had some questions about what iText can do

2008-12-19 Thread Rick Carback
> > 1) convert all printable file-formats into PDF (JPEG, DOC, > > TXT, PPT, etc.) > > Now it's a good time to ask Santa Claus for this. Don't forget to include > some yet-to-be-invented formats in your Christmas request. > You need a reader for each file format you want to support. It's a bit of

[iText-questions] WebColors + PDF

2008-12-19 Thread Marta Figueiredo
Hi I'm setting paragraph colors using WebColors class, but the colors are only applied if the output is RTF or HTML. It does not work for PDFs, does anyone know why? What are the alternatives? Thanks Marta -- _

Re: [iText-questions] Hi, I had some questions about what iText can do

2008-12-19 Thread Paulo Soares
> -Original Message- > From: Evan Subar [mailto:ets...@ufl.edu] > Sent: Friday, December 19, 2008 3:30 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Hi, I had some questions about > what iText can do > > Greetings, > > For the project I am working on I a

[iText-questions] Hi, I had some questions about what iText can do

2008-12-19 Thread Evan Subar
Greetings, For the project I am working on I am looking for an SDK (like iText) that can meet the following requirements... 1) convert all printable file-formats into PDF (JPEG, DOC, TXT, PPT, etc.) 2) merge multiple PDFs into one PDF 3) convert PDF to TIF or at least do some sort of conversion

Re: [iText-questions] The document has no pages.

2008-12-19 Thread Steve Cole
Create small class file that can be executed from a command line that creates the error. Submit it and the pdf used for input. - Original Message - From: "wmhfitz" To: Sent: Friday, December 19, 2008 10:04 AM Subject: Re: [iText-questions] The document has no pages. > > I have tried t

Re: [iText-questions] The document has no pages.

2008-12-19 Thread wmhfitz
I have tried that. When I replace the line PdfStamper stamper = new PdfStamper(reader, bos); with PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(result)); I get a new pdf in that directory, still with the same error. I guess there actually 2 problems, getting rid of the

Re: [iText-questions] The document has no pages.

2008-12-19 Thread Steve Cole
I didn't see a problem with your code in the original post. Have you tried dumping the ByteOutputStream to a file see what the pdf looks like? Could be how you're trying to get the contents of your ByteOutputStream to the servlet response OutputStream. - Original Message - From: "wmhfitz

Re: [iText-questions] The document has no pages.

2008-12-19 Thread wmhfitz
I removed the line writer = writer.getInstance(document, bos); That was not supposed to be there, it was left over from trying different things to get pdf to the browser. But with that said, I still get the same error and the following message displayed on screen. Instead of saying "it's bo

[iText-questions] Convert PdfCopy to ByteArrayOutputStream - PDF merging

2008-12-19 Thread Marta Figueiredo
Hello, I'm using PdfCopy to merge the contents of two PDF, but I need the merge output to be an array of bytes - ByteArrayOutputStream. Does anyone know how to perform this? Thanks Marta --

Re: [iText-questions] Conversion of HTML to PDF

2008-12-19 Thread 1T3XT info
Orpu wrote: > Hi, > Can we convert html to pdf using itext. Yes, but not all HTML. > Appreciate some code samples. There are some examples here: http://1t3xt.info/examples/browse/ > What all versions of Adobe Acrobat are supported by itext 2.1.4. That's like asking: what kind of apple is a pea

[iText-questions] Conversion of HTML to PDF

2008-12-19 Thread Orpu
Hi, Can we convert html to pdf using itext. Appreciate some code samples. What all versions of Adobe Acrobat are supported by itext 2.1.4. Thanks -- View this message in context: http://www.nabble.com/Conversion-of-HTML-to-PDF-tp21091864p21091864.html Sent from the iText - General mailing li

Re: [iText-questions] Problem with embedded font

2008-12-19 Thread Leonard Rosenthol
Conversion of a font from one format to another, without permission of the font foundry that created it, is a violation of their rights! Leonard On Dec 19, 2008, at 4:32 AM, Bram__ wrote: > > Thanks for all the responses, it's all solved now. Turned out that > the font - > Gill Sans - was co

Re: [iText-questions] Problem with embedded font

2008-12-19 Thread Bram__
Thanks for all the responses, it's all solved now. Turned out that the font - Gill Sans - was converted wrong. I used fondu for converting from dfont to ttf files, after trying some other converters and playing around a bit i found a converter on Windows that works well. Thanks again :) -- Vie

[iText-questions] Import RTF Document doesn't import page margins

2008-12-19 Thread Vifani
Hi guys, I have a problem using the importRtfDocument method of the RtfWriter2 class. If I import an RTF document and, then, I will write it on disk, the exported RTF document has lost all settings about page margins. Why? Can I import also the page settings from the original document? -- View

Re: [iText-questions] Signature with Image alignment problem

2008-12-19 Thread padma priya
I got the answer Thanks --- On Fri, 19/12/08, Harsha Ravindra wrote: From: Harsha Ravindra Subject: Re: [iText-questions] Signature with Image alignment problem To: telltopa...@yahoo.co.in, "Post all your questions about iText here" Date: Friday, 19 December, 2008, 3:42 PM hey.. u

Re: [iText-questions] Signature with Image alignment problem

2008-12-19 Thread Harsha Ravindra
hey.. u from india? cheers On Fri, Dec 19, 2008 at 2:45 PM, padma priya wrote: > Hello, > > I tried to add an image with the signature. Everything is fine but how > can I set the alignment of the Image? The problem is image is getting > overlap with signature. > > I want to locate the image at

Re: [iText-questions] print layer if visible

2008-12-19 Thread 1T3XT info
hel...@gportal.hu wrote: > After having made some experiments I figured out that "when visible" state > come up when the given property (printable, exportable) of the layer > (optional content) is not set at all. So you are right pointing out there > are only two explicit values (true and false) wh

Re: [iText-questions] print layer if visible

2008-12-19 Thread helasz
After having made some experiments I figured out that "when visible" state come up when the given property (printable, exportable) of the layer (optional content) is not set at all. So you are right pointing out there are only two explicit values (true and false) which respects the PDF reference. A

[iText-questions] FYI: personal message

2008-12-19 Thread Bruno Lowagie
Hello all, as many of you know, my son was diagnosed with bone cancer in February. Last week he had to undergo numerous tests: NMR (also called an MRI), ultrasound, Rx, CT scans, a hearing test and an extra scan of his leg,... This was the first thorough test after 9 months of chemotherapy, and

[iText-questions] AUTO: Glen Hamel is out of the office (returning 12/22/2008)

2008-12-19 Thread glen . hamel
I am out of the office until 12/22/2008. I am out of the office on December 19th. If you require immediate attention, please contact contact the main office and they will patch you through to Roman. 905-361-7621 Thank You. Note: This is an automated response to your message "Re: [iText-quest

Re: [iText-questions] PDF compression using itext

2008-12-19 Thread 1T3XT info
Menta, Vijay wrote: > Hi, > > We have a situation where we are in need to compress the PDF files > generated by an Oracle Application. The PDF files generated by this > application are getting to a point we cannot deliver them via email. > What I would like to know is if there is a way to use

Re: [iText-questions] Acroform: highlighting fields

2008-12-19 Thread 1T3XT info
Daniel Florey wrote: > Hi, > first of all I want to thank you for the great book and the itext library. > Here comes my question: > When creating pdf documents containing acroforms I sometimes get an > additional toolbar in Acrobat Reader that enables me to highlight all > input fields & checkbox

Re: [iText-questions] print layer if visible

2008-12-19 Thread 1T3XT info
hel...@gportal.hu wrote: > Leonard is right (sorry for not having been specific enough), it is about > optional content. > Actually it was not the PDF reference leading me to this observation, but > I have noticed this options (always,never,when visible) working with one > of my envelope PDFs creat

Re: [iText-questions] print layer if visible

2008-12-19 Thread helasz
Leonard is right (sorry for not having been specific enough), it is about optional content. Actually it was not the PDF reference leading me to this observation, but I have noticed this options (always,never,when visible) working with one of my envelope PDFs created from scratch and opened in Acrob

Re: [iText-questions] Adding Contents at specific coordinates in a PDF

2008-12-19 Thread Alexis Pigeon
Hi Orpu, On 19/12/2008, Orpu wrote: > Hi > > I have a PDF can we add contents at a Specific Coordinates i.e at so and so > X and so and so Y coordinates. Sure, look for examples using PdfStamper. > The content may come from database or hard coded. That's absolutely irrelevant, the content m

Re: [iText-questions] Adding Contents at specific coordinates in a PDF

2008-12-19 Thread 1T3XT info
Orpu wrote: > Hi > > I have a PDF can we add contents at a Specific Coordinates i.e at so and so > X and so and so Y coordinates. Yes, this is documented on many places. For instance in the book (chapters 10 and 11). -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3

Re: [iText-questions] pdf doesn't show all japanese characters

2008-12-19 Thread 1T3XT info
anurag wrote: > Dear Sir, > > We are having kind of a strange problem. When we are generating pdfs > from a html file then it is not displaying complete japanese characters > on the pdf pages. I'm sorry, I can't help you. This demands debugging and I don't understand Japanese. Also it's not cl