-
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
-
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
-
Sorry about the html escaping - it previewed ok... ???.
2009-10-14 17:51:54 UTC in Useful Java Application Components
-
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
-
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
-
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
-
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
-
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
-
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
-
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