[iText-questions] Transparency with Graphics2D

2007-03-13 Thread Jim Rootham
Hi I am trying to create pdf's with transparency created with the following code: Graphics2D result = (Graphics2D)graphics.create(); AlphaComposite composite = alphaComposite.getInstance(AlphaComposite.SRC_OVER, model.getTransparency()); result.setComposite(composite); where model.getTranspar

Re: [iText-questions] Supressing Creation/Mod Date and IDfrom output

2007-03-13 Thread Paulo Soares
Reading the javadoc for PdfStamper.setMoreInfo() would have helped. To remove a key: HashMap info = (HashMap)reader.getInfo(); info.put("CreationDate", null); info.put("ModDate", null); info.put("Author", "Bruno Lowagie"); stamp.setMoreInfo(info); Paulo - Original Message - From: "Davi

Re: [iText-questions] Out of Memory with Large Image

2007-03-13 Thread Paulo Soares
This is a problem that sooner or later will have to be addressed. Currently the whole image is stored in a byte array that is stored in Image. It's not terribly difficult to support a temp file but the big question is when to delete it. Web servers may also have problems with temp files. I'll th

[iText-questions] Problems with page manipulation

2007-03-13 Thread Pablo Rodrigo
I am generating a PDF from a Xml file using iTextsharp. 1) is not working. The pdf is generated on Portrait layout. Any ideia ? 2) Is it possible define one Portrait page and another Landscape using Xml to Pdf solution ? Something like: ... ... ... ... 3) Can I define Header & Footer to

Re: [iText-questions] File ID entry problem occurred when using XMP-related functions.

2007-03-13 Thread Leonard Rosenthol
Hmmm... I am surprised that you aren't getting flagged for the need to have an OutputIntent present. Leonard On Mar 13, 2007, at 5:25 PM, Seung Hyun Park wrote: > Leonard Rosenthol pdfsages.com> writes: > >> >> On Mar 12, 2007, at 9:43 AM, SeungHyun Park wrote: >>> I have started my project

Re: [iText-questions] File ID entry problem occurred when u sing XMP-related functions.

2007-03-13 Thread Seung Hyun Park
Leonard Rosenthol pdfsages.com> writes: > > On Mar 12, 2007, at 9:43 AM, SeungHyun Park wrote: > > I have started my project right now. > > > > I have no idea about color problem. I do not also know whether > > color problem can be fixed by iText. > > > > Color can NOT be corrected by i

[iText-questions] Out of Memory with Large Image

2007-03-13 Thread Nan Null
I want to be able to process a large tiff image (50 M). The processing steps include retrieving the number of pages and split out page by page into PDF. The problem is that I see ByteArrayOutputStream is used in many places, including the RandomAccessFileOrArray class. This resulted in out of

Re: [iText-questions] Supressing Creation/Mod Date and ID from output

2007-03-13 Thread David Kavanagh
Bruno, I took your AddWaterMarkPageNumbers.java and stripped it down. It still produces a PDF with CreationDate and ModDate, even though I removed them from the reader info dictionary. Here's the code. David PdfReader reader = new PdfReader(args[0]); int n = reader.getNu

Re: [iText-questions] Paragraph Spacing: setLeading adds space between each line in paragraph and spacingBefore does not work

