[iText-questions] Multiple PDFs generation from single jsp.

2008-01-22 Thread NILADRI BHATTACHARYYA
Hi    I have to generate multiple pdfs opened in multiple windows from one jsp page , depending upon the selection of check boxes. Can I do that from my Struts Action class ?From jsp , if i use window.open it opens the last pdf in that window.PLease help if possible.ThanksNiladri. *

Re: [iText-questions] Re moving PdfStructureTreeRoot from Tagged PDF

2008-01-22 Thread Bruno Lowagie
dayvidpow wrote: Is there a method to remove the PdfStructureTreeRoot and PdfStructureElements from an existing Tagged PDF? Basically, i am trying to import pages from an existing image-based PDF and discard any PdfStructureTreeRoot and PdfStructureElements in the page, then add the imported pag

Re: [iText-questions] (no subject)

2008-01-22 Thread Bruno Lowagie
Andrea Moreno wrote: Hi: I have a question: I have create a PDF with itext, and the finish I need change any page on PDF. How do I do? "At home I have a computer and I need to work with it. How can I do that?" That is how your question sounds. Without further information your question is eit

[iText-questions] (no subject)

2008-01-22 Thread Andrea Moreno
Hi: I have a question: I have create a PDF with itext, and the finish I need change any page on PDF. How do I do? -- Andrea - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.

[iText-questions] Re moving PdfStructureTreeRoot from Tagged PDF

2008-01-22 Thread dayvidpow
Is there a method to remove the PdfStructureTreeRoot and PdfStructureElements from an existing Tagged PDF? Basically, i am trying to import pages from an existing image-based PDF and discard any PdfStructureTreeRoot and PdfStructureElements in the page, then add the imported pages to a new PDF do

Re: [iText-questions] metadata issues

2008-01-22 Thread Leonard Rosenthol
Write the values into the modern XMP-based metadata rather than the old-style Info dictionary. Leonard On Jan 22, 2008, at 1:28 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > I am trying to populate the metadata property fields. When the > author or keywords field contain comma(,) th

[iText-questions] metadata issues

2008-01-22 Thread Vijay.Prince
I am trying to populate the metadata property fields. When the author or keywords field contain comma(,) the string is enclosed in a double quotes. The example is below. Is there a way to fix this issue? Thanks, Vijay <>--

[iText-questions] Problems with OpenType fonts

2008-01-22 Thread Rob Tanner
Hi, I am trying to use an Adobe OpenType font, KozGoStd-Bold.otf, and while the Java code generates no errors and checking properties in the resulting PDF shows that the font is embedded in the document, the actual places where I use it are blank in the output. I substituted a TrueType font,

Re: [iText-questions] "fit width" magnification

2008-01-22 Thread Paulo Soares
PdfWriter writer = ...; writer.setOpenAction(PdfAction.gotoLocalPage(1, new PdfDestination(PdfDestination.XYZ, 0, 1, 1), writer)); The second 1 is 100% magnification. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED]

Re: [iText-questions] Rather complex shipping slip

2008-01-22 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Bruno Waes > Sent: Tuesday, January 22, 2008 4:51 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Rather complex shipping slip > > specs: (only in nl or fr, sor

Re: [iText-questions] Changing default values for PdfPTables andPdfPCells

2008-01-22 Thread Rob Tanner
That probably is the best approach. I'm generating a faculty, staff and student directory that will get updated nightly. I have everything mostly the way I want it, but now I'm going through the code to make cleaner and maintainable. iText is one GREAT tool. -- Rob Bruno Lowagie said the fol

Re: [iText-questions] Rather complex shipping slip

2008-01-22 Thread Bruno Waes
On Jan 22, 2008 2:17 PM, Bruno Lowagie <[EMAIL PROTECTED]> wrote: > You are using PdfPTable.writeSelectedRows, which is OK, but please > read on to Chapter 7 and have a look at the following extra code sample: > > http://itext.ugent.be/itext-in-action/examples/chapterX/TablesInColumns.java > > htt

Re: [iText-questions] DocuementException withembeddedarial.ttfinJBOSS under linux

2008-01-22 Thread mtomlins
I've been accessing it via ClassLoader getResource and passing the String file name to BaseFont.createFont--the way the examples in the book work... the file IS being found...(I test that first)...is there another way to create a font? I didn't see one. Max - Original Message - From: "Pa

[iText-questions] "fit width" magnification

2008-01-22 Thread Vijay.Prince
Is it possible to modify magnification to "Fit Width" in the viewer preferences. I have not seen any options for magnification in PdfViewerPreferences class. Thanks, Vijay - This SF.net email is sponsored by: Microsoft Def

Re: [iText-questions] DocuementException with embeddedarial.ttfinJBOSS under linux

2008-01-22 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of mtomlins > Sent: Tuesday, January 22, 2008 4:00 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] DocuementException with > embeddedarial.ttfinJBOSS under linux >

