[iText-questions] Table - Row Height
Hi , I have two question:1) How do I control the height of each row in a table to make it smaller?What I am trying to do is compress the table. There is too much room betweenline in the default table.setCellspacing(0) so I set it totable.setCellspacing(-2); Question, should I be doing this? Or is thereanother way?Table table = new Table(Constants.WIDTH_4); // 4 columnstable.setWidth(Constants.WIDTH_TABLE);table.setWidths(Constants.widths_stnd_4);table.setOffset(0);table.setBorder(Rectangle.NO_BORDER);table.setDefaultCellBorder(Rectangle.NO_BORDER);table.setCellspacing(-2);2) How do I control the vertical placement of the text in a cell? I cannotget the cell.setVerticalAlignment(Element.ALIGN_CENTER) to work. The text isright at the bottom so when I set the BackgroundColor things like "g" and"y" are cut off (the bottom part of the "g" and "y"). What can I do?table.addCell("");Cell cell = new Cell(new Phrase(" " + RO.objectiveOutlook,Constants.SUB_TITLE_FONT));cell.setBackgroundColor(newColor(Constants.HEADER_COLOR_1,Constants.HEADER_COLOR_2,Constants.HEADER_COLOR_3));cell.setColspan(Constants.WIDTH_3);cell.setBorder(Rectangle.NO_BORDER);cell.setVerticalAlignment(Element.ALIGN_CENTER);table.addCell(cell);Thanks Ron
[iText-questions] font HGSeikaishotaiPRO
Hi all I have requirement of HGSeikaishotaiPRO font. Please help me for using same. Which string needs to be provided in following syntax new Font(BaseFont.createFont("HGSeikaishotaiPRO-W3", "UniJIS-UCS2-H",true),18); Ur reply will be appritiated. Thanx and Regards Ajay.D _ Click below to visit monsterindia.com and review jobs in India or Abroad http://monsterindia.rediff.com/jobs ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Measuring CJK text
Hi all I was following the chapter 9 Tutorial, Measuring text. It was working fine with western characters then I was gave a go with Japanese font. The resulting point size doesn't appear to be correct, giving larger value. Any suggestion? Base font used: BaseFont bfJap = BaseFont.createFont("HeiseiKakuGo-W5", "UniJIS-UCS2-H", BaseFont.NOT_EMBEDDED); TK
RE: [iText-questions] doc.close() closing OutputStream
I could, but that would really increase the memory requirement for the server. There could be a lot of documents created on the web server at the same time. Commenting out one line ( os.close() ) in com.lowagie.text.DocWriter.java seems to do the job, without breaking anything else. I realize I cannot just start making changes to code. What is the process for getting a new method added? Thanks, Roman -Original Message- From: John K. Watson [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 25, 2002 1:06 PM To: Roman Novichenok Subject: Re: [iText-questions] doc.close() closing OutputStream Could you write each pdf into a ByteArrayOutputStream and then copy that into the ZipOutputStream after the document.close()? John - Original Message - From: Roman Novichenok To: Sent: Friday, May 24, 2002 11:45 PM Subject: [iText-questions] doc.close() closing OutputStream I am trying to write multiple pdf files into a single zip archive. The idea would be to create a ZipOutputStream and then in a loop create pdf Documents providing the zip stream to the writer. I get an exception thought after trying to use the zip stream after the first document.close() the stream is closed by i-text. Is there some other way to finish the document, that would not force closing the underlying stream? Thanks, Roman
[iText-questions] Table into Footer.
Hi! I need to put a table into footer. The HeaderFooter constructor use a Phrase and I need a table. It is posible Thank's _ Hable con sus amigos en línea, pruebe MSN Messenger: http://messenger.msn.es ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] FontMapper and FontFactory
I'll have my next release ready in a couple of weeks. I'm currently working in an encryption tool: plain pdf in, encrypted pdf out. It keeps all the pdf intact including the links and fields. It's also a proof-of-concept on how to manipulate a pdf directly rather than including parts of it into another. Best Regards, Paulo Soares > -Original Message- > From: Bruno Lowagie [SMTP:[EMAIL PROTECTED]] > Sent: Monday, May 27, 2002 14:31 > To: Erwin Achermann > Cc: iText ML (E-Mail) > Subject: Re: [iText-questions] FontMapper and FontFactory > > Quoting Erwin Achermann <[EMAIL PROTECTED]>: > > > Dear iTexters, > > > > I was using the Fontmapper in conjunction with PdfGraphics2D. In an > > initialization I registered all system fonts to the Fontmapper and > henceforth > > could use all my locally installed fonts. Worked like a charm! > > > > DefaultFontMapper fm = new DefaultFontMapper(); > > > fm.insertDirectory(sun.awt.font.NativeFontWrapper.getFontPath(true)); > > java.awt.Graphics2D g = > pdfWriter.getDirectContent().createGraphics2D(width, > > height, fm); > > > > Nice job. > > But now I come to the situation where I want to translate an XML file > into > > Pdf. The XML contains a tag like size="13" > > italic="false" ... > this should boil down to adding a > chunk("",attributes) > > which loads the arialbf.ttf font. Is there a way to use font mapper for > > easing this, too? > > The FontMapper for PdfGraphics2D and the 'register'-method in > FontFactory were written by two different persons. Maybe somebody > could add the same functionality as provided in FontMapper to > FontFactory. I don't have the time to make new releases, but I > received several updates for different classes. > > Paulo, do you have a new release planned for the coming weeks? > If so, I would try to have CVS updated just after your release. > > Bruno > > ___ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > ___ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] FontMapper and FontFactory
Quoting Erwin Achermann <[EMAIL PROTECTED]>: > Dear iTexters, > > I was using the Fontmapper in conjunction with PdfGraphics2D. In an > initialization I registered all system fonts to the Fontmapper and henceforth > could use all my locally installed fonts. Worked like a charm! > > DefaultFontMapper fm = new DefaultFontMapper(); > fm.insertDirectory(sun.awt.font.NativeFontWrapper.getFontPath(true)); > java.awt.Graphics2D g = pdfWriter.getDirectContent().createGraphics2D(width, > height, fm); > > Nice job. > But now I come to the situation where I want to translate an XML file into > Pdf. The XML contains a tag like italic="false" ... > this should boil down to adding a chunk("",attributes) > which loads the arialbf.ttf font. Is there a way to use font mapper for > easing this, too? The FontMapper for PdfGraphics2D and the 'register'-method in FontFactory were written by two different persons. Maybe somebody could add the same functionality as provided in FontMapper to FontFactory. I don't have the time to make new releases, but I received several updates for different classes. Paulo, do you have a new release planned for the coming weeks? If so, I would try to have CVS updated just after your release. Bruno ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] FontMapper and FontFactory
Dear iTexters, I was using the Fontmapper in conjunction with PdfGraphics2D. In an initialization I registered all system fonts to the Fontmapper and henceforth could use all my locally installed fonts. Worked like a charm! DefaultFontMapper fm = new DefaultFontMapper(); fm.insertDirectory(sun.awt.font.NativeFontWrapper.getFontPath(true)); java.awt.Graphics2D g = pdfWriter.getDirectContent().createGraphics2D(width, height, fm); Nice job. But now I come to the situation where I want to translate an XML file into Pdf. The XML contains a tag likethis should boil down to adding a chunk("",attributes) which loads the arialbf.ttf font. Is there a way to use font mapper for easing this, too? Thanks and Cheers Erwin ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] OeB to iText Tag Mapping?
Hi, Has anyone created a set of mappings from Open eBook XML to iText XML? Bye, Les ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] image handling
Does anyone have any suggested methods for handling images in documents? I need the ability to place images within text for a document generator. I have tried two methods which both seem to show up a few problems with the image handling. a) Adding images as a chunk. Here I create an image, create a chunk to contain it and then wrap this in a Paragraph. When ever I do this the image does not wrap the text in any way and the behaviour is as if IMAGE.UNDERLYING had been set. I have set the image properties to ensure this is not on - Am I missing something here to get the text to wrap around the image? b) Adding the images directly as objects to the Document. In this case I get the desired behaviour where I get a run of text, the image and the next run of text. However there is a problem if the image will not fit on the bottom of the page - In this case the image does not get drawn in the correct place. I get the two runs of text one after the other and the image will appear at the top of the next page (though only if there is enough text to produce another page else no additional page is produced so no image at all). It seems as though the image causes the wrap, but does not move the text point along with it. Are these known problems and if so are there any workarounds? I'm using iText 0.92 Thanks Kevin Pearcey ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] XML and backgroundcolor problem. Please answer me.
This xml file does not work, it's only take the red. Can I do a background color for cell in XML ? test test This one is not working neither : ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] remove text from Chapter ?
We can remove int value from chapter by setNumberDepth method ,can I remove text.If yes what is the method. Arijit Ghosh System Analyst