Thank you for the great tool! Everything works great, but I'm running into a problem and was wondering if this is a bug our a feature request. I am trying to place an external anchor reference to a website within a table cell. While the documentation indicates that CELL does not support ANCHOR, PHRASE supports ANCHOR and CELL supports PHRASE. Is it possible to use PHRASE to nest an ANCHOR inside a table? Is there any future plan to support ANCHORs in TABLEs?
Thanks for your help! Again, I think this is a great tool, it is exactly what I was looking for!
--matt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
you're right, http references from within table cells didn't work at all, which seems a little bit funny to me because the same way they do work for phrases and on the other hand local references work within cells that way.
I took a look at the iText documentation. There was a description for an alternative way to generate those references. I've changed the anchor implementation to use this way and BINGO it works! The fix is in CVS together with lots of other fixes and improvements. And the from now on the cell tag OFFICIALLY supports the anchor tag.
If you have the possibility to access the sourceforge CVS service, please check out the current development tree.
Best regards,
Christian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Christian, I just wanted to let you know that you don't have to put out a new distribution on the web. I was having problems accessing CVS from behind my firewall at work but was able to download the code from home and got everything working fine. I then tested it with my template and it worked great! Thanks a lot for the quick response and getting this OFFICIALLY supported!
Just to make sure I didn't miss anything; I noticed iText can generate HTML as well, there isn't currently a way to use the same UJAC script to generate a PDF or an HTML doc, right?
Thanks a lot!
--matt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when I started the printing part of UJAC, I planned to support all output types iText supports. The problem on keeping this plan was that not only some advanced features are only available for PDF output, but that there are completely different components to be used for the different output formats. The biggest 'problem' here is the PdfPTable related stuff. This one is only available for PDF output. First I tried to implement the table stuff with the regular table, but its layout hard to control and it was not possible to implement some features I needed for myself with that component. Last but not least there is a recomendation to the PdfPTable for PDF output. But you're right: with this decision, I broke compability with other possible output formats - like iText does it too ;-(.
There are 2 different sets of table implemtations in the UJAC tag package. One for the regular tables (which is currently not used and was not maintained or tested for months) and one for the PDF tables. The behaviour and the attributes of those components is very different, so it's not trivial to transparently switch between these tag implementations for the different output formats.
What could be possible is to try to emulate the behaviour of the more sophisticated PdfPTable stuff with the regular tables. I'll put that on my list, but this will affect a high percentage of the code because for example currently the implementation of header and footers tags plus the high level 'print-table' tag and its related components are using the PdfPTable component too. So, don't expect this to be done in short.
Best regards,
Christian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for the great tool! Everything works great, but I'm running into a problem and was wondering if this is a bug our a feature request. I am trying to place an external anchor reference to a website within a table cell. While the documentation indicates that CELL does not support ANCHOR, PHRASE supports ANCHOR and CELL supports PHRASE. Is it possible to use PHRASE to nest an ANCHOR inside a table? Is there any future plan to support ANCHORs in TABLEs?
Thanks for your help! Again, I think this is a great tool, it is exactly what I was looking for!
--matt
Hi Matt,
you're right, http references from within table cells didn't work at all, which seems a little bit funny to me because the same way they do work for phrases and on the other hand local references work within cells that way.
I took a look at the iText documentation. There was a description for an alternative way to generate those references. I've changed the anchor implementation to use this way and BINGO it works! The fix is in CVS together with lots of other fixes and improvements. And the from now on the cell tag OFFICIALLY supports the anchor tag.
If you have the possibility to access the sourceforge CVS service, please check out the current development tree.
Best regards,
Christian
Thanks Christian! I actually haven't used CVS before (should I be admitting that? ;), would you mind posting the new code on sourceforge?
Thanks again!
--matt
Hi Christian, I just wanted to let you know that you don't have to put out a new distribution on the web. I was having problems accessing CVS from behind my firewall at work but was able to download the code from home and got everything working fine. I then tested it with my template and it worked great! Thanks a lot for the quick response and getting this OFFICIALLY supported!
Just to make sure I didn't miss anything; I noticed iText can generate HTML as well, there isn't currently a way to use the same UJAC script to generate a PDF or an HTML doc, right?
Thanks a lot!
--matt
Hi Matt,
when I started the printing part of UJAC, I planned to support all output types iText supports. The problem on keeping this plan was that not only some advanced features are only available for PDF output, but that there are completely different components to be used for the different output formats. The biggest 'problem' here is the PdfPTable related stuff. This one is only available for PDF output. First I tried to implement the table stuff with the regular table, but its layout hard to control and it was not possible to implement some features I needed for myself with that component. Last but not least there is a recomendation to the PdfPTable for PDF output. But you're right: with this decision, I broke compability with other possible output formats - like iText does it too ;-(.
There are 2 different sets of table implemtations in the UJAC tag package. One for the regular tables (which is currently not used and was not maintained or tested for months) and one for the PDF tables. The behaviour and the attributes of those components is very different, so it's not trivial to transparently switch between these tag implementations for the different output formats.
What could be possible is to try to emulate the behaviour of the more sophisticated PdfPTable stuff with the regular tables. I'll put that on my list, but this will affect a high percentage of the code because for example currently the implementation of header and footers tags plus the high level 'print-table' tag and its related components are using the PdfPTable component too. So, don't expect this to be done in short.
Best regards,
Christian