Re: [iText-questions] DocuementException with embedded arial.ttfinJBOSS under linux

2008-01-22 Thread mtomlins
It's not permissions. they're set to all 'read'. It's kept in the web-inf dir as well. The file loads OK; it's seems to be when iText tries to load it as a BaseFont. I believe there must be a missing component. BTW, I can't post to the forum directly even though I have set up twice - I get bad

Re: [iText-questions] Difference between Table and PdfPTable

2008-01-22 Thread Bruno Lowagie
morsi wrote: to alternate color between line into my tables, i use the property BackgroundColor (SetBackgroundColor) for a PdfCell ! So you were misleading us by saying it worked with Table but not with PdfPTable ;) Your question had nothing to do with Table. When i delete this property fro

Re: [iText-questions] Problem: Stamper and Annotatio n for embeding a SWF doen´t work right

2008-01-22 Thread privat
Thank you. I was so stupid. Now it work fine. Markus - Original Message - From: "Bruno Lowagie" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Tuesday, January 22, 2008 3:40 PM Subject: Re: [iText-questions] Problem: Stamper and Annotation for embeding a SWF d

Re: [iText-questions] Difference between Table and PdfPTable

2008-01-22 Thread morsi
You have right ! to alternate color between line into my tables, i use the property BackgroundColor (SetBackgroundColor) for a PdfCell ! When i delete this property from my PdfPTables, the watermark appear covering the table ! I dont find how to make a cell transparent ! i need BackgroundColor

Re: [iText-questions] Problem: Stamper and Annotatio n for embeding a SWF doen´t work right

2008-01-22 Thread privat
Hello Mr. Lowagie, Ok. I've done what you have told me. I have placed the PDF and the Demo1.swf here: http://www.samea.de/jan/demo1.swf http://www.samea.de/jan/z123.pdf I'm using the Adobe Acrobat 8.1.1. German. Whatelse can I do to get your help? Thank you Markus - Original Message ---

Re: [iText-questions] Difference between Table and PdfPTable

2008-01-22 Thread Bruno Lowagie
This may be a stupid counter question, but are you sure your PdfPTable isn't covering the watermark in some way (for instance: with a colored rectangle that is not transparent)? Because in that case the watermark is added, but covered by something else (and therefore invisible). br, Bruno smime.

Re: [iText-questions] Difference between Table and PdfPTable

2008-01-22 Thread morsi
ok, i'm sorry ! thank you ! Bruno Lowagie (iText) wrote: > > morsi wrote: >> thank you bruno, >> i'm sorry but i really have a problem ! > Don't use onStartPage, use onEndPage. > Get rid of the opacity stuff, if you read the book, > you'll understand that the example is about more > than just

Re: [iText-questions] Rather complex shipping slip

2008-01-22 Thread Bruno Lowagie
Bruno Waes wrote: I am working on creating a shipping slip in iText. Each A4 page consists of 3 areas, to make it easy i ll refer to it as the top, the middle and the bottom 1/3 of the page. OK. for the middle area i have this code (thanks to chapter 6 in the book): You are using PdfPTable.w

[iText-questions] Rather complex shipping slip

2008-01-22 Thread Bruno Waes
I am working on creating a shipping slip in iText. Each A4 page consists of 3 areas, to make it easy i ll refer to it as the top, the middle and the bottom 1/3 of the page. 1) top area : The top 1/3 area contains a company logo, orderid, dates, ... I have created documents with itext before and i

Re: [iText-questions] Problem: Stamper and Annotatio n for embeding a SWF doen´t work right

2008-01-22 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: import java.io.BufferedReader; I think you misunderstood my remark. If Adobe's PDF Technical Standards Evangelist Leonard Rosenthol sees this mail, he's not going to read it, because it contains nothing but source code. Please don't expect him to run that code. However,

Re: [iText-questions] Problem: Stamper and Annotatio n for embeding a SWF doen´t work right

2008-01-22 Thread privat
import java.io.BufferedReader; import java.io.FileOutputStream; import java.io.FileReader; import com.lowagie.text.Annotation; import com.lowagie.text.Document; import com.lowagie.text.Element; import com.lowagie.text.Image; import com.lowagie.text.PageSize; import com.lowagie.text.Phrase;

