Something like \hbox?

2006-05-31 Thread Andreas Eckstein

Hi all!
Consider a block-container, parent of several other block-container 
elements. Now what I want is a way to fill that parent container in 
horizontal order with child block-containers (in TeX I would use '\hbox' 
for this...). Is something like this possible in XSL-FO, and if yes is 
it implemented in FOP?


Greetings,

Andreas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



normal spaces

2006-05-31 Thread Jimmy Dixon

greetings fellow fopsters

if this is a non breaking space #x200B; then what is the character for 
a normal space as recognised by FOP?


Cheers.
Jimmy.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Font from PFM File

2006-05-31 Thread kloassie

Hi all,

I'm kinda new to Fop, what I do not understand is: How can I get the Font
from a font file in Fop?

One can create TTFFile by using a TTFReader and create a PFMFile by using a
PFMReader. But how does one actualy get the Font from this XYZFile?
For .ttf files I now just use Java's standard
Font.createFont(Font.TTF,InputStream), but the
Font.createFont(Font.Type1,InputStream) works only for .pfb files.
So now I wonder how to get the Font from a PFMFile? I think it should
probably be possible, but I just understand how...

Thanks in advance,

Klaas
--
View this message in context: 
http://www.nabble.com/Font+from+PFM+File-t1710272.html#a4643301
Sent from the FOP - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Font from PFM File

2006-05-31 Thread Chris Bowditch

kloassie wrote:


Hi all,

I'm kinda new to Fop, what I do not understand is: How can I get the Font
from a font file in Fop?


What do you mean by Font exactly? A java.awt.Font object? Or something 
else?




One can create TTFFile by using a TTFReader and create a PFMFile by using a
PFMReader. But how does one actualy get the Font from this XYZFile?
For .ttf files I now just use Java's standard
Font.createFont(Font.TTF,InputStream), but the
Font.createFont(Font.Type1,InputStream) works only for .pfb files.
So now I wonder how to get the Font from a PFMFile? I think it should
probably be possible, but I just understand how...


What is your actual objective? To create a PDF using XSL-FO with a 
custom font? If so, the normal procedure starts with a TTF file and you 
use the TTFReader to create a font metrics XML file. The XML File is 
then used together with the original TTF file by Font to create a PDF 
file. This is documented on the website:


http://xmlgraphics.apache.org/fop/0.92/fonts.html#custom

Chris



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: normal spaces

2006-05-31 Thread Jimmy Dixon

rock on Jeremias, rock on

Jeremias Maerki wrote:

#x0020; of course, or  . Just the normal ASCII space character (32,
hex 20).

On 31.05.2006 11:36:42 Jimmy Dixon wrote:
  

greetings fellow fopsters

if this is a non breaking space #x200B; then what is the character for 
a normal space as recognised by FOP?





Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Scaling images that are running off the page!

2006-05-31 Thread Krishna . Cherla
Title: Scaling images that are running off the page!






Hello All,


I am trying to scale images that are running off the page owing to their width and height dimensions.


My page has a width of 7 inches and a height of 6.75 inches.


This is my fo: instruction:


 fo:external-graphic width=100% content-height=100% content-width=scale-to-fit scaling=uniform display-align=center

  xsl:attribute name=srcurl('xsl:value-of select=FileName/')/xsl:attribute

 /fo:external-graphic


But when I try to insert an image that has dimensions of 2000X2000 pixels it fails. It fails for an image that is 512X716. But works for an image that is 800X750. 

Is there a way by which I could scale the image both horizontally and vertically so that I can insert an image of any dimensions?

Between thanks to Chris Bowditch for helping me out with other issues. Chris , I was able to work out the other spacing issues.It just required moving some blocks and inlines around.

Sindhu Cherla.



"MMS apsc.com" made the following annotations.
--
--- NOTICE ---
This message is for the designated recipient only and may contain confidential, privileged or proprietary information.  If you have received it in error, please notify the sender immediately and delete the original and any copy or printout.  Unintended recipients are prohibited from making any other use of this e-mail.  Although we have taken reasonable precautions to ensure no viruses are present in this e-mail, we accept no liability for any loss or damage arising from the use of this e-mail or attachments, or for any delay or errors or omissions in the contents which result from e-mail transmission.

==



Re: Font from PFM File

2006-05-31 Thread Chris Bowditch

kloassie wrote:


Hi Chris,

I mean this:
1. A .ttf file contains a font
 - A java.awt.Font object can be created from a .ttf file

2. Windows can read a font from a .pfm file
 - A .pfm file contains a font
 - I expect in some way a java.awt.Font can be created from a .pfm file

3. Fop supports .pfm files
 - I expect in some way Fop can be used to create a java.awt.Font from a
.pfm file

4. I do not see how I should use Fop to create a java.awt.Font from a .pfm
file

So thats my question: how do I get the Font from a .pfm file using Fop?


You don't. FOP uses its own classes for dealing with Fonts because there 
are several drawbacks to using Java AWT. Hence the need to create Font 
Metrics, FOP uses the metrics and not the java.awt.Font object. There 
are some exceptions to this (i.e. the AWT Renderer)


If you want to create a java.awt.Font object then just use Java. Why do 
you need FOP or XSL-FO at all?


Chris



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Something like \hbox?

2006-05-31 Thread Andreas Eckstein

Thanks for your replies, guys!
To summarize, my options for an FOP \hbox are:
-wait until floats are implemented
-use table design
-use the 'reference-orientation' attribute.
-or alternatively, implement a horizontal box stacking algorithm in XSLT 
utilizing XSL-FO absolute positioning.
I think I will go for the reference-orientation option, it sounds like 
the one most likely to work...


Thanks!

Andreas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: AW: AW: Metric Files

