Re: [iText-questions] Rebuild failed: trailer not found; Original message: PDF startxref not found

2008-07-03 Thread Bruno Lowagie
Archana Nagesh wrote: > Hi, > > I am generating a PDF using iText. > In most cases the PDF generation is successful. But sometimes I get the > following error (this error is a random one): > > Rebuild failed: trailer not found; Original message: PDF startxref not found Are these PDFs generated

Re: [iText-questions] iText & eId

2008-07-03 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: > Hello, > > > Could you tell me if the contents of following link is still up to date, > or are there other options to sign an pdf on line (in Java). > > http://itext.ugent.be/articles/eid-pdf/ I'm sure your colleagues at iDA (also Cronos) will be able to provide you

Re: [iText-questions] Attachment encryption

2008-07-02 Thread Bruno Lowagie
Tobias Meier wrote: > Highly appreciated if you could/would do that :) You should rephrase that to "if you have the time to do that" ;-) It will depends on my other assignments. br, Bruno - Sponsored by: SourceForge.net Commu

Re: [iText-questions] enabled_form_prefilled.pdf (from FAQ) breaks after one save

2008-07-02 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: > Enjoy the ice-cream, Bruno. ;-) > It's not every day that you get a chance to help out someone > at MIT's Lincoln Labs. Nice feather to add to your cap. :-) My employer, Ghent University, is not as known as MIT, but I'm always glad to help 'colleagues' at other univers

Re: [iText-questions] enabled_form_prefilled.pdf (from FAQ) breaks after one save

2008-07-02 Thread Bruno Lowagie
Peter Demling wrote: > Bruno, your suggestion of removing the XFA before filling the form (with the > questions.forms.RemoveXfa code) is a good one: unfortunately, our workflow > requires that the form is user-enabled before it's populated by iText. I know, but I meant that you could do that befor

Re: [iText-questions] Attachment encryption

2008-07-02 Thread Bruno Lowagie
Tobias Meier wrote: > is it possible to encrypt those attachments? If i attach pdf's i > guess one can use the default pdf encryption mechanism. But what about > other filetypes like pictures, word, excel documents? Is it supported by > iText? Copy/paste from the PDF Reference manual: When a PDF s

Re: [iText-questions] OPI Comments

2008-07-02 Thread Bruno Lowagie
Dean Krueger wrote: > Thanks for the direction, what would be the best approach to access > the appropriate dictionary? One way to do it, would be to loop over all the objects in PdfReader, if an object is a stream object, check if it's of /Type /XObject and /Subtype /Image. If it is, check if the

Re: [iText-questions] iText crashes http on domino

2008-07-02 Thread Bruno Lowagie
Martin Johansson wrote: > Hi, > > > > Using iText I’ve created an Lotus Domino Java agent creating PDF’s from > data stored in Notes documents. > > Each page of the generated PDF has com.lowagie.text.image objects for > header and footer along with text and other com.lowagie.text.image > ob

Re: [iText-questions] enabled_form_prefilled.pdf (from FAQ) breaks after one save

2008-07-02 Thread Bruno Lowagie
Bruno Lowagie wrote: > It goes without saying that I prefer option [1], but unfortunately > I don't have the time to dig into this problem today and tomorrow > (maybe on Friday). I filled in the Employee name of the online example twice; once with Adobe Reader, and once with

Re: [iText-questions] enabled_form_prefilled.pdf (from FAQ) breaks after one save

