Re: [iText-questions] Soft-Mask Dictionaries

2006-04-26 Thread Paulo Soares
Post a PDF with a soft mask and I'll see what I can do. Paulo - Original Message - From: "Michael J. Mueller" <[EMAIL PROTECTED]> To: Sent: Wednesday, April 26, 2006 9:39 PM Subject: Re: [iText-questions] Soft-Mask Dictionaries Hello Paulo, i looked through the iText examples again

[iText-questions] How to check if a PDF is password-protected?

2006-04-26 Thread Zhi Ren
Hi, Does anyone know: with iText how to check if a PDF is password-protected ? Thanks! Cheng __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -

Re: [iText-questions] Soft-Mask Dictionaries

2006-04-26 Thread Michael J. Mueller
Hello Paulo, i looked through the iText examples again, but could not find out how to do this. I also do not have any idea how to insert a transparency group XObject as a stream into the Soft-Mask dictionary. Is it possible to do this with the PdfTransparenceGroup class? Can you please give an ex

RE: AW: [iText-questions] splitting a pdf file

2006-04-26 Thread Alan
Hi Bruno, Good news about the book... Does "reader.SelectPages()" retain the Layers on a page? Can I add new graphics to an existing Layer? Cheers AlanK -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bruno Sent: Wednesday, 26 April 2006 10:46 PM To: i

Re: [iText-questions] Soft-Mask Dictionaries

2006-04-26 Thread Paulo Soares
Class PdfGState is a dictionary, you can add any keys to it including the SMask key. To select a graphic state call PdfContentByte.setGState(). Paulo - Original Message - From: "Michael J. Mueller" <[EMAIL PROTECTED]> To: Sent: Wednesday, April 26, 2006 7:46 PM Subject: Re: [iText-qu

Re: [iText-questions] Soft-Mask Dictionaries

2006-04-26 Thread Leonard Rosenthol
At 02:46 PM 4/26/2006, Michael J. Mueller wrote: thanks for your reply. I did some reading in the PDF standard. I'm pretty sure that a Soft-Mask Dictionary can only be selected into the graphics state with the "gs" operator. Correct. I looked into the graphics state class in iText (

Re: [iText-questions] Soft-Mask Dictionaries

2006-04-26 Thread Michael J. Mueller
Hello Paulo, thanks for your reply. I did some reading in the PDF standard. I'm pretty sure that a Soft-Mask Dictionary can only be selected into the graphics state with the "gs" operator. I looked into the graphics state class in iText (I forgot the name of the class). This class does not suppor

Re: [iText-questions] Clarification of usage

2006-04-26 Thread bruno
Rakesh Patel wrote: Perhaps a better approach would be: 1. Convert the existing pdf application form into an AcroForm (quite easy with the right software?). PDF isn't an application. It's a document. If you use Acrobat, make sure to add the fields as annotations, not as XFA with LiveCycle. 2

Re: [iText-questions] Issues printing with Brother HL-7050

2006-04-26 Thread Leonard Rosenthol
At 10:34 AM 4/26/2006, Daniel Farinha wrote: when printing iText generated PDFs on a Brother HL-7050 printer, I get stuff like in the attachment. Font isn't embedded and so the printer is doing substitution. Leonard

Re: [iText-questions] Clarification of usage

2006-04-26 Thread Rakesh Patel
Hi Paulo, My initial idea was to create this pdf programmatically and place in the dynamic data as i went along. However, this process of building a pdf is quite tedious. I know little about fonts, points, rgb, etc. Perhaps a better approach would be: 1. Convert the existing pdf applicatio

[iText-questions] Issues printing with Brother HL-7050

2006-04-26 Thread Daniel Farinha
This is not necessarily an iText issue but... when printing iText generated PDFs on a Brother HL-7050 printer, I get stuff like in the attachment. The attachment is from a printout of: http://itextdocs.lowagie.com/tutorial/objects/Paragraphs.pdf Other PDFs (non iText generated) don't seem to

Re: [iText-questions] Confusing classes

2006-04-26 Thread bruno
Rakesh Patel wrote: Hi, so far I have been using what i thought was non-specific classes for document generation and then later defining that the doc should be a pdf. From a design perspective this seemed cleaner. But not if you want high performance for PDFs with 10,000+ pages. However, n

[iText-questions] Confusing classes

2006-04-26 Thread Rakesh Patel
Hi, so far I have been using what i thought was non-specific classes for document generation and then later defining that the doc should be a pdf. From a design perspective this seemed cleaner. However, not all the methods are available at this level. Specifically I cannot set the padding on

RE: [iText-questions] Clarification of usage

2006-04-26 Thread Paulo Soares
The problem is not putting the text, the problem is to know where to put the text. If you by some other way know, as coordinates XY, where the text is to be placed, you don't need AcroForms. Let's say you have a PDF that will be used as template, where you're going to place some text like name, add

Re: [iText-questions] Clarification of usage

2006-04-26 Thread bruno
Rakesh Patel wrote: does that mean its not viable? How would i work out where to put the text in a plain pdf? You define the coordinates (by default 72 user units = 1 inch). It's completely up to you to know where you want to put the text. br, Bruno --

Re: [iText-questions] Clarification of usage

2006-04-26 Thread Rakesh Patel
does that mean its not viable? How would i work out where to put the text in a plain pdf? Paulo Soares wrote: It will work with any PDF but the advantage of AcroForms is knowing were to write the new text. Paulo - Original Message - From: "rakesh mailgroups" <[EMAIL PROTECTED]> To

Re: [iText-questions] PDF to Image converter

2006-04-26 Thread Leonard Rosenthol
At 02:48 AM 4/26/2006, bruno wrote: Hi all, has anyone done this before? I want to convert a PDF document into an image format (jpg, gif, or tiff). That's not the core business of iText; use something like JPedal instead. Or look at commercial solutions such as PSServices, Snowbound, e

Re: AW: [iText-questions] splitting a pdf file

2006-04-26 Thread bruno
Beate Niendorf wrote: Have a look at my "getPage"-Method. Indeed, that's a third option; however in this case, you certainly lose all interactive features that are in the page. It all depends on what you expect from the result. If you only need one page without the bookmarks and annotations, t

Re: [iText-questions] splitting a pdf file

2006-04-26 Thread bruno
Paul wrote: Hi, is it possible to re-open a pdf file as save it in different parts ? In my case, I will produce a full pdf document but in some cases, I would like to re-open it and save only a few number of pages in a new pdf file. Yes, this is possible. When you say re-open, you should th

AW: [iText-questions] splitting a pdf file

2006-04-26 Thread Beate Niendorf
> is it possible to re-open a pdf file as save it in different parts ? > In my cas, I will produce a full pdf document but in some > cases, I would like to re-open it and save only a few number > of pages in a new pdf file. Hi Paul, Have a look at my "getPage"-Method. Maybe it's helpfull for yo

[iText-questions] splitting a pdf file

2006-04-26 Thread Paul
Hi, is it possible to re-open a pdf file as save it in different parts ? In my cas, I will produce a full pdf document but in some cases, I would like to re-open it and save only a few number of pages in a new pdf file. thanks a lot for your help -

Re: AW: [iText-questions] Sending pdf as inputStream

2006-04-26 Thread bruno
Beate Niendorf wrote: I'm looking forward to the book Me too; see http://lowagie.com/maand.php?year=2006&month=4#14 I really didn't know the final review process had started already. I informed with some of the people who reviewed the 1/3 and 2/3 version, but they didn't receive an invitation

AW: [iText-questions] Sending pdf as inputStream

2006-04-26 Thread Beate Niendorf
> >- Add an action: PdfAction ac = > PdfAction.createSubmitForm(url, null, > >0); > > > > > Try createSubmitForm(url, null, SUBMIT_PDF); The explanation > will be in chapter 15 of the book ;-) br, Bruno Thank you very much! It worked fine :) I'm looking forward to the book and cross my fing

