[iText-questions] How to get the indent of the first letter of a section title?

2010-08-10 Thread Fred Janon
I generated a chapter and a section that gives me this: 1.1 Section 1: School-Level Environment Questionnaire The first part of the questionnaire I want to align the title text "Section 1:..." with the text underneath "The first part of the..." I know I can set the indent value of the section, bu

Re: [iText-questions] How to add paragraphs to an ItemList?

2010-08-10 Thread Fred Janon
Thanks. After going through the book, I figured that using chapters and sections would do that, that's what I am testing now. Thanks Fred On Tue, Aug 10, 2010 at 17:01, 1T3XT info wrote: > Fred Janon wrote: > > Hi, > > > > I would like to generate something like this

[iText-questions] How to add paragraphs to an ItemList?

2010-08-09 Thread Fred Janon
Hi, I would like to generate something like this: *1.2 Section 2:Leadership Support* Quick brown fox jumps over the lazy dog. Quick brown fox jumps over the lazy dog. Quick brown fox jumps over the lazy dog. Quick brown fox jumps over the lazy dog. Quick brown fox jumps over the lazy dog

Re: [iText-questions] Where can I find the character maps for the embedded fonts (Helvetica...)?

2010-05-11 Thread Fred Janon
14 (dash)? > > /Klas > > Fred Janon skrev 20:59: >> I need to insert a big black bullet and a fat horizontal dash in the >> middle of some text in Helvetica 10pt to put a legend next to >> ajFreeChart chart. I need the Unicode for these 2 characters and >> cannot find th

[iText-questions] Where can I find the character maps for the embedded fonts (Helvetica...)?

2010-05-10 Thread Fred Janon
I need to insert a big black bullet and a fat horizontal dash in the middle of some text in Helvetica 10pt to put a legend next to ajFreeChart chart. I need the Unicode for these 2 characters and cannot find them. Since Helvetica is embedded, I can't use the Windows Character Map tool, I did a sear

[iText-questions] Is it possible to write some text along a circle?

2010-04-07 Thread Fred Janon
Is there a way to write some text along non straight lines, circles in my case, other than using Java2D? Thanks Fred -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find

Re: [iText-questions] iText in Action: no Java Graphics2D chapter in the 2nd edition?

2010-04-07 Thread Fred Janon
Great, thanks. The TOC in the MEAP isn't as detailed. Fred On Wed, Apr 7, 2010 at 14:43, Bruno Lowagie wrote: > Fred Janon wrote: >> I am using the MEAP 2nd edition at the moment and was surprised that >> the chapter Java Graphics2D and jFreeChart was not in the 2nd edition

[iText-questions] iText in Action: no Java Graphics2D chapter in the 2nd edition?

2010-04-06 Thread Fred Janon
I am using the MEAP 2nd edition at the moment and was surprised that the chapter Java Graphics2D and jFreeChart was not in the 2nd edition anymore? Would it be possible to add it, even as an appendix? I think it would be good to show readers how to integrate charts with iText. No report comes out w

Re: [iText-questions] Is the 'art' box initialized with the crop/media box when the page size is defined?

2010-03-24 Thread Fred Janon
Seems that the 'crop' box is null by default as well. The 'media' box in initialized. Thanks Fred On Thu, Mar 25, 2010 at 12:08, Fred Janon wrote: > I am using the PageEvent as described in the iText book 2nd ed. I > think the book says that the art box is initial

[iText-questions] Is the 'art' box initialized with the crop/media box when the page size is defined?

2010-03-24 Thread Fred Janon
I am using the PageEvent as described in the iText book 2nd ed. I think the book says that the art box is initialized to the value of the crop box which is initialized to the media box when the page size is defined in the document. But I get a null rect in the page event: Rectangle rect =

Re: [iText-questions] How to change only one page orientation inside a multi page document?

2010-03-21 Thread Fred Janon
Excellent. Thanks a lot. Fred On Mon, Mar 22, 2010 at 00:04, 1T3XT info wrote: > Fred Janon wrote: >> I am generating a multi page pdf document where one chart on one page >> needs to be in landscape mode. Is there a way to change one page size >> inside a multi p

[iText-questions] How to change only one page orientation inside a multi page document?

2010-03-21 Thread Fred Janon
I am generating a multi page pdf document where one chart on one page needs to be in landscape mode. Is there a way to change one page size inside a multi page document? Thanks Fred -- Download Intel® Parallel Studio Eva

[iText-questions] How to test the pdf output?

2010-03-21 Thread Fred Janon
Hi, What's the *best* way of regression testing my Java code that generates pdf documents? Comparing the pdf file byte to byte to reference documents? How do you do regression testing for iText? Thanks Fred -- Download

Re: [iText-questions] Is there a way to set the number of columnsfor PdfPTable other than in the constructor?

2010-03-20 Thread Fred Janon
Thanks. Fred On Sat, Mar 20, 2010 at 19:40, Paulo Soares wrote: > Ok, you'll have it. > > Paulo > > - Original Message - > From: Fred Janon > To: Post all your questions about iText here > Sent: Saturday, March 20, 2010 10:32 AM > Subject: Re: [iText-ques

Re: [iText-questions] Is there a way to set the number of columns for PdfPTable other than in the constructor?

