Re: [iText-questions] Arabic text display problem.

2007-12-06 Thread Bruno Lowagie
Xu ying chu wrote: ByteArrayOutputStream out = new ByteArrayOutputStream(); Document document = new Document(PageSize.A4, 50, 50, 50, 50); Font fontText = new Font(FontFactory.getFont(FontFactory.HELVETICA)); Paragraph contentPar = new Paragraph(content,fontText); I think maybe "HEL

Re: [iText-questions] Arabic text display problem.

2007-12-06 Thread Xu ying chu
ByteArrayOutputStream out = new ByteArrayOutputStream(); Document document = new Document(PageSize.A4, 50, 50, 50, 50); Font fontText = new Font(FontFactory.getFont(FontFactory.HELVETICA )); Paragraph contentPar = new Paragraph(content,fontText); I think maybe "HELVETICA" is not right. m

Re: [iText-questions] Vertical alignment of multiline form fields

2007-12-06 Thread Bruno Lowagie
Mikael Andreasen wrote: However, when I add data to the form using iTextSharp, the (vertical) alignment of multiline text fields shows up wrong (top aligned) in the resulting document, whichever viewer is used. And when you click and change the field the alignment is correct again? br, Bruno

Re: [iText-questions] Arabic text display problem.

2007-12-06 Thread Bruno Lowagie
Xu ying chu wrote: Hi All, I generate a pdf document by java application, the document can display english letters fine, but can't display Arabic letters. Which font are you using. Do you have the settings right. I don't know whether the itextasia.jar can support Arablic, and which font a

Re: [iText-questions] run register_form1.java from JSP error

2007-12-06 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: Thanks. Do you mean I have a old itext.jar in WEBDEV? Since I can ran RegisterForm1.java through main() in BSC, it should be no old itext.jar file in BSC. Correct? I try to remove all the itext.jar file. Please don't reply to a personal address. Only reply to the mail

[iText-questions] Arabic text display problem.

2007-12-06 Thread Xu ying chu
Hi All, I generate a pdf document by java application, the document can display english letters fine, but can't display Arabic letters. I don't know whether the itextasia.jar can support Arablic, and which font and encoding is right? -- Best Regards Ying-chu Xu Skype:radondo2000

[iText-questions] Vertical alignment of multiline form fields

2007-12-06 Thread Mikael Andreasen
Hiya, In reference to the issue raised here: http://itext.ugent.be/library/question.php?id=54 It would seem that this is in fact an issue related to iText; For instance if I create a pdf form using Acrobat, the alignment shows up fine when the document is viewed in Reader v8.1. However, whe

[iText-questions] Sign a PDF

2007-12-06 Thread Web Specialist
Hi all. I found a example about sign a PDF using iText. That code looks like this: KeyStore ks = KeyStore.getInstance("pkcs12"); ks.load(new FileInputStream("my_private_key.pfx"), "my_password".toCharArray()); String alias = (String)ks.aliases().nextElement(); PrivateKey key = (PrivateKey)ks.getKe

Re: [iText-questions] White text on a black background

2007-12-06 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of beppecosta > Sent: Thursday, December 06, 2007 5:21 PM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] White text on a black background > > > Hi Paulo, > > at pres

Re: [iText-questions] White text on a black background

2007-12-06 Thread beppecosta
Hi Paulo, at present to the "overContent" I add not only text lines, but also a box, a barcode and 2 images at a variable position. I think that a chunk can only be added to a document and not to a overContent. Shall I mix over.addXxxx with document.add ? I've also tried to draw a rectangle a

Re: [iText-questions] NoSuchMethodError with XML2Bookmarks

2007-12-06 Thread Xavier Le Vourch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Similar commands seem to work for me when using the latest toolbox code from svn. Note that the iText.jar file in the lib toolbox directory has been compiled from the jdk15 branch and has the version "iText-jdk15 2.0.7". You can see it using "jav

Re: [iText-questions] Background image (ex watermark) multiple pages