2006-05-31 Thread Petr Pisar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kring, Rainer wrote:
 So I tried it the other way round. I generated a Type1 font out of the TTF
 with Fontforge. But when trying to generate the XML-font metrics-file (see
 http://xmlgraphics.apache.org/fop/0.20.5/fonts.html#type1-metrics) we get
 OutOfMemoryError: Java heap space.

I get this error on any Type1 font. Actually I'm not able to generate
metrics file from any Type1 font file. I thing there are memory leaks in
Type1toXML subsystem.

- -- Petr

 -Ursprüngliche Nachricht-
 Von: Chris Bowditch [mailto:[EMAIL PROTECTED] 
 Gesendet: Dienstag, 30. Mai 2006 09:54
 An: fop-users@xmlgraphics.apache.org
 Betreff: Re: AW: AW: Metric Files
 
 Kring, Rainer wrote:
 
 After using a font metrics (at least I think the cause is the font 
 metrics) created with FOP's TTFReader out of a True Type Font, I get 
 white spaces above and below the text in PDF-Files. So want I to try it
 with Type1 fonts.
 
 Are you sure the spaces aren't casued by the half-leading? You can try
 adjusting the line-height property to reduce the amount of leading.
 
 Chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEfUDEuR4f4nEwzHIRAuzXAKCJUv9qfq6B7lzJYVHHqkAU0yEUdgCggVGS
aAc9q+R/gcc2NrRBP1a1VBU=
=nc9N
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Something like \hbox?

2006-05-31 Thread Simon Pepping
On Wed, May 31, 2006 at 11:35:57AM +0200, Vincent Hennebert wrote:
 Hi Andreas,
 
 Andreas Eckstein a écrit :
 Hi all!
 Consider a block-container, parent of several other block-container 
 elements. Now what I want is a way to fill that parent container in 
 horizontal order with child block-containers (in TeX I would use '\hbox' 
 for this...). Is something like this possible in XSL-FO, and if yes is 
 it implemented in FOP?
 
 So, if I understand you correctly, you want block-level elements stacked
 in the inline direction?

I think you can use fo:block with children that are inline elements,
e.g. fo:inline or fo:inline-container. The stacking direction is not
determined by the containing element, but by the type of the element
itself, whether it returns an inline or a block area.

Regards, Simon

-- 
Simon Pepping
home page: http://www.leverkruid.eu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Saxon 8 with FOP 0.92b

2006-05-31 Thread Andreas L Delmelle

On May 31, 2006, at 22:17, Rick Roen wrote:

Hi,
I am using Saxon 8 to do the xslt transformation from xml - xsl -  
pdf in FOP 0.92b.


I have Saxon8.jar listed in the java\lib\endorsed which works find  
with my DOS batch file.


I am getting ready to deploy the application and would rather not  
try to add something to the clients java setup, but rather just  
tell FOP to use SAXON 8 for its transformation.

snip /
What is the proper way to tell FOP to use saxon, or do I have to do  
a two step process of creating the fo file and then using it to get  
the final pdf?


If I recall correctly, the easiest way to achieve the effect you're  
after is by modifying fop.bat to force the relevant JAXP system  
property through the java command-line, e.g.:


java -Djavax.xml.transform.TransformerFactory=...

make this point to Saxon's TransformerFactory implementation, and you  
should be good to go.



HTH!

Cheers,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Saxon 8 with FOP 0.92b

2006-05-31 Thread Rick Roen
Andreas,

I did add this line to my batch file, which does make it work, however I
still have to have the saxon8.jar and saxon8-dom.jar in my
java\lib\endorsed.

In fact my batch file works the same with or without the additional
TransformerFactory=...

I believe that FOP will automatically use saxon when it is found in the
endorsed folder (at least that's what I am doing now and it does work).

Thanks for the help, I guess I will just have to make sure the clients have
the two jar files in the endorsed folder.

Rick


If I recall correctly, the easiest way to achieve the effect you're  
after is by modifying fop.bat to force the relevant JAXP system  
property through the java command-line, e.g.:

java -Djavax.xml.transform.TransformerFactory=...

make this point to Saxon's TransformerFactory implementation, and you  
should be good to go.


HTH!

Cheers,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Carriage return in FOP 0.92 version

2006-05-31 Thread Krishna . Cherla
Title: Carriage return in FOP 0.92 version






Hello,


I want to know if there is any way I can insert a carriage return in the data in an element node in an xml document. After having done so, is it possible that the fo recognizes the carrigae return and accordingly dispplays the carriage return in the pdf output?

Thanks,

Sindhu Cherla.





"MMS apsc.com" made the following annotations.
--
--- NOTICE ---
This message is for the designated recipient only and may contain confidential, privileged or proprietary information.  If you have received it in error, please notify the sender immediately and delete the original and any copy or printout.  Unintended recipients are prohibited from making any other use of this e-mail.  Although we have taken reasonable precautions to ensure no viruses are present in this e-mail, we accept no liability for any loss or damage arising from the use of this e-mail or attachments, or for any delay or errors or omissions in the contents which result from e-mail transmission.

==



Re: Carriage return in FOP 0.92 version

2006-05-31 Thread Manuel Mall
On Thursday 01 June 2006 06:41, [EMAIL PROTECTED] wrote:
 Hello,

 I want to know if there is any way I can insert a carriage return in
 the data in an element node in an xml document. After having done so,
 is it possible that the fo recognizes the carrigae return and
 accordingly dispplays the carriage return in the pdf output?


Not 100% sure what you want to achieve but possibly putting the property 
linefeed-treatment=preserve on the enclosing fo:block element may 
do the trick. Of course that is something you need to do in the 
stylesheet which takes your input xml and transforms it into the fo 
document fop consumes.

 Thanks,
 Sindhu Cherla.


Manuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]