Martin

Show:

What's happening?

  • Followup: RE: Problem with Segment tag .

    Hi, This seems to be happening because the style attributes map is not being initialised for the segment tag as its parent (macro-def) is a non-printing tag. As a quick workaround add the following null check code in BaseDocumentTag.java : public boolean isStyleAttributeDefined(String name) { if (styleAttributes == null) { return false; } Object...

    2009-10-28 17:06:56 UTC in Useful Java Application Components

  • Followup: RE: page footers

    Hi, Changing the number of rows in the table in your example also changes the start position of the table which doesn't seem correct. I checked the code and it computes the vertical position when writing the header/footer table in the same way for the header and footer which I don't think is right. So...try this: In HeaderFooterPartTag.java add the following /** *...

    2009-10-15 19:12:03 UTC in Useful Java Application Components

  • Followup: RE: page footers

    Sorry about the html escaping - it previewed ok... ???.

    2009-10-14 17:51:54 UTC in Useful Java Application Components

  • Followup: RE: page footers

    Or < footer rule-color="red" rule-width=".5" > < footer-part width="500" bgcolor="red" align="right" padding-top="50"> even...

    2009-10-14 17:48:17 UTC in Useful Java Application Components

  • Followup: RE: page footers

    Hi, The padding-top for an item is added before the content so in effect, your XML was pushing the rule down the page. If you change your example like the following two lines you'll get the effect you want. <footer rule-color="red" rule-width=".5"> <footer-part width="500" bgcolor="red" align="right"...

    2009-10-14 17:45:03 UTC in Useful Java Application Components

  • Unbalanced saveState/restoreState error

    Hi, Thought I'd post this in case it solves a problem for anyone. I found that using iText 2.1.6 or later with UJAC 1.0 caused an exception running the two report tests. (iText 2.1.6 added a check for unbalanced states on newPage) This can be fixed by modifying org/ujac/print/BaseDocumentTag.java rotatePhrase so that the state is only saved if the phrase actually needs to be rotated.

    2009-09-18 19:51:28 UTC in Useful Java Application Components

  • Followup: RE: SVG - NullPointerException

    Hi, I think there's a small problem in ujac.print.tag.SvgImageBuilder.java. This file creates sub-classes of the batik document factory but doesn't initialise the parent class's XML reader leading to the exception. If you modify the following method: protected Document createDocument(InputSource is) throws IOException { try { XMLReader parser =...

    2009-09-08 21:50:46 UTC in Useful Java Application Components

  • Followup: RE: <paragraph leading="?">

    Hi, To accomplish this you can create a property value for the leading and then change that in the loop. E.g. <set-property name="myleading" type="float" value="7.0"/> <for-each loop-variable="x" sequence="1-10"> <paragraph leading="${myleading}">your paragraph[x] here</paragraph> <set-property...

    2009-08-27 09:34:23 UTC in Useful Java Application Components

  • Followup: RE: xml literals in the dynamic content

    Hi Naresh, You could try a CDATA section in the tag - or maybe use a two-pass approach: use first pass to create the XML file with the dynamic content already as CDATA sections and then UJAC produces the PDF. Otherwise I can't think of anything else at the moment. Regards Martin.

    2009-08-17 08:23:46 UTC in Useful Java Application Components

  • Followup: RE: xml literals in the dynamic content

    Hi Naresh, I think you can disable parsing dynamic text at the documentPrinter level - look for setParseDynamicContent(boolean) and possibly setTranslateEscapeSequences(boolean) as well. It might be worth trying the latest version. Don't forget to do a project clean and build after installing the new jar! Regards Martin.

    2009-08-11 13:49:04 UTC in Useful Java Application Components

About Me

  • 2004-09-16 (5 years ago)
  • 1123204
  • hillenm (My Site)
  • Martin

Send me a message