2007-12-06 Thread Paulo Soares
See http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.php . Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of <-Gio-> > Sent: Thursday, December 06, 2007 4:06 PM > To: itext-questions@lists.sourceforge.net > Subject: [iTe

Re: [iText-questions] limitcheck gsave error

2007-12-06 Thread Gery D. Dorazio
ns mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/ __ NOD32 2706 (20071206) Information __ This message was c

[iText-questions] Background image (ex watermark) multiple pages

2007-12-06 Thread <-Gio->
Hi, I'd like to know if someone knows how to add a background image while creating a pdf with Pdfwriter; this pdf is more or less 1000 pages so it's impossible to add to every single page the image because the pdf would be too heavy. Is there a way to set something like a watermark only one time

Re: [iText-questions] iText ant build

2007-12-06 Thread Xavier Le Vourch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Howard Shank wrote: > Xavier, > > What should the @since version be at this time? > Use "@since 2.0.8", as it's the next scheduled version. Also, when you build from the current svn code, you'll see that the version id is "2.0.8-SNAPSHOT" to make su

Re: [iText-questions] limitcheck gsave error

2007-12-06 Thread Fabrizio Accatino
Hello, excuse me but I don't understand. Have you read the value of PdfCheckXObjectLevels.MaxLevel ? What is its value in the files you created ? Fabrizio On Dec 6, 2007 4:57 PM, Gery D. Dorazio <[EMAIL PROTECTED]> wrote: > > > Hi Fabrizio, > > Thank you for your checker code. Here is a li

[iText-questions] NoSuchMethodError with XML2Bookmarks

2007-12-06 Thread Michael Goerz
Hi, I'm having a problem with using the XML2Bookmarks tool from the command line. I was running java -cp "/home/goerz/bin/iText/iText.jar" com.lowagie.tools.plugins.XML2Bookmarks bookmarks.xml in.pdf out.pdf and got the following error: Exception in thread "main" java.lang.NoSuchMethodError: co

Re: [iText-questions] limitcheck gsave error

2007-12-06 Thread Gery D. Dorazio
Hi Fabrizio, Thank you for your checker code. Here is a line or two I added to see the messages: for (int i = 0; i < chk.Messages.Length; i++) Console.WriteLine(chk.Messages[i]); It shows the generated PDF having 2 levels and the one from CutePDF with 1 level. But the telling story is the m

Re: [iText-questions] how to hide button in pdfform

2007-12-06 Thread Leonard Rosenthol
Yes, all documentation is on Adobe's website. Try the PDF Development center at Leonard On Dec 6, 2007, at 9:30 AM, Xu ying chu wrote: where can i get the api documents, in adobe website or somewhere ? can you give me a address? thanks in advanced On Dec

Re: [iText-questions] White text on a black background

2007-12-06 Thread Leonard Rosenthol
While "white on black" looks fine on screen, it causes havok on professional printers - and so you may need to also investigate the use of proper overprinting controls if you expect to have this document output profesionally. Leonard On Dec 6, 2007, at 10:31 AM, Paulo Soares wrote: > You c

Re: [iText-questions] How to change a PDF but preserve the rights

2007-12-06 Thread Leonard Rosenthol
Trying to modify a Reader Enabled XFA-based PDF, without breaking the enablement is near impossible I don't recommend it. Leonard On Dec 6, 2007, at 7:01 AM, Sérgio Oliveira wrote: > Hello, > > I´m also trying to achieve the same: change somes aspects of an > extended PDF file without

Re: [iText-questions] run register_form1.java from JSP error

2007-12-06 Thread Bruno Lowagie
Sarah1 wrote: why I got this error? Please help. You have a configuration problem. Configuration problems can't be solved remotely. You probably have an old iText jar somewhere in your CLASSPATH, but we don't have a crystal ball, we can only guess. br, Bruno smime.p7s Description: S/MIME Cryp

Re: [iText-questions] Problem in setting save filename with inlinebrowser adobe reader

2007-12-06 Thread Bruno Lowagie
Namdeo, D. - SPLXE wrote: When I click ‘Save’ button after the pdf is generated, the file name I get is: Can you reproduce this problem on every browser/reader combination or is the problem limited to one particular browser/reader version? I have never experienced the problem you're describing,

Re: [iText-questions] White text on a black background

2007-12-06 Thread Paulo Soares
You can set the text and background color in a Chunk. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of beppecosta > Sent: Thursday, December 06, 2007 2:27 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] White tex