RE: [iText-questions] truncating text in table cell automatically

2006-04-26 Thread Kalra, Ashwani
Thanks Bruno, I could find out in mailing list. Sorry for reposting. I am generating the pdf from templates and I think I should use PDFPTable -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bruno Sent: Wednesday, April 26, 2006 3:19 PM To: itext-questio

Re: [iText-questions] truncating text in table cell automatically

2006-04-26 Thread bruno
Kalra, Ashwani wrote: Hi, Is there any feature in PdfCell(like nowrap, fixed height). No, nowrap is only for HTML tables. I am not working with PdfPCell Which table api should I use. PdfTable or PdfPTable? PdfTable is not for external use. It's a helper class for Table. You should use P

RE: [iText-questions] truncating text in table cell automatically

2006-04-26 Thread Kalra, Ashwani
Hi, Is there any feature in PdfCell(like nowrap, fixed height). I am not working with PdfPCell Which table api should I use. PdfTable or PdfPTable? Thanks Ashwani -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bruno Sent: Wednesday, April 26, 2006 1:3

Re: [iText-questions] Sending pdf as inputStream

2006-04-26 Thread bruno
Beate Niendorf wrote: - Add an action: PdfAction ac = PdfAction.createSubmitForm(url, null, 0); Try createSubmitForm(url, null, SUBMIT_PDF); The explanation will be in chapter 15 of the book ;-) br, Bruno --- Using Tomcat but need to do m

[iText-questions] Sending pdf as inputStream

2006-04-26 Thread Beate Niendorf
Hi there, I would like to know wether it's possible to send a Pdf as InputStream. This is what I'm doing now: - Create a Pdf with a form - Add a button - Add an action: PdfAction ac = PdfAction.createSubmitForm(url, null, 0); - if the user clicks the button the Pdf should be in the requests Inpu

Re: [iText-questions] truncating text in table cell automatically

2006-04-26 Thread bruno
Kalra, Ashwani wrote: Hi, Is there a way in which if text size is greater than table cell width, its truncated automatically. Use setFixedHeight to achieve this; see http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg08078.html br, Bruno -

[iText-questions] truncating text in table cell automatically

2006-04-26 Thread Kalra, Ashwani
Hi, Is there a way  in which if text size is greater than table cell width, its truncated automatically.   __ Regards Ashwani Kalra   This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for