Re: Making Links in PDF

2009-02-20 Thread Jeremias Maerki
You'll have to dig deeper and extend the code. FitR is currently hard-coded. I'm sure that can be improved. But /Page /Next won't work. I haven't found that possibility in the PDF specification. Take a look at the Table 8.2 in the PDF specification 1.4 on page 475. That shows you what is

Re: fop 0.95 error

2009-02-20 Thread Jeremias Maerki
No, I don't see anything wrong. But Unix is not my primary platform so I may overlook something. You may be better served by asking for help on the Log4J user mailing list. I'm not a regular Log4J user. On 19.02.2009 22:46:18 Tuan Quan wrote: Thanks Jeremias, i ussed the folllowing script to

Re: auto table column width with FOP?

2009-02-20 Thread hitesh_jain
Hi, I need column width to be equal to content inside the cell for FOP output, which is same as what we see in html by default. I am using FOP 0.94. Can anybody give idea on the same. Thanks Hitesh Sidi Mohamed Idrissi Yaghir wrote: hi mailing list, i´ve defined a table with 3

Re: PS output different from PDF

2009-02-20 Thread Jeremias Maerki
I'm going to have to investigate a bit more closely why the centering of the barcode is not right in the PostScript case. Anyway, there's a work-around: Specify render-mode=java2d or render-mode=svg on the barcode:barcode element the the PS result should be fine.

Re: auto table column width with FOP?

2009-02-20 Thread Jeremias Maerki
Same answer as to the original thread: Not implemented, yet. You have to specify the columns explicitely. On 20.02.2009 09:17:55 hitesh_jain wrote: Hi, I need column width to be equal to content inside the cell for FOP output, which is same as what we see in html by default. I am

AW: auto table column width with FOP?

2009-02-20 Thread Georg Datterl
Hi Hitesh, Best way I found: Calculate the string widths and define fixed column widths. And pray you don't have line breaks, subelements, blocks in blocks, multiple inlines or other strange stuff like padding, insets, borders... Here's the method I use: private static FOP analyser =

Re: PS output different from PDF

2009-02-20 Thread Jeremias Maerki
I've just fixed the bug in Barcode4J. Available from its CVS HEAD. On 20.02.2009 09:20:49 Jeremias Maerki wrote: I'm going to have to investigate a bit more closely why the centering of the barcode is not right in the PostScript case. Anyway, there's a work-around: Specify

Re: PS output different from PDF

2009-02-20 Thread Frank Niedermann
Hi Jeremias, the main problem is not the barcode, it's that the PS file seems to ignore the general layout of the page. The PDF is landscape format which the PS is not. In addition to that the PS seems to ignore the margin-right value. The alignment of the content is very important for our

Re: PS output different from PDF

2009-02-20 Thread Jeremias Maerki
The page format and margins are not ignored. The values in the PS file are correct. You may simply have to put this in the configuration for the PS output: auto-rotate-landscapetrue/auto-rotate-landscape By default, landscape pages are not rotated. See also:

Re: PS output different from PDF

2009-02-20 Thread Frank Niedermann
Jeremias Maerki-2 wrote: The page format and margins are not ignored. The values in the PS file are correct. You may simply have to put this in the configuration for the PS output: auto-rotate-landscapetrue/auto-rotate-landscape Do you have an example where to put the

Re: PS output different from PDF

2009-02-20 Thread Jeremias Maerki
In the configuration file, not the FO! fop [..] renderers [..] renderer mime=application/postscript auto-rotate-landscapetrue/auto-rotate-landscape fonts [..] /fonts /renderer /renderers /fop General information about FOP's configuration format

Re: PS output different from PDF

2009-02-20 Thread Frank Niedermann
Hi Jeremias, I found out that it's possible to have a configuration file, we didn't use that yet. The userconfiguration.xml now contains the setting you've mentioned: fop version=1.0 renderer mime=application/postscript auto-rotate-landscapetrue/auto-rotate-landscape /renderer /fop And this

Re: PS output different from PDF

2009-02-20 Thread Frank Niedermann
Ah I was missing the renderers in the configuration file. Now it works as expected. Thanks a lot Jeremias, you are a great help! :-) Frank -- View this message in context: http://www.nabble.com/PS-output-different-from-PDF-tp22103120p22118380.html Sent from the FOP - Users mailing list

Re: Making Links in PDF

2009-02-20 Thread useratnab
Thanks a lot, now it works as I wanted it to. But one more thing, I don't get, is why do you use the AffineTansform a 2nd time, before the addLink in your example: AffineTransform pdfInitialTransform = new AffineTransform( 1, 0, 0, -1, 0, pageSize.height);

Re: Making Links in PDF

2009-02-20 Thread Jeremias Maerki
Oh, that line is just a left-over from some experiments. It just makes a copy of the other AffineTransform. You could use it directly. On 20.02.2009 11:59:15 useratnab wrote: Thanks a lot, now it works as I wanted it to. But one more thing, I don't get, is why do you use the AffineTansform a

span is influencing page breaking?

2009-02-20 Thread Georg Datterl
Hi everybody, especially Vincent. Attached fo-file contains a red block which is printed on the first page, although there's not enough space left. If I remove the span=all for the block, it is printed on the next page. Can you tell me why span=all is influencing the page break here? Regards,

Confused about spacing between inlines

2009-02-20 Thread Georg Datterl
Hi everybody, in this small example: fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=content fo:region-body/ /fo:simple-page-master /fo:layout-master-set

Re: Confused about spacing between inlines

2009-02-20 Thread Andreas Delmelle
On 20 Feb 2009, at 17:01, Georg Datterl wrote: Hi Georg snip / Which parameter is responsible for the gaps between the yellow blocks? No parameters. It's just the initial value for linefeed-treatment, which is treat-as-space, and that results in one preserved space character between the

Re: span is influencing page breaking?

2009-02-20 Thread Andreas Delmelle
On 20 Feb 2009, at 18:31, Andreas Delmelle wrote: On 20 Feb 2009, at 15:47, Georg Datterl wrote: Hi Georg Attached fo-file contains a red block which is printed on the first page, although there's not enough space left. If I remove the span=all for the block, it is printed on the next

Hyphenation Compilation Problem with Java 1.6.0_10

2009-02-20 Thread Ben Wuest
Has anybody encounter problems compiling hyphenation files with Java 1.6? I have a custom hyphenation file (.xml) integrated into my build process to compile a hyp file used for generating PDF reports. This works with no problem within a build environment with JAVA 1.5 using ant 1.7.0. When I