2007-03-13 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: > can you please explain me further. In my case, users create Letter templates > using TinyMCE editor. the output of the editor is a letter body(html text ) . > I get the letter head logo, salutation , addresses etc from database. I > create Itext Elements(Paragraphs ad

Re: [iText-questions] Supressing Creation/Mod Date and ID from output

2007-03-13 Thread Bruno Lowagie
David Kavanagh wrote: > I've used iText a couple of times and think it is a very nice package. I > searched the archives and didn't find an answer to this. > I have a service that performs OCR and produces a PDF. That document has > a creation date which doesn't allow the service to be idempotent

Re: [iText-questions] Coordinates of a PdfTemplate!

2007-03-13 Thread Bruno Lowagie
Eric Summkeller wrote: > That's it. I tested it with another Font and then it works. I hope that this > could be a reason why I can't implement such a solution. If this /F1 font is the only one available in your PDF, you could add (and use) another font. There's an example here that gives some hi

[iText-questions] Supressing Creation/Mod Date and ID from output

2007-03-13 Thread David Kavanagh
I've used iText a couple of times and think it is a very nice package. I searched the archives and didn't find an answer to this. I have a service that performs OCR and produces a PDF. That document has a creation date which doesn't allow the service to be idempotent. Since that is one of our go

Re: [iText-questions] Calculate usable free space in a page

2007-03-13 Thread Jaafar
Problem Solved Thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash

Re: [iText-questions] Coordinates of a PdfTemplate!

2007-03-13 Thread Eric Summkeller
Bruno Lowagie (iText lowagie.com> writes: > > Bruno Lowagie wrote: > Now I understand! > /F1 is some special font, and you don't know how the characters > are encoded... Maybe the font referred to by /F1 only contains > a subset of the complete font, in which case the glyph for the > character

Re: [iText-questions] Paragraph Spacing: setLeading adds space between each line in paragraph and spacingBefore does not work

2007-03-13 Thread Bruno Lowagie (iText)
kkdusi wrote: > I am attaching the tagmap for your reference. I believe you even without looking at the tagmap. As I wrote in the iText book (p449): "[the tagmap] functionality was written to serve a specific purpose, and once the XML parsing functionality was sufficient for the project I was wor

[iText-questions] Paragraph Spacing: setLeading adds space between each line in paragraph and spacingBefore does not work

2007-03-13 Thread kkdusi
I am using a tagmap to parse a string of html text into a PDF document using itext. the html text has tags to separate each paragraph. If I use setLeading, HtmlParser adds 1 line between each and every line in the html text. I just need to add 1 line spacing between each paragraph. spacingBefor

Re: [iText-questions] Coordinates of a PdfTemplate!

2007-03-13 Thread Bruno Lowagie (iText)
Eric Summkeller wrote: > My problem now is, that I don't know how I convert the String "(2)" to the > code "(\u\u0015)". Pherhaps this is something easy but I don't know how. > If I replace my Stream into the following, the Template has no content in the > new Document. > > My new Stream: >

Re: [iText-questions] Coordinates of a PdfTemplate!

2007-03-13 Thread Eric Summkeller
> > Bruno Lowagie wrote: > > You know the total number of pages you want to be > printed. Are you telling me you don't know how to > compose a String and convert it to a byte[]??? > > I really, really don't understand your question(s). > This is not the first time I have no clue when you > ask s

Re: [iText-questions] Coordinates of a PdfTemplate!

2007-03-13 Thread Bruno Lowagie (iText)
Eric Summkeller wrote: > If I debug your code, your Stream contains a not coded page number. > > Your Stream as String: > "BT\n/F1 12 Tf\n1 0 0 1 0 0 Tm\n(10)Tj\nET\n Yes, this is a stream with PDF syntax as described on page 43 (Listing 2.2). > My Stream as String: > "BT\n/F1 10 Tf\n1 0 0 rg\n1

Re: [iText-questions] Coordinates of a PdfTemplate!

2007-03-13 Thread Eric Summkeller
> Bruno Lowagie wrote: > > We're working at the lowest level here. > We're not using PdfTemplate, Image, Chunk, anymore. > What we're doing is getting the 'form XObject' (we prefer calling > it PdfTemplate to avoid confusion with forms) and replace the > stream. You don't have to manipulate the St

Re: [iText-questions] Calculate usable free space in a page

2007-03-13 Thread Bruno Lowagie (iText)
Jaafar wrote: > Hi All > > I want to insert images in my document and i want it to verify how much space > left in the rest of the current page. Is there any idea to calculate this > space? If you're creating your PDF from scratch, and you want to know how much space is left, you can use getVert

[iText-questions] Calculate usable free space in a page

2007-03-13 Thread Jaafar
Hi All I want to insert images in my document and i want it to verify how much space left in the rest of the current page. Is there any idea to calculate this space? - Take Surveys. Earn Cash. Influence the Future of IT Join

Re: [iText-questions] Coordinates of a PdfTemplate!

2007-03-13 Thread Bruno Lowagie (iText)
Eric Summkeller wrote: > I have one question to the code that you send me. I tried this code, but the > Stream that I get from the PdfReader contains the content number in Unicode. > (example:(\u\u0014)) You'll have to explain what you mean by this. > If I replace this with the new number n

Re: [iText-questions] Coordinates of a PdfTemplate!

2007-03-13 Thread Rick DeFazio
What does it need to be? Binary, Base 10 (decimal), hex? >From: Eric Summkeller <[EMAIL PROTECTED]> >Reply-To: Post all your questions about iText here > >To: itext-questions@lists.sourceforge.net >Subject: Re: [iText-questions] Coordinates of a PdfTemplate! >Date: Tue, 13 Mar 2007 13:28:32 +000

Re: [iText-questions] Coordinates of a PdfTemplate!

2007-03-13 Thread Eric Summkeller
> > Bruno Lowagie wrote: > > The problem with 'solutions' like this, is that it can > go wrong on so many places, and I don't want to be the > one 'responsible' to fix those problems > br, > Bruno > I understand that! ;-) I have one question to the code that you send me. I tried this code, bu

Re: [iText-questions] NullPointerException

2007-03-13 Thread Bruno Lowagie (iText)
Khan, Aziz wrote: > Error is: at com.lowagie.text.pdf.PdfWriter.close(Unknown Source) > at com.lowagie.text.pdf.PdfDocument.close(Unknown Source) > > Can you help now? No, that's even less information than you gave us in your previous mail. All I can say is that I'm 99% sure it's not an iText rel

Re: [iText-questions] NullPointerException

2007-03-13 Thread Khan, Aziz
Error is: at com.lowagie.text.pdf.PdfWriter.close(Unknown Source) at com.lowagie.text.pdf.PdfDocument.close(Unknown Source) Can you help now? Aziz Khan | Capgemini | Bangalore Consultant Direct: +91 80 6656 7457 | Ext: 7457 | Mobile: +91 9886835169 Join the Collaborative Business Experien

Re: [iText-questions] NullPointerException

2007-03-13 Thread Bruno Lowagie (iText)
Khan, Aziz wrote: > Hi, > When the pdf file is more than 100 pages I am getting below error. > Can you please provide the solution for this I don't see anything in my crystal ball; do you know how I could repair it? best regards, Bruno -

Re: [iText-questions] check if objects are present in an area

2007-03-13 Thread Bruno Lowagie (iText)
YvesF wrote: > Before adding a barcode in the marge/area, I need to verify if there is no > object in the area for every page. I wish you the best of luck. > I tried to fetch all the objects of the page and getting the coordiante with > no success despite the examples in the book and on the web.

[iText-questions] NullPointerException

2007-03-13 Thread Khan, Aziz
Hi, When the pdf file is more than 100 pages I am getting below error. Can you please provide the solution for this java.lang.NullPointerException at com.lowagie.text.pdf.PRStream.(Unknown Source) at com.lowagie.text.pdf.PdfReaderInstance.getFormXObject(Unknown Source

[iText-questions] check if objects are present in an area

2007-03-13 Thread YvesF
Hello, Before adding a barcode in the marge/area, I need to verify if there is no object in the area for every page. I tried to fetch all the objects of the page and getting the coordiante with no succes despite the examples in the book and on the web. What is a workable way ? I have seen in th

Re: [iText-questions] static row header with scrolling

2007-03-13 Thread danielb
ok, well i've now found a docked content script for scroll up and down, and modified it for scroll left and right. but i need to create divs with a table of row headers. can i add a div? -- View this message in context: http://www.nabble.com/static-row-header-with-scrolling-tf3395100.html#a

[iText-questions] Aligning Text, Tabs

2007-03-13 Thread Paul Baker
Hi, I sent the email below but did not receive any responses. I'll try and format my question a little differently. Is there a way to insert tab characters into a line to align text? Such as 1. text Indented text My goal is: 1 Test Test 1.1 Test Test

Re: [iText-questions] RTF : put style in a line where there is an image

2007-03-13 Thread Mark Hall
On Tuesday 13 March 2007 09:46, Julien wrote: > I knwo that is possible to put a style to a paragraph , but is it possible > to put a style on a word ? (not to the paragraph) No. This is not possible. Character styles are currently not supported. I can't guarantee that they will ever be supported

Re: [iText-questions] Coordinates of a PdfTemplate!

2007-03-13 Thread Bruno Lowagie (iText)
Eric Summkeller wrote: > I understand that you don't want to use such solutions. The problem with 'solutions' like this, is that it can go wrong on so many places, and I don't want to be the one 'responsible' to fix those problems ;-) br, Bruno

[iText-questions] static row header with scrolling

2007-03-13 Thread danielb
Hi there, I have made a bunch of html tables using iText's Table class. and now the row headers must be static, so when the user scrolls to the right, the headers hover in place. i have no idea how im going to do this. but if you can think of anything, even if its similar, that would help.

Re: [iText-questions] Coordinates of a PdfTemplate!

2007-03-13 Thread Eric Summkeller
> Bruno Lowagie wrote: > > The reason why I am reluctant to help is because what you are > trying to achieve is generally considered to be of very bad taste. > However, you'll find an example in attachment where I created > a page saying "page 1 of 10" with "10" added as a PdfTemplate. > In this (

Re: [iText-questions] Coordinates of a PdfTemplate!

2007-03-13 Thread Bruno Lowagie (iText)
Eric Summkeller wrote: Sorry but I need your help again! The reason why I am reluctant to help is because what you are trying to achieve is generally considered to be of very bad taste. However, you'll find an example in attachment where I created a page saying "page 1 of 10" with "10" added as

[iText-questions] RTF : put style in a line where there is an image

2007-03-13 Thread Julien
Hello I knwo that is possible to put a style to a paragraph , but is it possible to put a style on a word ? (not to the paragraph) I would like to do that because I have a line with an image : exemple : word1 image word2 I would like that the word1 and the word2 have the same style. But when