Re: [iText-questions] Font Size Question

2006-09-07 Thread jonathan.chan
This option is unchecked already, but still can't show anything. It seems can't write anything to the document if the font size is 6. Regards, Jonathan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Friday, September 08, 2006 4:44 A

Re: [iText-questions] byte[] (jpg, tiff) to byte[] (pdf)

2006-09-07 Thread Mark Storer
> p.s.: i have readed the itext tutorial, but there are just > examples for converting into > file system, and not to byte array So you want a byte array of the entire PDF, not just the portion that would represent the image, right? Just use a ByteArrayOutputStream instead of a file-related on

Re: [iText-questions] Font Size Question

2006-09-07 Thread Paulo Soares
There's an option in Acrobat to show "greek text below" some size. Unset that option. Paulo - Original Message - From: "Jonathan Chan" <[EMAIL PROTECTED]> To: Sent: Thursday, September 07, 2006 12:51 PM Subject: [iText-questions] Font Size Question > Hi all, > > I'm using iTextSharp

Re: [iText-questions] Question relating to appending a PDF using iText

2006-09-07 Thread Paulo Soares
PdfStamper does it all. Paulo - Original Message - From: "Karl Nolan" <[EMAIL PROTECTED]> To: Sent: Thursday, September 07, 2006 2:33 PM Subject: [iText-questions] Question relating to appending a PDF using iText > Hi, Is it possible to open a PDF document and append some text (or upd

[iText-questions] Question relating to appending a PDF using iText

2006-09-07 Thread Karl Nolan
Hi, Is it possible to open a PDF document and append some text (or update field) to the original PDF document. I see that there is loads of examples of writing new PDF document using PdfWriter and adding a document using a new Paragraph object. I have tried to use;PdfWriter.getInstance(document,  

[iText-questions] Font Size Question

2006-09-07 Thread Jonathan Chan
Hi all, I'm using iTextSharp and using "arialuni.ttf", why the minimum font size is 8?  If i set the font size less than 8, all the characters are lost.  If i really want to show a smaller font, what i can do? Thanks a lot! Regards, Jonathan. -

Re: [iText-questions] Word wrap

2006-09-07 Thread Frank Starsinic
CASE CLOSED. I was doing the encryption incorrectly in a different area of the app.FrankOn 9/7/06, bruno < [EMAIL PROTECTED]> wrote:Frank Starsinic wrote:> I have a one page PDF with many fields. A few of the fields can accept > multiple lines of text.> When the form is populated, however, the text

Re: [iText-questions] Cannot print PDF after filling out form.

2006-09-07 Thread Frank Starsinic
I tried this but it did not seem to help    PdfStamper stamper = new PdfStamper(reader,    new FileOutputStream(pOutFile));//Added the following line of code out of desperation     stamper.getWriter().setEncryption(PdfWriter.STRENGTH40BITS,null,null,P

Re: [iText-questions] How to create PDF documents with greek characters

2006-09-07 Thread Mark Storer
When you call a "getFont" override that doesn't specify an encoding for the text, you default to "WinAnsiEncoding".  You can find a definition of this encoding in Appendix D of the PDF Reference.  It's a single-byte encoding with limited support for non-English languages.     Check out the

Re: [iText-questions] Servlet and encrypt

2006-09-07 Thread Mark Storer
All PdfWriters have two different public "setEncryption()" you can use, but you have to call them before calling the associated Document's "open()".   --Mark Storer   Senior Software Engineer   Cardiff Software #include typedef std::Disclaimer DisCard; -Original Message-From:

Re: [iText-questions] Cannot print PDF after filling out form.

2006-09-07 Thread Frank Starsinic
Here is the method I wrote that takes an input PDF form, adds an image to a given form field, and writes it out as a different PDF.    public static void createPDFWithImageInAcroField(String pInFile, String pOutFile, String pImageFile, String pPDFField) throws Exception        {    if (pIn

Re: [iText-questions] How to copy and change text in iText

2006-09-07 Thread Néstor Boscán
Thanks Paulo That made it clear. -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Paulo Soares Enviado el: Jueves, 07 de Septiembre de 2006 08:10 a.m. Para: Post all your questions about iText here Asunto: Re: [iText-questions] How to copy and change text in

Re: [iText-questions] Cannot print PDF after filling out form.

2006-09-07 Thread Frank Starsinic
I did use a Stamper from your FAQ example on the website that added an image centered and expanded to fill a field on a PDF.I'll look closer at the API to see if I can see anything.Thanks,Frank On 9/7/06, bruno <[EMAIL PROTECTED]> wrote: Frank Starsinic wrote:> After populating a PDF with the AcroF

Re: [iText-questions] How to copy and change text in iText

2006-09-07 Thread Leonard Rosenthol
At 01:43 PM 9/7/2006, Néstor Boscán wrote: >Can somebody give me a clearer response? Changing text in a PDF is an EXTREMELY NON-TRIVIAL process for the average PDF...made even more complex if the text being changed is larger/smaller than the text it is replacing (the norm). I

Re: [iText-questions] How to set font for text using ColumnText?

2006-09-07 Thread Paulo Soares
It's done in the html: Look at me! Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent: Thursday, September 07, 2006 3:42 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] How to set font fo

Re: [iText-questions] How to copy and change text in iText

2006-09-07 Thread Paulo Soares
It's not possible with any tool unless you understand or control the way the PDF was made and even then with lots of limitations. Before you say that it can be done in Acrobat, it can't. Just look at all the reflow problems. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mail

Re: [iText-questions] How to copy and change text in iText

2006-09-07 Thread Néstor Boscán
Can somebody give me a clearer response? -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de bruno Enviado el: Jueves, 07 de Septiembre de 2006 03:36 a.m. Para: Post all your questions about iText here Asunto: Re: [iText-questions] How to copy and change text in

[iText-questions] How to set font for text using ColumnText?

2006-09-07 Thread daniel . lehtihet
Hi list, i can't seem to force a certain font and font size to be active when adding text directly to a PDF. I have tried the following code (below). Whatever i do, the font used in the pdf is always Arial 12. Please advice kind regards Daniel                                              

[iText-questions] byte[] (jpg, tiff) to byte[] (pdf)

2006-09-07 Thread vedran vedran
Hi, i need to convert some byte arrays into a new pdf byte arrays. for example, i have byte array that represents a jpg-image and i need coresponding pdf-byte array. any hints please? i have the same problem with txt, jpg... what i need is: byte[] someJpg ---> byte[] somePdf byte[] someTiff

[iText-questions] table with properties

2006-09-07 Thread santosh choudhary
Hi,I have to create a table with some given attributes (found dynamically).that's why I am using java.util.Properties properties=new java.util.Properties(); properties.put(key,value);(repeated in a loop for storing different attribute-value pairs)Table table =new Table(properties); but it is not wo

[iText-questions] Servlet and encrypt

2006-09-07 Thread Laurent YHUEL
Hello   I use itext in servlet with stream like this:   Document document = new Document(PageSize.A4, 50, 50, 70, 70); ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfWriter writer = PdfWriter.getInstance(document, baos);   And to disallow modification on this document

[iText-questions] How to create PDF documents with greek characters

2006-09-07 Thread ????????S ????G?O??S
Hi everybody, I am trying to create a PDF document using the following command Paragraph p = new Paragraph("Greek Words", FontFactory.getFont(FontFactory.HELVETICA, 18, Font.BOLDITALIC, new Color(0, 0, 255))); and I am getting instead of greek characters into the document.   Is it possible

Re: [iText-questions] How to copy and change text in iText

2006-09-07 Thread bruno
Néstor Boscán wrote: > Hi > > > > I need to open an existing PDF, copy it and in the process change some > texts inside the PDF. How do I do this with iText? > > > The answer to this question doesn't depend on iText. As a rule what you are asking is impossible (or at least considered bad tast

Re: [iText-questions] Cannot print PDF after filling out form.

2006-09-07 Thread bruno
Frank Starsinic wrote: > After populating a PDF with the AcroForm fields and then saving the > PDF, the print icon is disabled and I can no longer print the PDF. > > Any assistance is appreciated. As far as I know, this can only happen if you change the permission of the file. Did you perhaps

Re: [iText-questions] Word wrap

2006-09-07 Thread bruno
Frank Starsinic wrote: > I have a one page PDF with many fields. A few of the fields can accept > multiple lines of text. > When the form is populated, however, the text is vertically aligned in > the middle and extends beyond the end of the > of the form field boundries. Is there an iText sol

Re: [iText-questions] Font Leading

2006-09-07 Thread bruno
Jonathan Chan wrote: > Hi all, > > I'm using "arialuni.ttf" font, i set the font size to 8, then the > leading of that font will be 12. Actually, would it be possible to > change the leading to 10? Since i want to minimize the distance > between lines. Yes, Phrase, Paragraph and other object

Re: [iText-questions] RTF, table in header and footer

2006-09-07 Thread Mark Hall
On Monday 04 September 2006 04:41, Billy wrote: > I am currently upgrading my existing system from using itext v1.2 to > v1.4.4. I found there is a problem with version v1.4. hope some body can > help me. I put a table in the header and footer, but the size of the table > is always about 50-60% of

Re: [iText-questions] Label printing - How do I get text to wrap when using a template? - Please help urgent

2006-09-07 Thread bruno
Jonathan DuQueno wrote: > > I’ve tried using paragraphs and phrases instead but can't work out how > to add these to a template (to be honest I don't realy know what i'm > doing, i've only be using itext for 1/2 a day). Please help me, I have > to get this sorted today. > I know, for first time

[iText-questions] Label printing - How do I get text to wrap when using a template? - Please help urgent

2006-09-07 Thread Jonathan DuQueno
Hi   I have written some code for printing on Avery J8160 labels (A4 sheet of 21 labels 3x7), by making a label template then duplicating it in the document. However I can not figure out how to get my text in the template to wrap onto a new line. This is probably something to do with using the "Pdf

Re: [iText-questions] Cell Horizontal Alignment

2006-09-07 Thread Kharas
Solved, Thanks. Kharas wrote: > > Hi > > I'm trying to change the horizontal alignment of a table cell containing > just an Image, but the call to Cell.setHorizontalAlignment(int) has no > effect. It works fine when I add some text to the cell thought. > > Here is the code: > > import java.i