2008-07-02 Thread Bruno Lowagie
Bruno Lowagie wrote: > a. somebody creates a PDF form (XFA / AcroForm / whatever) > b. this form needs to be reader enabled (you'll ALWAYS need Adobe > to do this) > c. when this form is saved locally, the Reader Enabling may not > be lost. ... > [6] > ... So f

Re: [iText-questions] How can I display text in continuation on the same page?

2008-07-02 Thread Bruno Lowagie
munlubb wrote: Since I am new to understanding the iText library, I will take some time to get hold of the suggestions and example code written by you. In attachment you'll find a PDF that was generated with iText 0.97. It was fairly simple to achieve using stuff explained in chapter 6 of the b

Re: [iText-questions] How can I display text in continuation on the same page?

2008-07-02 Thread Bruno Lowagie
Alexis Pigeon wrote: > Wow, that would be a great evidence of iText stability and good > design! I'm quite impressed by this library, and every day even more! I'm sorry to disappoint you, but I just checked the archives in CVS: http://itext.cvs.sourceforge.net/itext/src/com/lowagie/text/pdf/Column

Re: [iText-questions] How can I display text in continuation on the same page?

2008-07-02 Thread Bruno Lowagie
Alexis Pigeon wrote: > On 01/07/2008, Alexis Pigeon <[EMAIL PROTECTED]> wrote: > > [snip] > >> Maybe Bruno will remember some tricks to accomplish >> what you need with a pre-1.0 version, but I wouldn't bet a cent on >> that. And please to mail him personally about that, > > D'oh! Of course,

Re: [iText-questions] enabled_form_prefilled.pdf (from FAQ) breaks after one save

2008-07-02 Thread Bruno Lowagie
Peter Demling wrote: > o A way to convert an XFA form to an AcroForm (so that we can convert our > current 4-page static XFA form). Or: > > o Advice on the best AcroForm editor - because I just tried to use the > limited > editing in "Tools->Forms" in an attempt to manually re-construct an Acro

Re: [iText-questions] How can I display text in continuation on the same page?

2008-07-02 Thread Bruno Lowagie
munlubb wrote: > > Thanks for your reply! But where can I find this chapter 7, is the tutorial > available online? I tried searching and the book is to be bought. Some people say that F/OSS is free as in free speech, not as in free beer. I don't think iText is free as in free speech, as there

Re: [iText-questions] Appropriate LGPL announcement?

2008-07-02 Thread Bruno Lowagie
Chris Bourke wrote: > > I'm using iText in a webapp and want to respect the LGPL license by > announcing that i'm using iText with a link to the iText home page. Are > there any suggested wording/announcement that I can use? See http://1t3xt.com/docs/faq.php?branch=faq.foss&node=copyright You

Re: [iText-questions] Adding page count to PDF

2008-07-02 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: > Hello, > > I generate a PDF document with lots of data. > > Here is some sample code: > > String docName = Tools.get_tmp_path()+System.currentTimeMillis()+".pdf"; > PdfWriter writer = PdfWriter.getInstance(document, new > FileOutputStream(docName)); > writer.setPageEv

Re: [iText-questions] table rendering problem

2008-07-01 Thread Bruno Lowagie
Daniele Dellafiore wrote: > Can anyone test it and tell us if the result is the same? Any advice > on what we are doing wrong? Aargh! You are using document.add in a page event! Please do me a favor and read p434-435 of my book: The document passed to the onEndPage method is "A PdfDocument object

Re: [iText-questions] How can I display text in continuation on the same page?

2008-07-01 Thread Bruno Lowagie
munlubb wrote: > Can anyone please suggest, if it is possible in a pdf? I am new to pdf > transformation and need help urgently. You have to use ColumnText to achieve that. Please read chapter 7 in the iText book. Or sponsor an example that will be added to: http://1t3xt.info/examples/browse/ br,

Re: [iText-questions] Updating a signature acrofield

2008-07-01 Thread Bruno Lowagie
Christophe Uberri wrote: > Hi everybody, > > I'm new to iText and I want to insert in a PDF two signature fields. I > did the following : > > //SIGNATURE ACROFIELDS > PdfAcroForm acroFormSig = writer.getAcroForm(); > acroFormSig.addSignature("First Signature", 90, 100, 290, 200); //First > Sign

Re: [iText-questions] Page overflow; how to go to a new page when the previous page is overflowing

2008-07-01 Thread Bruno Lowagie
>> I hope Im making the problem clear. > > Well, I fear you aren't... Could you send us a minimal, stand-alone > application that reproduces this behaviour? Without that, any reply > you'll get will be some sort of "document.newPage() works as expected > for me". I even have an example that demon

[iText-questions] Call for Speakers: Open Source ERP

2008-06-30 Thread Bruno Lowagie
One of my F/OSS colleagues, Raphael Bauduin, is planning a Profoss event in Brussels about open source ERP software. He has listed the F/OSS projects he knows here: http://blog.raphinou.com/2008/06/next-profoss-erp-software.html But he doesn't know a lot of potential speakers. He asked me if I had

Re: [iText-questions] Combobox printed, prints undesired value

2008-06-30 Thread Bruno Lowagie
Fhomasp wrote: > > Well... Considering the tinyness of Belgium I'd ask you how far it could be > ? ;-) This reminds me of a discussion I had with my copy editor from Indiana a couple of years ago. When I told her about Belgium, she replied that she couldn't imagine a 'whole country as small as B

Re: [iText-questions] Combobox printed, prints undesired value

2008-06-28 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: > -- Original message -- > From: [EMAIL PROTECTED] > >> [Note to Bruno: There appear to be two identical entries in the >> documentation of >> PdfAcroForm for "addComboBox". Is this a redundancy, or is there another >> variation, which wa

Re: [iText-questions] Combobox printed, prints undesired value

2008-06-28 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: > BTW, I see (I think) Real Software is a Belgian company. > Are you close to Ghent, where Bruno Lowagie is headquartered? Real Software is active pretty much everywhere in Belgium. As a matter of fact, I'm sitting right next to a Real Software employee at the

Re: [iText-questions] gif transparency

2008-06-27 Thread Bruno Lowagie
hari bhogu wrote: > hi > > i am try to make a gif image with white backgroung as transparent but i > am not able to do it I have an example that shows how to make that particular image file transparent using nothing more than the answers that have been given to you before on this very list. Ho

Re: [iText-questions] create a PDF with different types of pages and control the overflow of the text

2008-06-26 Thread Bruno Lowagie
Peter wrote: > Hello, I´m using iText and I want to create a PDF document with different > types > of pages. > //This part of my code > //Document document = new Document(PageSize.A4, 30, 40, 50, 50); > // > > This is the type of page for my first page, but I want to change the size of > page in

Re: [iText-questions] Question regarding iText--endheaders

2008-06-25 Thread Bruno Lowagie
Saranyams wrote: > While using endheader ( for show the table header in the next page ,if one > table extend to next page ) the table coming under the first will be coming > downwards by one row. I assume that you are talking about Table instead of PdfPTable, but don't let us guess, provide a sma

Re: [iText-questions] iText from PHP

2008-06-25 Thread Bruno Lowagie
Norman Mauricio Garcia wrote: > Hi, > > According to > > http://threebit.net/mail-archive/itext-questions/msg01190.html > > You tried to use iText from PHP using the PHP/Java bridge. Could you > tell me if it worked and if the results where satisfying? I'm having a > lot of problems using fpdf fr

Re: [iText-questions] image reference for a special application

2008-06-23 Thread Bruno Lowagie
Bruno Lowagie wrote: > Leonard Rosenthol wrote: >> The only other option that I can think of - which is a bit more work >> up front, but faster at match time, would be to use some unique ID >> from the database and store that as a custom key in the image's >>

Re: [iText-questions] How to report bugs?

2008-06-23 Thread Bruno Lowagie
Patrick Valsecchi wrote: > Hi, > > I tried to report a bug [1] on SF, the only place I found to report bugs for > iText. But I got no answer. > > > What is the official way to report bugs for iText? I found nothing in the FAQ. That's the official SourceForge way, but to be honest, we don't loo

Re: [iText-questions] image reference for a special application

2008-06-23 Thread Bruno Lowagie
Leonard Rosenthol wrote: > The only other option that I can think of - which is a bit more work > up front, but faster at match time, would be to use some unique ID > from the database and store that as a custom key in the image's > dictionary. Then you can grab that back out during the loop

Re: [iText-questions] text color

2008-06-23 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: > hallo, > > how is it possible to mark a part of a text inside a cell in a speical color? > for example: > > Name| city > Peter Müller| Berlin > Hans Müller | Munic A cell contains other objects (Paragraph, Phrase, Chunk,...). In your case, create "Han

Re: [iText-questions] How to create fillable form ?

2008-06-23 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: > Hello, > > I want to fill out PDF forms as described in Chapter 16. > I tried both scribus and Acrobat to create a formular, but when trying > to fill out I make my own AcroForms with OpenOffice: http://1t3xt.info/examples/browse/?page=example&id=330 > I get the fo

Re: [iText-questions] How to partial flatten a XFA Form?

2008-06-19 Thread Bruno Lowagie
rams.samy wrote: > Bruno, See attached sample file with 2 fields. OK, actually there were more fields, but I dropped the second page. See http://www.1t3xt.info/examples/browse/?page=example&id=391 The advise I gave you this morning works (I was able to test it thanks to your example). Then why

Re: [iText-questions] How to partial flatten a XFA Form?

2008-06-19 Thread Bruno Lowagie
rams.samy wrote: > Bruno, See attached sample file with 2 fields. Oops sorry, I overlooked the link at the end of your mail. I was able to open your PDF file. Thanks, I'll have a look at it. br, Bruno - Check out the new Sour

Re: [iText-questions] How to partial flatten a XFA Form?

2008-06-19 Thread Bruno Lowagie
rams.samy wrote: > Bruno, See attached sample file with 2 fields. I fear the attachment didn't succeed getting through to the mailing list. This is one of the exceptions where you can send it to my personal address. best regards, Bruno -

Re: [iText-questions] ExceptionConverter: java.io.IOException: The document has no pages

2008-06-19 Thread Bruno Lowagie
paolo ghiringhelli wrote: > I'm executing the Java Class in Oracle JDeveloper environment; the class is > in progress and it isn't yet released. Aha, it has been a long time since I worked with JDeveloper, but that could indeed be the reason why the resource isn't released. > Do you think that I

Re: [iText-questions] parameters for Image.setTransparency()

2008-06-19 Thread Bruno Lowagie
answers solutions wrote: > hi bruno . > > can u let me know where can i get more reference about the parameters > of this method. I'm sorry, but as far as I'm concerned all your "credits" have expired and I will be of no further assistance to you. I wish you the best of luck finding somebody e

Re: [iText-questions] parameters for Image.setTransparency()

2008-06-19 Thread Bruno Lowagie
answers solutions wrote: > Hi > > wht are the parameters i should pass to the method > Image.setTransparency(new int[]( , )) > > . inorder to make a image with backgroung to be transparent . > > i am placing this image against a image which has a white background . It depend

Re: [iText-questions] PDF Structure

2008-06-19 Thread Bruno Lowagie
Paulo Soares wrote: > My ego is big but not that big. I fear that mine is bigger ;-) My mother always says "les traces d'un fou, se trouvent partout" whenever she reads something about me. (That's a variation on the line: "Hi lowagie, ur name is all over internet.") > The P stands for PDF, it's a

Re: [iText-questions] How to partial flatten a XFA Form?

2008-06-19 Thread Bruno Lowagie
rams.samy wrote: > > Bruno, you interpretation on question was right(Do you know why? :-) ) > > After removing the XFA I did a flattening true followed by field flattening, > the whole file got flattened, the extra thing which I did not include in my > previous post is the field value was also no

Re: [iText-questions] PDF Structure

2008-06-19 Thread Bruno Lowagie
Alexis Pigeon wrote: > By the way, something that always made me wonder since the very first > day I used iText : where does the 2nd 'P' in PdfPTable (or PdfPCell, > etc...) come from? Well, I had created the external class Table and the internal class PdfTable (just like you have Document and Pdf

Re: [iText-questions] How to partial flatten a XFA Form?

2008-06-19 Thread Bruno Lowagie
rams.samy wrote: > field value is not set and the whole pdf is getting flattened, do not why? As you saw from my previous answer, I changed > do not why? into > do you know why? and I answered: "No, I only know that partial form flattening isn't supported for XFA forms, so I hoped that removing

Re: [iText-questions] How to partial flatten a XFA Form?

2008-06-19 Thread Bruno Lowagie
rams.samy wrote: > The below code is running without error in Run time, but the whole pdf is > getting flattened, do you know why? No, I only know that partial form flattening isn't supported for XFA forms, so I hoped that removing the XFA would help (but I wasn't sure because I've never tested it

Re: [iText-questions] PDF Structure

2008-06-19 Thread Bruno Lowagie
Mark Storer wrote: > Thanks for the pointers. I hadn't even found that... come to think of it, I > was > talking to my mom last night and she mentioned that Google now has a > source-code > search. Worth looking into... > > Cool stuff: http://www.google.com/codesearch?hl=en That's cool. Whil

Re: [iText-questions] Acrobat and difference between actual image size and their containers

2008-06-19 Thread Bruno Lowagie
Lars Eirik Rønning wrote: > I have images which are generated to a pdf from batik. When i open my > pdf in acrobat and click on all different image elements, the indicated > size of the element is far greater than the actual pixel data. This can happen. Out of curiosity: don't these images look

Re: [iText-questions] Bookmarks in merged PDF document

2008-06-19 Thread Bruno Lowagie
Federico Alba wrote: > Ok...I built the dll again...and now it's workingIt's > perfect...thanks, every bookmark does what it should do... Thanks for the feedback! The changes will be in the next release (scheduled for the second week of July). best regards, Bruno

Re: [iText-questions] How to partial flatten a XFA Form?

2008-06-18 Thread Bruno Lowagie
rams.samy wrote: > stamper.partialFormFlattening fails as "Partial form flattening is not > supported with XFA forms." I'm not sure, but what happens if you remove the XFA: PdfDictionary acro = (PdfDictionary) PdfReader.getPdfObject( reader.getCatalog().get(PdfName.ACROFORM)); acro.

Re: [iText-questions] creating layers using itext

2008-06-18 Thread Bruno Lowagie
hari bhogu wrote: > can u let me know can i achieve this by using itext . You have all the different elements: - you know how to resize image or create pages that are 487 x 485 - you know how to add images to a PdfLayer - you know how to make the text transparent (but if you make the text trans

Re: [iText-questions] ExceptionConverter: java.io.IOException: The document has no pages

2008-06-18 Thread Bruno Lowagie
paolo ghiringhelli wrote: > Hi, > my class creates a document and sets header and footer; if the methods that > write the content of the document fail, when I close the document, I get the > error: > ExceptionConverter: java.io.IOException: The document has no pages > > and a file.pdf with 0 lengt

Re: [iText-questions] Contribution: Enhanced Image.scaleToFit

2008-06-18 Thread Bruno Lowagie
Bruno Lowagie wrote: > Benjamin Rein wrote: >> I hope its useful for anyone with similar problems. > > Thanks, I'll have a look at your changes. If I'm interpreting the changes correctly, you have changed scaleToFit into an elaborate scaleAbsolute in case the DPI is d

Re: [iText-questions] Contribution: Enhanced Image.scaleToFit

2008-06-18 Thread Bruno Lowagie
Benjamin Rein wrote: > I hope its useful for anyone with similar problems. Thanks, I'll have a look at your changes. br, Bruno - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for j

Re: [iText-questions] creating layers using itext

2008-06-18 Thread Bruno Lowagie
hari bhogu wrote: > if image > file contains text i need to make the text in tht particular layer to be > transprent . I think you mean you want to make the background transparent, NOT the text. And as we already said: that's a bad idea. Are you an offshore developer working against a deadline f

Re: [iText-questions] PdfPTable TextField in PdfPCell: questions

2008-06-18 Thread Bruno Lowagie
Fhomasp wrote: > Because the TextFields are wrapped in a PdfPCell the font set in the > TextField doesn't get through. The font is adjusted by the height of the > cell. For regular fields this is a minor problem, however I also need a few > much larger fields for memo info. So anyone filling one

Re: [iText-questions] Question about Fonts

2008-06-18 Thread Bruno Lowagie
Arrowx7 wrote: > Hello, > I was working on a PDF with iText, and I added my own font like this: > BaseFont purisa = BaseFont.createFont("/home/garden/Purisa.ttf", > BaseFont.CP1252, BaseFont.NOT_EMBEDDED); Correction: you didn't add your own font. You told the PDF you want the viewer to use Purisa

Re: [iText-questions] error using code in chapter16/SignedPdf.java

2008-06-18 Thread Bruno Lowagie
Alexis Pigeon wrote: > It's very likely that you don't have the BouncyCastle jars in your classpath. > > For more information, see [1] under Technical Requirements. Another tip: go to the example on the site, for instance: http://1t3xt.info/examples/browse/?page=example&id=253 and scroll down to

Re: [iText-questions] Differenct Image sizes

2008-06-18 Thread Bruno Lowagie
zoharat wrote: > > Borders the area inside the PDF page margins. > > We are in the process of buying the book, so I have read only the > documentation available online. For instance, this example about scaling TIFFs and dpi: http://1t3xt.info/examples/browse/?page=example&id=86 It even uses the

Re: [iText-questions] Bookmarks in merged PDF document

2008-06-18 Thread Bruno Lowagie
Federico Alba wrote: > I used Tortoise Svn to acces the repository... I overlooked the SVN in your previous question. The iTextSharp repository is CVS, not SVN. You can't use an SVN tool to access a CVS repository. br, Bruno

Re: [iText-questions] Bookmarks in merged PDF document

2008-06-18 Thread Bruno Lowagie
Federico Alba wrote: > Oh...thanksI browsed it from the browser and I see all the files, > but since I need the entire project I downloaded tortoisebut when I > put this url > http://itextsharp.cvs.sourceforge.net/itextsharp/itextsharp_new, I get > the following message: "Repository mov

Re: [iText-questions] Field Labels beneath values

2008-06-18 Thread Bruno Lowagie
bnorwood wrote: > I'm sure this has been answered before and that I'm just searching for the > wrong thing. Basically I am generating a printable version of an > application that users fill out online. Is the online form a PDF? If so, I would reuse it. Is the online form available on paper? If s

Re: [iText-questions] Differenct Image sizes

2008-06-18 Thread Bruno Lowagie
zoharat wrote: > I did try it, but it scales the images down randomly. That's ONLY true if you use random number for the percentages. > Let say I said scale to 20% then for a big image it will be okay, but for > smaller images they get very small. Hey, that's not random! If you take 20% of 100,

Re: [iText-questions] PDF Structure

2008-06-17 Thread Bruno Lowagie
Mark Storer wrote: > I see that PdfStructureTreeRoot and PdfStructureElement haven't been touched > in a while. True. Currently, if you want tagged PDF, it's mainly a manual process as is done here: http://www.1t3xt.info/examples/browse/?page=example&id=274 http://www.1t3xt.info/examples/browse/?

Re: [iText-questions] Big problem in deteterming height when page breaks

2008-06-17 Thread Bruno Lowagie
FlyingBuzz wrote: > Well I think i should have drawn the drawing more complex. because it isnt as > simple as that.cant just extend the last row because thats the signature > part. need to extend a middle row that is in one of the blcoks Could you make some examples in Word or OpenOffice that I co

Re: [iText-questions] Adding a JPG to a page causes errors

2008-06-17 Thread Bruno Lowagie
Robert Spielmann wrote: > So, surrounding the image code with begin-/endText() is a bad idea? It's better to keep pure 'graphics state' operations separated from 'text state' operations. I should check in the PDF Reference which graphics state operators are allowed between a BT/ET sequence and whi

Re: [iText-questions] WG: Adding a JPG to a page causes errors

2008-06-17 Thread Bruno Lowagie
Robert Spielmann wrote: > Sorry, the PDF file has a size of about 1MB which sourceforge blocks. > > I uploaded the file: http://www.1lx.org/epo_alpha.pdf On your page 3 you add 6 images between a BT and an ET. BT /Xi1 10 Tf q 27.12 0 0 36 122.44 610 cm /Xi2 Do Q q 27.12 0 0 36 160.44 610 cm /Xi2

Re: [iText-questions] Adding a JPG to a page causes errors

2008-06-17 Thread Bruno Lowagie
Robert Spielmann wrote: > Hi all, > > I'm adding a JPG to a page using the stamper like this: > > // Load the arrow > Image pfeil = Image.getInstance("templates/Pfeil_schwarz_oben.jpg"); > > // Scale the arrow (the template PDF has 300 dpi) > pfeil.scalePercent(((float)pfeil.getDpiX()/300)*100);

Re: [iText-questions] creating layers using itext

2008-06-17 Thread Bruno Lowagie
Leonard Rosenthol wrote: >> Because if he's going to use rasterized text to create letters >> or forms that are to be used in a hospital, he's definitely on >> the wrong path. > > Yes, that I completely agree with! Thanks, it would be interesting to hear from the original poster where the i

Re: [iText-questions] Bookmarks in merged PDF document

2008-06-17 Thread Bruno Lowagie
Federico Alba wrote: > Oh...sorry...I thought it was native... In response to an earlier question: Paulo uploaded the changes to support page numbers instead of page references yesterday night. I'm scheduling a release for the second week of July. If you need the functionality earlier, you can bui

Re: [iText-questions] RtfWriter2.fitsPage()?

2008-06-17 Thread Bruno Lowagie
bisoa wrote: > Is there any way we can do the PdfWriter.fitsPage() for RTF > documents? It looks like only way we can do is to find out > numbers of rows a page can contain and count them! The problem with RTF (as opposed to PDF) is that RTF isn't a Page Description Language (PDL). With PDF you k

Re: [iText-questions] creating layers using itext

2008-06-17 Thread Bruno Lowagie
Leonard Rosenthol wrote: > If the image are transparent - then they MUST change in order to show > through... Yes, my suggestion was to add the image as a java.awt.Image as described in section 5.2 of the book. > What you really want is to create MASKS (or clipping paths) - where the > white pa

Re: [iText-questions] Big problem in deteterming height when pagebreaks

2008-06-17 Thread Bruno Lowagie
Paulo Soares wrote: >> Note that I might disappear from the mailing list for a while. >> As it turns out, the guy who called me a 'Stupid Ass' last >> weekend is the founder of a JUG who has now sent me a mail >> that I'm a 'menace to society'. If that's the reward for the >> work I do, then I'm n

Re: [iText-questions] creating layers using itext

2008-06-17 Thread Bruno Lowagie
hari bhogu wrote: > i want the three layers in frist page of my pdf and they should be > transperent Then why are you using opaque images??? Maybe section 5.2 of the book can solve your problem. Maybe there are some other ways too (depending on the type of images you are using), but my guess tha

Re: [iText-questions] blob from oracle to com.lowagie.text.Image

2008-06-17 Thread Bruno Lowagie
PhilipPeinsold wrote: > To everyone who wants to know how it works Thanks for the feedback! We'll use this post for further reference. br, Bruno - Check out the new SourceForge.net Marketplace. It's the best place to buy or s

Re: [iText-questions] How is it possible to get the x, y position of a certain word found by the PRTokeniser?

2008-06-17 Thread Bruno Lowagie
Daniel_R wrote: > How do the operators/operands change the CTM and how can i calculate it > (i googled for a while now... and i haven't found anything in the Book also) Go to page 314 and look at the title "Doing the math" in section 10.4.1 conveniently title "The CTM" (I hope we're talking ab

Re: [iText-questions] creating layers using itext

2008-06-17 Thread Bruno Lowagie
hari bhogu wrote: > hi > > i am trying to create layers in pdf by using itext , And as you are using PdfLayer, we're talking about OCG, can you confirm this? > i want this three layer to be in my > first page of my pdf docuement . You want the images to be on top of each other? Than you need

Re: [iText-questions] Big problem in deteterming height when page breaks

2008-06-17 Thread Bruno Lowagie
FlyingBuzz wrote: > Well, here is a drawing on what I am trying to do. > > Hope this makes it clear. > > http://www.nabble.com/file/p17867501/Untitled.gif I've made some PDFs with nested tables here: http://1t3xt.info/examples/browse/?page=example&id=387 The tables are ugly, but I hope they giv

Re: [iText-questions] Adding Pages To PDF From Records

2008-06-17 Thread Bruno Lowagie
Dan Schofield wrote: > Is there a step that I am missing? PdfCopyFields isn't the best suited class in this context. You are flattening the forms you are adding to the new document. In that case, you'd better use PdfSmartCopy as demonstrated here: http://1t3xt.info/examples/browse/?page=example&id

Re: [iText-questions] overlapping of layers

2008-06-17 Thread Bruno Lowagie
answers solutions wrote: > hi > > u have mentioned by page size is > 595 pt wide. is it a standard one . As described in the book, the default page size is A4 (which is the standard in Europe and Asia). > is there anyway to extended by page > size. In chapter 2 of the book, you'll learn how

Re: [iText-questions] How is it possible to get the x, y position of a certain word found by the PRTokeniser?

2008-06-16 Thread Bruno Lowagie
Daniel_R wrote: > Hi, > > I need to locate a certain word inside the pdf and insert some picture near > that word... That's really not trivial and I wouldn't use iText to do that. There are OCR solutions that can do this, but they aren't free. > I used the PRTokeniser object to locate the String

Re: [iText-questions] Adding PdfPTable to PdfTemplate

2008-06-16 Thread Bruno Lowagie
Serdiouk, Alexei wrote: > Hi, > > I am trying to add a PdfPTable to a PdfTemplate in order to rotate the > table 90 grad, as was suggested in answer from 30.06.2002. That's 5 years ago... > Could you please take a look where I am making an error? You add the table at coordinate 0,0 which is th

Re: [iText-questions] overlapping of layers

2008-06-16 Thread Bruno Lowagie
answers solutions wrote: > wht u have conculded is correct i am able to see only 29% of my image . That's exactly how you programmed it, so there is no problem with iText. > i am new iitext . i dont know all these calculations . > can u explani me > in deatil . As already indicated by William

Re: [iText-questions] does iText Supports Money Management

2008-06-16 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: > > Hi All, > I would like to know, whether iText supports money management or > not Define "money management". Are you telling us you want to display currencies, but you are unaware that this is provided in Java? NumberFormat n = NumberFormat.getCurrencyInstanc

Re: [iText-questions] overlapping of layers

2008-06-16 Thread Bruno Lowagie
answers solutions wrote: > can u let me know why this is going wrong What kind of math are you using? Your page is 595 pt wide; your image is 454 pt wide; you are adding the image at x = 460. 454 + 460 = 914. 914 - 595 = 319 454 - 319 = 135 135 / 454 = 29.7% In other words: only 29.7% of your

Re: [iText-questions] how to add images to layers by using itext

2008-06-16 Thread Bruno Lowagie
answers solutions wrote: > hi can u tell me how to add images to layers in pdf Assuming that with layers you are talking about OCG, then you also find the example in the book, more specifically on page 384-385. br, Bruno - Ch

Re: [iText-questions] Big problem in deteterming height when page breaks

2008-06-15 Thread Bruno Lowagie
FlyingBuzz wrote: > well, i dont think your understanding the question still thats why i tried to > explain it better. I guess i will post some examples of what I mean later on > on monday. The example you posted I don't think it is quite I am asking for. > It is hard for me to explain I guess with

Re: [iText-questions] How to justify text with iText 1.5.x

2008-06-13 Thread Bruno Lowagie
Peter Dunkel wrote: > I found the primary problem in > org.eclipse.birt.report.engine.emitter.pdf.PDFPage in the methode > private void drawText, there are 3 methodes with this name, but the > other only calls the drawText-methode. > > The string with the text was not trimmed, it has sometimes

Re: [iText-questions] adding PDFAnnotation to Cell

2008-06-13 Thread Bruno Lowagie
Sumeet Gupta wrote: > Thanks Bruno..can you provide me with a quick sample code? a 2-3 liner > code will really help. I'm sorry, I can't do it in 2 or 3 lines of code. br, Bruno - Check out the new SourceForge.net Marketp

Re: [iText-questions] Save and Email functions in iText for PDF document

2008-06-13 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: > > That was a very interesting article.. Now that I think of it, it could be interpreted the wrong way. I learned about Levitt and Dubner during a talk about Free Economies. About how Free Software shouldn't be free as in free beer, but that the F in F/OSS should stand f

Re: [iText-questions] Graphics and Stamper

2008-06-13 Thread Bruno Lowagie
Robert Spielmann wrote: > Hi all, > > The chapters in "iText in Action" dealing with graphics all say that > I need the Direct Content from the writer in order to paint stuff into > my document. For example, I need to paint a grey-filled rectangle. > I am using the stamper in order to modify a tem

Re: [iText-questions] iText in Action / section 10.4 / coordinate system

2008-06-13 Thread Bruno Lowagie
Robert Spielmann wrote: > Hi all, > > I'm reading "iText in Action" at the moment. Section 10.4 begins with this: > > "The coordinates you use to draw the iText eye in figure 10.13 assume that > the origin of the coordinate system is in the lower-left corner and that > the x-axis points to the le

Re: [iText-questions] Share examples of pdfs created with iText!

2008-06-13 Thread Bruno Lowagie
Rick Roen wrote: > Thank you Bruno, > > I purchased the book and read it some time ago. As an occasional user of > iText the syntax is not exactly fresh in my mind. I looked in the index > under various topics and came up blank which is often the case. My major > problem in finding things in the

Re: [iText-questions] table at the end of page

2008-06-13 Thread Bruno Lowagie
Alexis Pigeon wrote: > Hi Philip, > > On 13/06/2008, PhilipPeinsold <[EMAIL PROTECTED]> wrote: >> Hello @ all!! >> Is it possible to insert a table at the end of the page? I don't want to >> make a footer, cause the table should only be at the first page. > > Footers are not set per document o

Re: [iText-questions] Share examples of pdfs created with iText!

2008-06-13 Thread Bruno Lowagie
Rick Roen wrote: > Hey, those are really nice! > > I use tables extensively for producing invoices/confirmations etc. and have > always wondered if I could do the rounded corners like you have all over. > How are you doing these? Probably as explained in the book: http://1t3xt.info/examples/brow

Re: [iText-questions] Images in Header and Footer of pdf

2008-06-12 Thread Bruno Lowagie
Atish Roy wrote: > Hi. > Can you give me piece of code which will insert images in header and footer > of a pdf? What if you just dropped the parameters that rotate and skew the image in your addImage method? You were asked why you defined such a strange transformation matrix, but you didn't answe

Re: [iText-questions] Share examples of pdfs created with iText!

2008-06-12 Thread Bruno Lowagie
FlyingBuzz wrote: > Lets see what you are using iText for and how nicely a generated PDF could > look. Those are some very nice examples! Thanks for sharing them. I used to have a directory named 'gallery' with similar examples, but I didn't have the time to maintain that part of the site. Maybe

Re: [iText-questions] Japanese fonts -- I am unclear on what is going on

2008-06-11 Thread Bruno Lowagie
Brian Gould wrote: > I have the ItextAsian and ItextAsianCmaps jar files and I have the > following code: > > BaseFont _bfJapanese = > BaseFont./createFont/("KozMinPro-Regular", "UniJIS-UCS2-HW-V", > BaseFont./NOT_EMBEDDED/); > > /_japanese/ = *new* Font(_bf

Re: [iText-questions] adding PDFAnnotation to Cell

2008-06-11 Thread Bruno Lowagie
Sumeet Gupta wrote: > Hi, > > I need to add the PDFAnnotation to a Cell of a Table. > I can add the file attachments as PdfAnnotations and when i click on those > annotations, the attached file opens up. However, my requirement is to have > these annotations in the Cell that i will be adding to T

Re: [iText-questions] Radiobuttons in iText ?

2008-06-11 Thread Bruno Lowagie
Gawędzki wrote: > I have pdf document with text fields, radio buttons and checkboxes. OK, just like: http://1t3xt.info/examples/results/in_action/chapter16/register_form1.pdf > Those fields has names from xml file (ex. radio button is named "//ProductId" In my case for instance "person.preferred

Re: [iText-questions] Radiobuttons in iText ?

2008-06-11 Thread Bruno Lowagie
Bruno Lowagie wrote: Gawędzki wrote: Is it possible to get name of on-value from the EN-widget form this radio button ? Most of the times these widgets are unnamed. (Why would they need a name?) You will have to explain WHY you want that widget if you want any further answer from me. And

<    1   2   3   4   5   6   7   8   9   10   >