2010-03-20 Thread Fred Janon
Is there a way to add a setter for columns in the future: PdfPTable.setColumns(int)? It could throw an exception if it's too late to change it. Thanks Fred On Sat, Mar 20, 2010 at 18:27, Fred Janon wrote: > Yep, that means I have to sort XML attributes to process 'columns'

Re: [iText-questions] Is there a way to set the number of columns for PdfPTable other than in the constructor?

2010-03-20 Thread Fred Janon
Yep, that means I have to sort XML attributes to process 'columns' first... I would have preferred not to, but I kinda knew the answer and hoping I missed something. Thanks Fred On Sat, Mar 20, 2010 at 17:09, 1T3XT info wrote: > Fred Janon wrote: >> I create a PdfPtable

[iText-questions] Font in a table cell added to a paragraph?

2010-03-20 Thread Fred Janon
I create a paragraph with a font and I add a table with some cells to that paragraph. I was expecting the content of the cells to use the paragraph font, but it doesn't seem to? Is any content added to a paragraph supposed to use the paragrpah font? Thanks Fred --

[iText-questions] Is there a way to set the number of columns for PdfPTable other than in the constructor?

2010-03-20 Thread Fred Janon
I create a PdfPtable with 1 column, then before anything else is added to the table I need to set the number of columns but there is no setter for that. Is there anyway to do that? Thanks Fred -- Download Intel® Parallel

[iText-questions] Tab in chunk offsets the underline

2010-03-18 Thread Fred Janon
I ran into an issue when there is a tab in a chunk: if there is an underlined chunk after the tab, the underline is offset to the left. It took me a while to figure out that there was a tab and it did that. Try the code below and you'll see the issue. I saw a mention that tab support was done in 20

Re: [iText-questions] Project feasibility with iText?

2010-02-21 Thread Fred Janon
ll check the examples and try to draw my chart with Java 2D in a PdfTemplate created as indicated. Thanks Fred On Mon, Feb 22, 2010 at 15:34, 1T3XT info wrote: > Fred Janon wrote: > > > You need to learn more about the concepts first. > > What concepts? > > These con

Re: [iText-questions] Project feasibility with iText?

2010-02-21 Thread Fred Janon
e document. > If you want to create a PdfTemplate, you need to create it for the > correct writer. In your case stamper.getWriter(); I'll try that, thanks for the pointer. Fred On Mon, Feb 22, 2010 at 15:15, 1T3XT info wrote: > Fred Janon wrote: > > Not sure how you are

Re: [iText-questions] Project feasibility with iText?

2010-02-21 Thread Fred Janon
Feb 21, 2010 at 21:34, Bruno Lowagie wrote: > Fred Janon wrote: > > Thanks, I'll check the PdfImportedPage. I'll buy the second edition of > > the book too. > > > > I wrote some code to try to replace a button filed with some PDF content > > and t

Re: [iText-questions] Project feasibility with iText?

2010-02-21 Thread Fred Janon
l weeks to read the books and run through all the examples. This code if for a university research group and due in a month. Not sure how you are related to iText or Bruno either. Is the next answer from you as well? Fred On Sun, Feb 21, 2010 at 21:30, 1T3XT info wrote: > Fred Janon wrote

Re: [iText-questions] Project feasibility with iText?

2010-02-21 Thread Fred Janon
tonField.LAYOUT_ICON_ONLY); bt.setProportionalIcon(false); bt.setTemplate(wagonwheelcharttemplate); form.replacePushbuttonField("wagonwheelchart", bt.getField()); stamper.setFormFlattening(true); stamper.close(); } Thanks Fred On Sun, Feb 21, 2010 at 20:06, 1T3XT info wrote: > Fred Jan

Re: [iText-questions] Project feasibility with iText?

2010-02-20 Thread Fred Janon
r class AbstractAccreditation.java<http://1t3xt.info/examples/src/classroom/filmfestival_c/AbstractAccreditation> :" The examples also use the (probably) old package names com.lowagie, not com.itextpdf Thanks Fred On Mon, Feb 15, 2010 at 17:11, 1T3XT info wrote: > Fred Janon wrote: >

Re: [iText-questions] Project feasibility with iText?

2010-02-15 Thread Fred Janon
documents with JFreeCharts and iText, that would be the easiest way for me and less risky. Fred On Mon, Feb 15, 2010 at 17:11, 1T3XT info wrote: > Fred Janon wrote: >> The charts have fixed dimensions, but probably different size (in >> bytes) > > Sorry, I wasn't clear. >

Re: [iText-questions] Project feasibility with iText?

2010-02-15 Thread Fred Janon
u have lots of Word documents and would need to > convert them by hand something like a Word VBA macro is probably the > easiest/fastest solution. There are ways to automate Word from Java > using COM automation, but I'm not sure this makes sense for your project. > > > Mark

Re: [iText-questions] Project feasibility with iText?

2010-02-15 Thread Fred Janon
them if necessary. Would that work? How can I find the location of the strings to replace in the template? Do I need a template that's a pdf form? Thanks Fred On Mon, Feb 15, 2010 at 15:49, 1T3XT info wrote: > Fred Janon wrote: >> I thought about using form >> fields, but i

[iText-questions] Project feasibility with iText?

2010-02-14 Thread Fred Janon
I need to generate different multi-page documents from some templates. I need to replace or insert some text and charts at specific locations in the template and then generate the final document. At the moment the templates are Microsoft Word documents. We use Windows as our OS and Java as the deve