Re: [iText-questions] fill out a pdf form

2007-12-06 Thread Bich
I think that I know where is the problem, correct me if I'm wrong String name = xfaForm.findFieldName(field.getName(), fields); String shortName = XfaForm.Xml2Som.getShortName(name); fields.setField(shortName, field.get(value

Re: [iText-questions] fill out a pdf form

2007-12-06 Thread Paulo Soares
You probably need: setfield("inc[2]", "1") Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Bich > Sent: Thursday, December 06, 2007 2:23 PM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] fill out a pdf form

Re: [iText-questions] fill out a pdf form

2007-12-06 Thread Bich
Thank you for your reply. Well, I'm expecting to see the checkbox inc[2] checked if I do setfield("inc", "3"). But it is not the case. It only works with inc[0] (setField("inc", 1)), meaning the checkbox inc[0] is checked. Paulo Soares wrote: > > > >> -Original Message- >> From: [

[iText-questions] run register_form1.java from JSP error

2007-12-06 Thread Sarah1
Hi, I'm using Jbuilder, Tomcat4.1. I built a project BSC which used to run your example from the book chapter16/RegisterForm1.java. I run it through the main() method, everything is good, and register_form1.pdf is beautiful. Then I want to run RegisterForm1.java from JSP. I created a test.jsp

Re: [iText-questions] how to hide button in pdfform

2007-12-06 Thread Xu ying chu
where can i get the api documents, in adobe website or somewhere ? can you give me a address? thanks in advanced On Dec 6, 2007 7:55 PM, Leonard Rosenthol <[EMAIL PROTECTED]> wrote: > That JavaScript is for classic AcroForms - it doesn't work with LiveCycle > forms. You need to be using LiveCycl

[iText-questions] White text on a black background

2007-12-06 Thread beppecosta
I'm currently adding some lines of text on top of an existing pdf with "over.showTextAligned". I'm asked to add a special word in the middle of the first line that should appear as white text on a black background. How can I do it ? Thanks. Giuseppe. -- View this message in context: http://w

[iText-questions] Naming conventions

2007-12-06 Thread Howard Shank
What are the guidelines for creating package names? For example, how should names like these be formatted? AssociatedCharacterProperties MacintoshEditionManagerPublisherObjects Read-OnlyPasswordProtection Thanks Howard _

Re: [iText-questions] New PdfCopy edit functionality

2007-12-06 Thread James Beard
I tried the example given for createPageStamp(), but found that when I added back the PageStamp into the PdfCopy, it then lost the bookmarks that had originally been in the document - i.e. just as happens when using PdfWriter.getImportedPage(). Is it not possible to preserve the former bookmarks an

Re: [iText-questions] iText ant build

2007-12-06 Thread Howard Shank
Xavier, What should the @since version be at this time? Thanks Howard Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8

Re: [iText-questions] RTF Parser update

2007-12-06 Thread Howard Shank
Additionally, I am working on removing the middle layer RtfCtrlWordBase_* classes. That will remove about 50% of the classes. Howard - Original Message From: Paulo Soares <[EMAIL PROTECTED]> To: Post all your questions about iText here Sent: Thursday, December 6, 2007 5:34:52 AM Subje

Re: [iText-questions] How to change a PDF but preserve the rights

2007-12-06 Thread S�rgio Oliveira
Hello, I´m also trying to achieve the same: change somes aspects of an extended PDF file without breaking extended functionality. The aspects I´m trying to change using iText is the data section and the scripts section of the xfa DOM. Using the code below, I´m able to change both but: #

Re: [iText-questions] how to hide button in pdfform