Re: [iText-questions] Problem: Stamper and Annotatio n for embeding a SWF doen´t work right

2008-01-22 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: Does anybody have an idea why this happens? As Paulo would say: "the swf is not showing up in my crystal ball either." Meaning: you think you have explained your problem, but actually you haven't given anyone any material to work with. This is NOT an invitation to send

Re: [iText-questions] Typo in exception message (com.lowagie.text.Section#add)

2008-01-22 Thread Bruno Lowagie
Alexis Pigeon wrote: Hi Bruno or anyone else who has commit credentials over the source code! OK, done in SVN. It was already corrected on one place, but not on the other. br, Bruno smime.p7s Description: S/MIME Cryptographic Signature --

Re: [iText-questions] Problem: Stamper and Annotatio n for embeding a SWF doen´t work right

2008-01-22 Thread privat
Hello, I'm still searching for the couse of the problem, that the acrobat alert for the multimedia content, but nothing is shown. It seems that the swf get´s hidden or something. Does anybody have an idea why this happens? Thank you. Markus - Original Message - From: <[EMAIL PROTECTED

Re: [iText-questions] Difference between Table and PdfPTable

2008-01-22 Thread Bruno Lowagie
morsi wrote: thank you bruno, i'm sorry but i really have a problem ! Don't use onStartPage, use onEndPage. Get rid of the opacity stuff, if you read the book, you'll understand that the example is about more than just adding a watermark under existing content; it's about adding a transparent wa

[iText-questions] Typo in exception message (com.lowagie.text.Section#add)

2008-01-22 Thread Alexis Pigeon
Hi Bruno or anyone else who has commit credentials over the source code! Just found a typo in the exception message thrown by both methods - com.lowagie.text.Section#add(int, Object) - com.lowagie.text.Section#add(Object) When an Element can't be added to a Section because of its class, the exce

Re: [iText-questions] Difference between Table and PdfPTable

2008-01-22 Thread morsi
thank you bruno, i'm sorry but i really have a problem ! i dont understund, the watermark dont appear under PdfPtable, I think that i must use constant PdfPtable.BASECANVAS but i dont know how to do this,i see examples on link you give me but i m newbie in java code :( i change my code like thi

Re: [iText-questions] DocuementException with embedded arial.ttf inJBOSS under linux

2008-01-22 Thread Paulo Soares
That looks like an access error to the file. Check your permissions. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Max Tomlinson > Sent: Tuesday, January 22, 2008 5:39 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-que

[iText-questions] Document Exception trying to embed true type font on JBoss under Linux

2008-01-22 Thread Max Tomlinson
Hi all- I'm trying to embed arial.ttf as my BaseFont for a PDF report program. The examples from the book work fine under windows. In JBoss under linux (using JDK 1.5) I get a DocumentException: Table 'name' does not exist in /opt/jboss/jboss-4.0.5.GA/server/default/deploy/cps.ear/cps.war/WEB-I

Re: [iText-questions] problem in pdf

2008-01-22 Thread sudip mondal
i use you code right now. and it working . thanks you -- View this message in context: http://www.nabble.com/problem-in-pdf-tp14996105p15013042.html Sent from the iText - General mailing list archive at Nabble.com. - This

[iText-questions] DocuementException with embedded arial.ttf in JBOSS under linux

2008-01-22 Thread Max Tomlinson
Hi all- I'm trying to embed arial.ttf as my BaseFont for a PDF report program. The examples from the book work fine under windows. In JBoss under linux (using JDK 1.5) I get a DocumentException: Table 'name' does not exist in /opt/jboss/jboss-4.0.5.GA/server/default/deploy/cps.ear/cps.war/WEB-I

Re: [iText-questions] Changing default values for PdfPTables andPdfPCells

2008-01-22 Thread Bruno Lowagie
Rob Tanner wrote: > Hi, > > In the current document I'm working on, I use a lot of tables for > positioning purposes and having to set border and padding values to "0" > for every one that I instantiate. How can I (can I even?) change the > default values so that I only have to set them when I

Re: [iText-questions] Difference between Table and PdfPTable

2008-01-22 Thread Bruno Lowagie
morsi wrote: Dim Mywatermark As New Watermark(Image.GetInstance(Config.RepertoireApplication & "RessourcesEtats\demo.png"), 10, 10) _Doc.Add(Mywatermark) Watermark has been removed from iText for quite a while now. You must be using an old version of iTextSharp. I didn't find on documentatio