2007-12-06 Thread Leonard Rosenthol
That JavaScript is for classic AcroForms - it doesn't work with LiveCycle forms. You need to be using LiveCycle JavaScript APIs... Leonard On Dec 6, 2007, at 3:12 AM, Xu ying chu wrote: I have writen javascirpt, but the script maybe not work. this.getField("Button1").display=1; when

Re: [iText-questions] New PdfCopy edit functionality

2007-12-06 Thread Paulo Soares
See http://itext.ugent.be/library/api/com/lowagie/text/pdf/PdfCopy.html#crea tePageStamp(com.lowagie.text.pdf.PdfImportedPage). Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of James Beard > Sent: Thursday, December 06, 2007 8:35 AM > To:

Re: [iText-questions] fill out a pdf form

2007-12-06 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Bich > Sent: Thursday, December 06, 2007 5:24 AM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] fill out a pdf form > > > Hi, > > I have a XFA form and I use iText

Re: [iText-questions] split a encrypted pdf

2007-12-06 Thread Paulo Soares
You must have the owner password to work with an encrypted PDF. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of joe koch > Sent: Thursday, December 06, 2007 9:51 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions]

Re: [iText-questions] RTF Parser update

2007-12-06 Thread Paulo Soares
I guess that splitting the RTF parser into another jar is the solution. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Howard Shank > Sent: Wednesday, December 05, 2007 7:04 PM > To: Post all your questions about iText here > Subject: Re

Re: [iText-questions] Problem in setting save filename with inlinebrowser adobe reader

2007-12-06 Thread Namdeo, D. - SPLXE
Thanks for your reply. But here my problem is a bit different. When I click 'Save' button after the pdf is generated, the file name I get is: http___localhost_8080_abc_XYZ_PdfPrint_my_key=feee2d98e96ae3059fce2ae489 ef01&printA=false&printB=false&printC=false&printD=true&m_page=new_print pd

Re: [iText-questions] [iText] rtf wrong color border

2007-12-06 Thread so
Hi Howard, I don't know if you see but you also missed changing the substring lenght of the two lines above. Regards, So Howard Shank wrote: > > Yes, I'm sorry. I missed changing the substring length. > > Howard > > - Original Message > From: so <[EMAIL PROTECTED]> > To: itext-ques

[iText-questions] split a encrypted pdf

2007-12-06 Thread joe koch
hello i found examples to split a pdf into single site's. but there is a problem, when the pdf is encrypted (but i can it open to read), this seams not to be possible with itext. is there really no way to that? maybe first do a pdf copy to remove the restrictions or open it in a kind of read o

[iText-questions] New PdfCopy edit functionality

2007-12-06 Thread James Beard
I wanted to ask what the details are of the new (since 2.0.5) abilities to add information to a file using PdfCopy. Is it possible to use PdfCopy.getDirectContent() to edit the PdfContentByte directly? I am wanting to do this if possible, but cannot seem to get it to work (just seems to have no eff

Re: [iText-questions] how to hide button in pdfform

2007-12-06 Thread Xu ying chu
I have writen javascirpt, but the script maybe not work. this.getField("Button1").display=1; when I preview pdf, the button not be hidden. whether the js is not right? and I download a example pdf for show/hide field, I think the js should be right. And I develope with lifecycle 8. On 12/5

Re: [iText-questions] limitcheck gsave error

2007-12-06 Thread Fabrizio Accatino
Post source code. I think it was usefull to understand how you build your pdf (I haven't undestood). AFAIK, CutePdf is based on Ghostscript, and AFAIK Ghostscript try to reduce the level of nested xobject in pdf files. This explains why pdf printed on CutePdf and then printed on a PS printer does

Re: [iText-questions] fill out a pdf form

2007-12-06 Thread Bich
Hi, I have a XFA form and I use iText to fill the form. I have checkboxes in my form, and it does not seem to fill properly. topmostSubform[0].Page1[0].inc[2]: Checkbox topmostSubform[0].Page1[0].inc[1]: Checkbox topmostSubform[0].Page1[0].inc[0]: Checkbox Let's say inc[0] is set to value 1, i