pdf x3

2006-05-18 Thread duschhaube

Hallo!



It is possible to create x3 pdf with fop? Or are there any plan to implemente 
this feature?



mfg thorsten

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



Re: Large table cell crashes fop92

2006-05-18 Thread Jeremias Maerki

On 19.05.2006 01:09:32 Perez wrote:
> In article <[EMAIL PROTECTED]>,
>  Jeremias Maerki <[EMAIL PROTECTED]> wrote:
> 
> > I was able to commit a change that avoids the NullPointerException.
> > However, there's a problem remaining that I cannot fix quickly. Your
> > markers may not be treated correctly or in other words: They won't be
> > added for the cases a table-cell produces an empty area as on page 9 in
> > your example. retrieve-marker might return the wrong values. Due to the
> > obfuscation of your document I cannot easily see if it affects you.
> > 
> > http://svn.apache.org/viewvc?rev=407614&view=rev
> > Jeremias Maerki
> 
> Is there anything I can do differently?

It depends on the requirements for your document. Since I don't know
them I can't tell. You'll have to figure out yourself whether this
limitation is a problem for you.

> The marker thing I put in for 
> 0.92 but I think I get the same crash under 0.20.5.

Really? 0.20.5's layout engine is working completely differently. I
can't imagine you get the same error.

>  Does that mean that 
> the fox: extension has the same problem?

That's something else. The fox: extension have all not been
reimplemented in FOP 0.92beta. fox:outline has been replaced by the XSL
1.1 fo:bookmarks.


Jeremias Maerki


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



Re: integrating Barcode4j into FOP 0.92b

2006-05-18 Thread Jeremias Maerki
As is mentioned in [1] FOP extensions written for FOP 0.20.5 don't work
with 0.92beta anymore. Barcode4J contains an updated extension for
0.92beta but you'll have to get the sources from SourceForge's CVS und
build it yourself for now because I'm so busy with FOP that I haven't
had time, yet, to prepare a new release of Barcode4J.

[1] http://xmlgraphics.apache.org/fop/0.92/upgrading.html#important

On 18.05.2006 22:13:43 Rick Roen wrote:
> FOP 0.92b
> Barcode4j (whatever the latest is from SF)
>  
> Win XP
>  
> I have Barcode4j working from the command line and want tointegrate it into 
> FOP.
>  
> I have modified the FOP.bat and have the following:
>  
>  
> set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar
> setLOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-sandbox.jar
> setLOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-hyph.jar
> setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis-1.3.02.jar
> setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.7.1.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.7.0.jar
> setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\serializer-2.7.0.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik-all-1.6.jar
> setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.0.jar
> setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-4.2.0.jar
> setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-io-1.1.jar
> setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-logging-1.0.4.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\fop-hyph.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%FOP_HYPHENATION_PATH%
> setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j-fop-ext-0.20.5.jar
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j.jar
>  
> I have the last two jar files copied into the FOP\libfolder.
>  
> When I run FOP from the command line I get:
>  
> C:\PROGRA~1\FOP>fop  c:\temp\invoice.foc:\temp\invoice.pdf
> May 18, 2006 2:06:46 PMorg.apache.fop.fo.ElementMappingRegistry findFOMaker
> WARNING: Unknown formatting objecthttp://barcode4j.krysalis.org/ns^barcode
> May 18, 2006 2:06:46 PM org.apache.fop.fo.ElementMappingRegistryfindFOMaker
> WARNING: Unknown formatting objecthttp://barcode4j.krysalis.org/ns^postnet
> May 18, 2006 2:06:47 PMorg.apache.fop.fo.flow.InstreamForeignObject 
> prepareIntr
> insicSize
> SEVERE: Intrinsic dimensions of  instream-foreign-objectcould not be 
> determined
>  
> May 18, 2006 2:06:47 PMorg.apache.fop.fo.flow.InstreamForeignObject 
> prepareIntr
> insicSize
> SEVERE: Intrinsic dimensions of  instream-foreign-objectcould not be 
> determined
>  
> What else to I need to set?
>  
> Thanks,
>  
> Rick
> 



Jeremias Maerki


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



Re: Location of xsltfile

2006-05-18 Thread CalvinD

Update. I found I had to place /xml/xslt/phonelist2fo.xsl in the src folder. 
If I did not and cleaned the project, it removed it from the build/classes/
folder.  Once I move it to the src, everything worked fine.
Calvin
--
View this message in context: 
http://www.nabble.com/Location-of-xsltfile-t1617801.html#a4461472
Sent from the FOP - Users forum at Nabble.com.


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



Re: Large table cell crashes fop92

2006-05-18 Thread Perez
In article <[EMAIL PROTECTED]>,
 Jeremias Maerki <[EMAIL PROTECTED]> wrote:

> I was able to commit a change that avoids the NullPointerException.
> However, there's a problem remaining that I cannot fix quickly. Your
> markers may not be treated correctly or in other words: They won't be
> added for the cases a table-cell produces an empty area as on page 9 in
> your example. retrieve-marker might return the wrong values. Due to the
> obfuscation of your document I cannot easily see if it affects you.
> 
> http://svn.apache.org/viewvc?rev=407614&view=rev
> Jeremias Maerki

Is there anything I can do differently?  The marker thing I put in for 
0.92 but I think I get the same crash under 0.20.5.  Does that mean that 
the fox: extension has the same problem?

thanks again,
-arturo


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



Re: use java from server

2006-05-18 Thread Daniel Noll

Rick Roen wrote:
Can I tell fop to use the server version of java, or does it have to be 
installed on each client?


Assuming you're running it from a batch file, you could trivially modify 
the batch file to point at another location.


Daniel


--
Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699
Web: http://www.nuix.com.au/Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

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



use java from server

2006-05-18 Thread Rick Roen








Fop 0.92b

 

I am calling FOP from a command line bat file. The actual
FOP folder is located on a server on a Win 2000 server with mainly XP pro
clients.

 

On occasion a client does not have java installed locally,
so fop errors with 

 

'java' is not recognized as an internal or external command,

operable program or batch file.

 

 

Can I tell fop to use the server version of java, or does it
have to be installed on each client?

 

Rick








FW: integrating Barcode4j into FOP 0.92b

2006-05-18 Thread Rick Roen
FOP 0.92b
Barcode4j (whatever the latest is from SF)

Win XP

I have Barcode4j working from the command line and want to integrate it into
FOP.

I have modified the FOP.bat and have the following:


set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-sandbox.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-hyph.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis-1.3.02.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.7.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.7.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\serializer-2.7.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik-all-1.6.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-4.2.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-io-1.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-logging-1.0.4.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\fop-hyph.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%FOP_HYPHENATION_PATH%
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j-fop-ext-0.20.5.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j.jar

I have the last two jar files copied into the FOP\lib folder.

When I run FOP from the command line I get:

C:\PROGRA~1\FOP>fop  c:\temp\invoice.fo c:\temp\invoice.pdf
May 18, 2006 2:06:46 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://barcode4j.krysalis.org/ns^barcode
May 18, 2006 2:06:46 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://barcode4j.krysalis.org/ns^postnet
May 18, 2006 2:06:47 PM org.apache.fop.fo.flow.InstreamForeignObject
prepareIntr
insicSize
SEVERE: Intrinsic dimensions of  instream-foreign-object could not be
determined

May 18, 2006 2:06:47 PM org.apache.fop.fo.flow.InstreamForeignObject
prepareIntr
insicSize
SEVERE: Intrinsic dimensions of  instream-foreign-object could not be
determined

What else to I need to set?

Thanks,

Rick


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



integrating Barcode4j into FOP 0.92b

2006-05-18 Thread Rick Roen








FOP 0.92b

Barcode4j (whatever the latest is from SF)

 

Win XP

 

I have Barcode4j working from the command line and want to
integrate it into FOP.

 

I have modified the FOP.bat and have the following:

 

 

set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-sandbox.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-hyph.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis-1.3.02.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.7.1.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.7.0.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\serializer-2.7.0.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik-all-1.6.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.0.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-4.2.0.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-io-1.1.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-logging-1.0.4.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\fop-hyph.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%FOP_HYPHENATION_PATH%

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j-fop-ext-0.20.5.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j.jar

 

I have the last two jar files copied into the FOP\lib
folder.

 

When I run FOP from the command line I get:

 

C:\PROGRA~1\FOP>fop  c:\temp\invoice.fo
c:\temp\invoice.pdf

May 18, 2006 2:06:46 PM
org.apache.fop.fo.ElementMappingRegistry findFOMaker

WARNING: Unknown formatting object
http://barcode4j.krysalis.org/ns^barcode

May 18, 2006 2:06:46 PM org.apache.fop.fo.ElementMappingRegistry
findFOMaker

WARNING: Unknown formatting object
http://barcode4j.krysalis.org/ns^postnet

May 18, 2006 2:06:47 PM
org.apache.fop.fo.flow.InstreamForeignObject prepareIntr

insicSize

SEVERE: Intrinsic dimensions of  instream-foreign-object
could not be determined

 

May 18, 2006 2:06:47 PM
org.apache.fop.fo.flow.InstreamForeignObject prepareIntr

insicSize

SEVERE: Intrinsic dimensions of  instream-foreign-object
could not be determined

 

What else to I need to set?

 

Thanks,

 

Rick








Re: Large table cell crashes fop92

2006-05-18 Thread Jeremias Maerki
I was able to commit a change that avoids the NullPointerException.
However, there's a problem remaining that I cannot fix quickly. Your
markers may not be treated correctly or in other words: They won't be
added for the cases a table-cell produces an empty area as on page 9 in
your example. retrieve-marker might return the wrong values. Due to the
obfuscation of your document I cannot easily see if it affects you.

Note to fop-devs: If there are no Position instances returned by the
Iterator in AreaAdditionUtil.addAreas(), there's currently no way to
determine the first/last conditions for the addMarker calls. We have a
similar problem for page-number-citation-last where it's difficult to
know when the last area of an element is painted and the element is
essentially finished. We will need to find a way around that. Don't know
how, yet. I've added a test case that shows the problem.

http://svn.apache.org/viewvc?rev=407614&view=rev

On 18.05.2006 17:53:00 Arturo Perez wrote:
> Here's a zipped obfuscated fo file.  I did try removing the 
> keep-together="always" on the table rows but that resulted in a slightly 
> different crash.
> 
> Thanks so much for helping me with this.
> 
>  <> 
> 
> -arturo
> 



Jeremias Maerki


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



Re: resolution on PS files

2006-05-18 Thread Jeremias Maerki
There's no resolution setting for this. In your case, the text is
painted as shapes (vector graphics). The painting is delegated to the
Java2D subsystem. If the output is not readable you can't do much here.

I'd also verify if your barcode is not a little bit too small. In my
experience, unreadable barcodes are often a result of a mismatch between
barcode settings and printer resolution.

In case you didn't know, Barcode4J can generate high-quality barcodes as
EPS files. No font necessary. Might be an alternative for you.

On 18.05.2006 17:45:09 Camilakill wrote:
> 
> Hi,
> 
> I am using PSDocumentGraphics2D to create a postscript file.
> I draw a label in which I use a barcode font (IDAutomation).
> When I run it in Windows it prints perfect, but when I run the same code,
> with the same fonts, in Linux I am not being able to scan the barcode.
> 
> Is there any command on the PSDocumentGraphics2D or GraphicContext which I
> could do to make the resolution of the file better.
> 
> Maybe it is a problem with the fonts (the way they have been installed in
> Linux) but I just wanted to make sure that I am using the API correctly.
> 
> My code is like follow:
> OutputStream out = new java.io.FileOutputStream(new File(targetDir,
> "ps-barcode.ps"));
> out = new java.io.BufferedOutputStream(out);
>   
> PSDocumentGraphics2D g2d = new PSDocumentGraphics2D(false);
> g2d.setGraphicContext(new org.apache.xmlgraphics.java2d.GraphicContext());
> g2d.setupDocument(out, 815, 415); 
>   
> Font barcode = new Font("IDAutomationSC39XL", Font.PLAIN, 10);//14
> g2d.setFont(barcode);
> g2d.drawString("!SALFL359F78999078!",50,50);
> 
> g2d.finish();
> 
> Thank you,
> 
> Camila



Jeremias Maerki


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



resolution on PS files

2006-05-18 Thread Camilakill

Hi,

I am using PSDocumentGraphics2D to create a postscript file.
I draw a label in which I use a barcode font (IDAutomation).
When I run it in Windows it prints perfect, but when I run the same code,
with the same fonts, in Linux I am not being able to scan the barcode.

Is there any command on the PSDocumentGraphics2D or GraphicContext which I
could do to make the resolution of the file better.

Maybe it is a problem with the fonts (the way they have been installed in
Linux) but I just wanted to make sure that I am using the API correctly.

My code is like follow:
OutputStream out = new java.io.FileOutputStream(new File(targetDir,
"ps-barcode.ps"));
out = new java.io.BufferedOutputStream(out);

PSDocumentGraphics2D g2d = new PSDocumentGraphics2D(false);
g2d.setGraphicContext(new org.apache.xmlgraphics.java2d.GraphicContext());
g2d.setupDocument(out, 815, 415); 

Font barcode = new Font("IDAutomationSC39XL", Font.PLAIN, 10);//14
g2d.setFont(barcode);
g2d.drawString("!SALFL359F78999078!",50,50);

g2d.finish();

Thank you,

Camila

--
View this message in context: 
http://www.nabble.com/resolution-on-PS-files-t1644209.html#a4453344
Sent from the FOP - Users forum at Nabble.com.


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



RE: Scaling of Text

2006-05-18 Thread Pascal Sancho
> -Original Message-
> From: Kring, Rainer [mailto:[EMAIL PROTECTED] 
> 
> How should this work?
> How can I calculate $max_x, $max_y
> The text can vary.

2 options here,
1. choose an approximate mean value for character width and then multiply it 
with number of caracters (what I should do)
2. use precises values of each caracter width (a bit longer job)

> > - $max_x should be >= text-length
> isn't text-length returning the letters count?
Text-length means here the total horizontal size of your text.

> > - $max_y should be >= font-size.
> Why? Then font-size has a maximal value. We want to maximize 
> the font size.
If not, the bottom of each char will be truncated.
The actual final font-size depend on the ratio between initial viewPort size 
and available room (indicated with width and height properties for the svg 
element).

You just need to choose a couple of (viewPort size, svg font-size) that allows 
to display the whole text.
FOP will do the rest! 

> The syntax was not the problem. 

Ok

> I think you can't do it this way.

That can.

Pascal

> -Ursprüngliche Nachricht-
> Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
> 
> > -Original Message-
> > From: Kring, Rainer [mailto:[EMAIL PROTECTED]
> > 
> > Hi Pascal,
> > it's me again.
> > 
> > >That is your job! And you did it!
> > 
> > Bad job! It doesn't work.  :-|
> > 
> > 
> > >$width_unit and $height_unit should be =< your cell content size, 
> > >including
> > unit.
> > This part seems OK.
> > 
> > >$max_x and $max_y depend on the text nested in svg snippet.
> > That's the point.
> > 
> > >You can make it dependant on text length and font-size if needed.
> > 
> > What's the correlation between the two values ($max_x, $max_y), the 
> > text length and the font size?
> > Could you give as an example, please? Did you try it yourself?
> 
> IMHO, viewBox attribute specifies 2 things:
>  - the svg frame that should be visible
>  - initial coordinates system of your drawing.
> 
> Therefore, viewBox size should be greater or equal to text box.
> If not, your text should appear truncated.
> In your case,
>  - $max_x should be >= text-length
>  - $max_y should be >= font-size.
> 
> I've also made some annotations in your snippet.
> (I've tested it successfully when corrected)
> 
> HTH,
> Pascal
> 
> > -Ursprüngliche Nachricht-
> > Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
> > 
> > > -Original Message-
> > > From: Kring, Rainer [mailto:[EMAIL PROTECTED]
> > > 
> > > Hi Pascal,
> > > 
> > > how do you know the values for $width_unit, $height_unit and 
> > > especially $max_x, $max_y. Could please give me an example?
> > 
> > That is your job! And you did it!
> > 
> > $width_unit and $height_unit should be =< your cell content size, 
> > including unit.
> > $max_x and $max_y depend on the text nested in svg snippet.
> > You can make it dependant on text length and font-size if needed.
> > 
> > Pascal
> > 
> > > Here is what we tried:
> > > 
> > > 
> > > 
> > > 
> > >  > border-bottom-width="1.0pt"
> > > border-left-style="solid" border-left-width="1.0pt"
> > > border-right-style="solid" border-right-width="1.0pt"
> > > border-top-style="solid" border-top-width="1.0pt" 
> > text-align="center"
> > > display-align="before">
> > >  > > color="#ff"
> > > font-family="Kerstin1" font-size="10.0pt">
> > > 
> > >  > > xmlns="http://www.w3.org/2000/svg";>
> > >> > preserveAspectRatio="xMidYMid meet" viewBox="0 0 238 94>
> 
> Need to close the openning quote --^
> 
> 
> > >
> Unit is not required here -^
> (same as viewBox attribute)
> 
> > disable-output-escaping="no" 
> > > select="price_outlet_entire"/>
> > >   
> > > 
> > >  
> > > -Ursprüngliche Nachricht-
> > > Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
> > > 
> > > As a workaround, you can use svg, witch allows to scale
> > content, using
> > > preserveAspectRatio:
> > > 
> > >  > > height="{$height_unit}"
> > > xmlns="http://www.w3.org/2000/svg";>
> > >> > preserveAspectRatio="xMidYMid meet" viewBox="0 0 {$max_x} 
> {$max_y}">
> > >> > text-anchor="{$alignement}">your text here
> > >   
> > > 
> > > 
> > > > -Original Message-
> > > > From: Kring, Rainer [mailto:[EMAIL PROTECTED]
> > >  
> > > > thanks for the quick answer.
> > > > 
> > > > I think you got me wrong. We don't want to cut or wrap the
> > > string. We
> > > > have to resize the font. The font-size must be altered 
> to fit the 
> > > > string into the cell, so that the the string is neither
> > bigger nor
> > > > smaller then the cell.
> > > > 
> > > > -Ursprüngliche Nachricht-
> > > > Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
> > > > 
> > > > this is a nasty one - basically the answer is no, if the
> > > value of the
> > > > table cell is text the best you can do is to insert non 
> breaking 
> > > > spaces between the letters t ensure it wraps and doesnt 
> overflow.
> > > > 
> > > > this template does the tric

Re: -print option to specific printer

2006-05-18 Thread Jeremias Maerki
At the moment, you cannot specify the printer to print on for "-print".
It always prints to the default printer. We're glad for any patch to
improve that.

The alternative is to use "fop -fo file.fo -ps \\servername\printer" if
you're on Windows and the printer is "shared".

If you download FOP Trunk from Subversion you can also use "-pcl"
instead of "-ps", but "-ps" is preferred for quality reasons if the
printer supports PostScript.

On 18.05.2006 16:43:10 Rick Roen wrote:
> FOP 0.92b
> 
> How do I specify a specific printer when using the command line.
> 
> This works to the Windows default printer:
> 
>FOP file.fo -print
>
> This brings up the following error information, but does not print anything:
> 
>   FOP file.fo -print "\\lvsserver0\Kyocera Mita KM-4035 KX"
> 
> May 18, 2006 8:31:55 AM org.apache.fop.cli.Main startFOP
> SEVERE: Exception
> org.apache.fop.apps.FOPException: Don't know what to do with
> \\lvsserver0\Kyocer
> a
> at
> org.apache.fop.cli.CommandLineOptions.parseUnknownOption(CommandLineO
> ptions.java:534)
> at
> org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
> .java:267)
> at
> org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
> 32)
> at org.apache.fop.cli.Main.startFOP(Main.java:147)
> at org.apache.fop.cli.Main.main(Main.java:190)
> 
> 
> It seems like it cannot handle a printer name with embedded spaces, but when
> I try
> 
>   FOP file.fo \\servername\hpoj OR \hpoj OR hpoj
> 
> I get the same error "don't know what to do with...
> 
> Can someone advise?
> 
> Rick


Jeremias Maerki


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



Re: AW: Scaling of Text

2006-05-18 Thread Jeremias Maerki
FWIW, I think SVG is the right approach here. SVG should be powerful
enough to make that possible. How about this?

http://www.w3.org/2000/svg"; viewBox="0 0 100 100">
  19.95


See the "textLength" property.

On 18.05.2006 16:19:14 Kring, Rainer wrote:



Jeremias Maerki


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



-print option to specific printer

2006-05-18 Thread Rick Roen
FOP 0.92b

How do I specify a specific printer when using the command line.

This works to the Windows default printer:

   FOP file.fo -print
   
This brings up the following error information, but does not print anything:

FOP file.fo -print "\\lvsserver0\Kyocera Mita KM-4035 KX"

May 18, 2006 8:31:55 AM org.apache.fop.cli.Main startFOP
SEVERE: Exception
org.apache.fop.apps.FOPException: Don't know what to do with
\\lvsserver0\Kyocer
a
at
org.apache.fop.cli.CommandLineOptions.parseUnknownOption(CommandLineO
ptions.java:534)
at
org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
.java:267)
at
org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
32)
at org.apache.fop.cli.Main.startFOP(Main.java:147)
at org.apache.fop.cli.Main.main(Main.java:190)


It seems like it cannot handle a printer name with embedded spaces, but when
I try

FOP file.fo \\servername\hpoj OR \hpoj OR hpoj

I get the same error "don't know what to do with...

Can someone advise?

Rick


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



AW: Scaling of Text

2006-05-18 Thread Kring, Rainer
... 
???
How should this work?
How can I calculate $max_x, $max_y
The text can vary.

> - $max_x should be >= text-length

isn't text-length returning the letters count?

> - $max_y should be >= font-size.

Why? Then font-size has a maximal value. We want to maximize the font size.

The syntax was not the problem. 

I think you can't do it this way.
 

-Ursprüngliche Nachricht-
Von: Pascal Sancho [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 18. Mai 2006 16:01
An: fop-users@xmlgraphics.apache.org
Betreff: RE: Scaling of Text

> -Original Message-
> From: Kring, Rainer [mailto:[EMAIL PROTECTED]
> 
> Hi Pascal,
> it's me again.
> 
> >That is your job! And you did it!
> 
> Bad job! It doesn't work.  :-|
> 
> 
> >$width_unit and $height_unit should be =< your cell content size, 
> >including
> unit.
> This part seems OK.
> 
> >$max_x and $max_y depend on the text nested in svg snippet.
> That's the point.
> 
> >You can make it dependant on text length and font-size if needed.
> 
> What's the correlation between the two values ($max_x, $max_y), the 
> text length and the font size?
> Could you give as an example, please? Did you try it yourself?

IMHO, viewBox attribute specifies 2 things:
 - the svg frame that should be visible
 - initial coordinates system of your drawing.

Therefore, viewBox size should be greater or equal to text box.
If not, your text should appear truncated.
In your case,
 - $max_x should be >= text-length
 - $max_y should be >= font-size.

I've also made some annotations in your snippet.
(I've tested it successfully when corrected)

HTH,
Pascal

> -Ursprüngliche Nachricht-
> Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 18. Mai 2006 14:32
> An: fop-users@xmlgraphics.apache.org
> Betreff: RE: Scaling of Text
> 
> > -Original Message-
> > From: Kring, Rainer [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 18, 2006 12:56 PM
> > 
> > Hi Pascal,
> > 
> > how do you know the values for $width_unit, $height_unit and 
> > especially $max_x, $max_y. Could please give me an example?
> 
> That is your job! And you did it!
> 
> $width_unit and $height_unit should be =< your cell content size, 
> including unit.
> $max_x and $max_y depend on the text nested in svg snippet.
> You can make it dependant on text length and font-size if needed.
> 
> Pascal
> 
> > Here is what we tried:
> > 
> > 
> > 
> > 
> >  border-bottom-width="1.0pt"
> > border-left-style="solid" border-left-width="1.0pt"
> > border-right-style="solid" border-right-width="1.0pt"
> > border-top-style="solid" border-top-width="1.0pt" 
> text-align="center"
> > display-align="before">
> >  > color="#ff"
> > font-family="Kerstin1" font-size="10.0pt">
> > 
> >  > xmlns="http://www.w3.org/2000/svg";>
> >  > preserveAspectRatio="xMidYMid meet" viewBox="0 0 238 94>

Need to close the openning quote --^


> >  disable-output-escaping="no" 
> > select="price_outlet_entire"/>
> > 
> > 
> >  
> > -Ursprüngliche Nachricht-
> > Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
> > 
> > As a workaround, you can use svg, witch allows to scale
> content, using
> > preserveAspectRatio:
> > 
> >  > height="{$height_unit}"
> > xmlns="http://www.w3.org/2000/svg";>
> >  > preserveAspectRatio="xMidYMid meet" viewBox="0 0 {$max_x} {$max_y}">
> >  > text-anchor="{$alignement}">your text here
> > 
> > 
> > 
> > > -Original Message-
> > > From: Kring, Rainer [mailto:[EMAIL PROTECTED]
> >  
> > > thanks for the quick answer.
> > > 
> > > I think you got me wrong. We don't want to cut or wrap the
> > string. We
> > > have to resize the font. The font-size must be altered to fit the 
> > > string into the cell, so that the the string is neither
> bigger nor
> > > smaller then the cell.
> > > 
> > > -Ursprüngliche Nachricht-
> > > Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
> > > 
> > > this is a nasty one - basically the answer is no, if the
> > value of the
> > > table cell is text the best you can do is to insert non breaking 
> > > spaces between the letters t ensure it wraps and doesnt overflow.
> > > 
> > > this template does the trick:
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  > > select="$string"/>​
> > > 
> > > 
> > > -
> > > 
> > > 
> > > 
> > >  > > select="substring($string,1,floor($len div 2))"/>
> > > 
> > > 
> > > 
> > >  > > select="substring($string,floor($len div 2) + 1)"/>
> > >  > > select="ceiling($len div 2)"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Kring, Rainer wrote:
> > > 
> > > >We have a table-cell with a certain size defined by
> > column-width and
> > > >table-row height (example below). Now we want to scale the
> > > xsl:value-of
> > > >output to maximum size of the cell. Is there any c

RE: Scaling of Text

2006-05-18 Thread Pascal Sancho
> -Original Message-
> From: Kring, Rainer [mailto:[EMAIL PROTECTED] 
> 
> Hi Pascal,
> it's me again.
> 
> >That is your job! And you did it!
> 
> Bad job! It doesn't work.  :-|
> 
> 
> >$width_unit and $height_unit should be =< your cell content size, 
> >including
> unit.
> This part seems OK.
> 
> >$max_x and $max_y depend on the text nested in svg snippet.
> That's the point.
> 
> >You can make it dependant on text length and font-size if needed.
> 
> What's the correlation between the two values ($max_x, 
> $max_y), the text length and the font size?
> Could you give as an example, please? Did you try it yourself?

IMHO, viewBox attribute specifies 2 things:
 - the svg frame that should be visible
 - initial coordinates system of your drawing.

Therefore, viewBox size should be greater or equal to text box.
If not, your text should appear truncated.
In your case,
 - $max_x should be >= text-length
 - $max_y should be >= font-size.

I've also made some annotations in your snippet.
(I've tested it successfully when corrected)

HTH,
Pascal

> -Ursprüngliche Nachricht-
> Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 18. Mai 2006 14:32
> An: fop-users@xmlgraphics.apache.org
> Betreff: RE: Scaling of Text
> 
> > -Original Message-
> > From: Kring, Rainer [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 18, 2006 12:56 PM
> > 
> > Hi Pascal,
> > 
> > how do you know the values for $width_unit, $height_unit and 
> > especially $max_x, $max_y. Could please give me an example?
> 
> That is your job! And you did it!
> 
> $width_unit and $height_unit should be =< your cell content 
> size, including unit.
> $max_x and $max_y depend on the text nested in svg snippet.
> You can make it dependant on text length and font-size if needed.
> 
> Pascal
> 
> > Here is what we tried:
> > 
> > 
> > 
> > 
> >  border-bottom-width="1.0pt"
> > border-left-style="solid" border-left-width="1.0pt"
> > border-right-style="solid" border-right-width="1.0pt"
> > border-top-style="solid" border-top-width="1.0pt" 
> text-align="center"
> > display-align="before">
> >  > color="#ff"
> > font-family="Kerstin1" font-size="10.0pt">
> > 
> >  > xmlns="http://www.w3.org/2000/svg";>
> >  > preserveAspectRatio="xMidYMid meet" viewBox="0 0 238 94>

Need to close the openning quote --^


> >  disable-output-escaping="no" 
> > select="price_outlet_entire"/>
> > 
> > 
> >  
> > -Ursprüngliche Nachricht-
> > Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
> > 
> > As a workaround, you can use svg, witch allows to scale 
> content, using
> > preserveAspectRatio:
> > 
> >  > height="{$height_unit}"
> > xmlns="http://www.w3.org/2000/svg";>
> >  > preserveAspectRatio="xMidYMid meet" viewBox="0 0 {$max_x} {$max_y}">
> >  > text-anchor="{$alignement}">your text here
> > 
> > 
> > 
> > > -Original Message-
> > > From: Kring, Rainer [mailto:[EMAIL PROTECTED]
> >  
> > > thanks for the quick answer.
> > > 
> > > I think you got me wrong. We don't want to cut or wrap the
> > string. We
> > > have to resize the font. The font-size must be altered to fit the 
> > > string into the cell, so that the the string is neither 
> bigger nor 
> > > smaller then the cell.
> > > 
> > > -Ursprüngliche Nachricht-
> > > Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
> > > 
> > > this is a nasty one - basically the answer is no, if the
> > value of the
> > > table cell is text the best you can do is to insert non breaking 
> > > spaces between the letters t ensure it wraps and doesnt overflow.
> > > 
> > > this template does the trick:
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  > > select="$string"/>​
> > > 
> > > 
> > > -
> > > 
> > > 
> > > 
> > >  > > select="substring($string,1,floor($len div 2))"/>
> > > 
> > > 
> > > 
> > >  > > select="substring($string,floor($len div 2) + 1)"/>
> > >  > > select="ceiling($len div 2)"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Kring, Rainer wrote:
> > > 
> > > >We have a table-cell with a certain size defined by
> > column-width and
> > > >table-row height (example below). Now we want to scale the
> > > xsl:value-of
> > > >output to maximum size of the cell. Is there any chances
> > to get this
> > > >done with FOP 0.20.5?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > > > border-bottom-width="1.0pt"
> > > >border-left-style="solid" border-left-width="1.0pt"
> > > >border-right-style="solid" border-right-width="1.0pt"
> > > >border-top-style="solid" border-top-width="1.0pt" 
> > text-align="center"
> > > >display-align="before">
> > > > > > color="#ff"
> > > >font-family="Kerstin1" font-size="12.0pt">  > > >disable-output-escaping="no" select="price_outlet_entire"/>
> > > 

AW: Scaling of Text

2006-05-18 Thread Kring, Rainer
Hi Pascal,

it's me again.

>That is your job! And you did it!

Bad job! It doesn't work.  :-|


>$width_unit and $height_unit should be =< your cell content size, including
unit.

This part seems OK.


>$max_x and $max_y depend on the text nested in svg snippet.

That's the point.


>You can make it dependant on text length and font-size if needed.

What's the correlation between the two values ($max_x, $max_y), the text
length and the font size?
Could you give as an example, please? Did you try it yourself?


Thanks for your help!
Rainer

 

-Ursprüngliche Nachricht-
Von: Pascal Sancho [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 18. Mai 2006 14:32
An: fop-users@xmlgraphics.apache.org
Betreff: RE: Scaling of Text

> -Original Message-
> From: Kring, Rainer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 18, 2006 12:56 PM
> 
> Hi Pascal,
> 
> how do you know the values for $width_unit, $height_unit and 
> especially $max_x, $max_y. Could please give me an example?

That is your job! And you did it!

$width_unit and $height_unit should be =< your cell content size, including
unit.
$max_x and $max_y depend on the text nested in svg snippet.
You can make it dependant on text length and font-size if needed.

Pascal

> Here is what we tried:
> 
> 
> 
> 
>  border-left-style="solid" border-left-width="1.0pt"
> border-right-style="solid" border-right-width="1.0pt"
> border-top-style="solid" border-top-width="1.0pt" text-align="center"
> display-align="before">
>  color="#ff"
> font-family="Kerstin1" font-size="10.0pt">
> 
>  xmlns="http://www.w3.org/2000/svg";>
>preserveAspectRatio="xMidYMid meet" viewBox="0 0 238 94>
>select="price_outlet_entire"/>
>   
> 
>  
> -Ursprüngliche Nachricht-
> Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
> 
> As a workaround, you can use svg, witch allows to scale content, using
> preserveAspectRatio:
> 
>  height="{$height_unit}"
> xmlns="http://www.w3.org/2000/svg";>
>preserveAspectRatio="xMidYMid meet" viewBox="0 0 {$max_x} {$max_y}">
>text-anchor="{$alignement}">your text here
>   
> 
> 
> > -Original Message-
> > From: Kring, Rainer [mailto:[EMAIL PROTECTED]
>  
> > thanks for the quick answer.
> > 
> > I think you got me wrong. We don't want to cut or wrap the
> string. We
> > have to resize the font. The font-size must be altered to fit the 
> > string into the cell, so that the the string is neither bigger nor 
> > smaller then the cell.
> > 
> > -Ursprüngliche Nachricht-
> > Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
> > 
> > this is a nasty one - basically the answer is no, if the
> value of the
> > table cell is text the best you can do is to insert non breaking 
> > spaces between the letters t ensure it wraps and doesnt overflow.
> > 
> > this template does the trick:
> > 
> > 
> > 
> > 
> > 
> > 
> >  > select="$string"/>​
> > 
> > 
> > -
> > 
> > 
> > 
> >  > select="substring($string,1,floor($len div 2))"/>
> > 
> > 
> > 
> >  > select="substring($string,floor($len div 2) + 1)"/>
> >  > select="ceiling($len div 2)"/>
> > 
> > 
> > 
> > 
> > 
> > Kring, Rainer wrote:
> > 
> > >We have a table-cell with a certain size defined by
> column-width and
> > >table-row height (example below). Now we want to scale the
> > xsl:value-of
> > >output to maximum size of the cell. Is there any chances
> to get this
> > >done with FOP 0.20.5?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > > border-bottom-width="1.0pt"
> > >border-left-style="solid" border-left-width="1.0pt"
> > >border-right-style="solid" border-right-width="1.0pt"
> > >border-top-style="solid" border-top-width="1.0pt" 
> text-align="center"
> > >display-align="before">
> > > > color="#ff"
> > >font-family="Kerstin1" font-size="12.0pt">  > >disable-output-escaping="no" select="price_outlet_entire"/>
> > 
> > >   


-
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]



RE: Scaling of Text

2006-05-18 Thread Pascal Sancho
> -Original Message-
> From: Kring, Rainer [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 18, 2006 12:56 PM
> 
> Hi Pascal,
> 
> how do you know the values for $width_unit, $height_unit and 
> especially $max_x, $max_y. Could please give me an example?

That is your job! And you did it!

$width_unit and $height_unit should be =< your cell content size, including 
unit.
$max_x and $max_y depend on the text nested in svg snippet.
You can make it dependant on text length and font-size if needed.

Pascal

> Here is what we tried:
> 
> 
> 
> 
>  border-left-style="solid" border-left-width="1.0pt"
> border-right-style="solid" border-right-width="1.0pt"
> border-top-style="solid" border-top-width="1.0pt" text-align="center"
> display-align="before">
>  color="#ff"
> font-family="Kerstin1" font-size="10.0pt">
> 
>  xmlns="http://www.w3.org/2000/svg";>
>preserveAspectRatio="xMidYMid meet" viewBox="0 0 238 94>
>disable-output-escaping="no" select="price_outlet_entire"/>
>   
> 
>  
> -Ursprüngliche Nachricht-
> Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
> 
> As a workaround, you can use svg, witch allows to scale content, using
> preserveAspectRatio:
> 
>  height="{$height_unit}"
> xmlns="http://www.w3.org/2000/svg";>
>preserveAspectRatio="xMidYMid meet" viewBox="0 0 {$max_x} {$max_y}">
>text-anchor="{$alignement}">your text here
>   
> 
> 
> > -Original Message-
> > From: Kring, Rainer [mailto:[EMAIL PROTECTED]
>  
> > thanks for the quick answer.
> > 
> > I think you got me wrong. We don't want to cut or wrap the 
> string. We 
> > have to resize the font. The font-size must be altered to fit the 
> > string into the cell, so that the the string is neither bigger nor 
> > smaller then the cell.
> > 
> > -Ursprüngliche Nachricht-
> > Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
> > 
> > this is a nasty one - basically the answer is no, if the 
> value of the 
> > table cell is text the best you can do is to insert non breaking 
> > spaces between the letters t ensure it wraps and doesnt overflow.
> > 
> > this template does the trick:
> > 
> > 
> > 
> > 
> > 
> > 
> >  > select="$string"/>​
> > 
> > 
> > -
> > 
> > 
> > 
> >  > select="substring($string,1,floor($len div 2))"/>
> > 
> > 
> > 
> >  > select="substring($string,floor($len div 2) + 1)"/>
> >  > select="ceiling($len div 2)"/>
> > 
> > 
> > 
> > 
> > 
> > Kring, Rainer wrote:
> > 
> > >We have a table-cell with a certain size defined by 
> column-width and 
> > >table-row height (example below). Now we want to scale the
> > xsl:value-of
> > >output to maximum size of the cell. Is there any chances 
> to get this 
> > >done with FOP 0.20.5?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > > border-bottom-width="1.0pt"
> > >border-left-style="solid" border-left-width="1.0pt"
> > >border-right-style="solid" border-right-width="1.0pt"
> > >border-top-style="solid" border-top-width="1.0pt" 
> text-align="center"
> > >display-align="before">
> > > > color="#ff"
> > >font-family="Kerstin1" font-size="12.0pt">  > >disable-output-escaping="no" select="price_outlet_entire"/>
> > 
> > >   


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



Re: Superscript and Subscript with custom fonts

2006-05-18 Thread Jeremias Maerki
Verdana works fine for me with FOP 0.92beta and FOP Trunk. Must be
something else that's wrong on your side.

On 18.05.2006 11:36:57 Jordan Soet wrote:
> Hmm, actually, I did that now, but with the new font metrics the
> character 'â' has stopped showing up correctly (it's shown as #). I'm
> not sure if I was just lucky that this was working before or if it's a
> bug now, and I'm not sure what other characters don't show up properly.
> 
> Thanks,
> Jordan
> 
> -Original Message-
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 18, 2006 4:00 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Superscript and Subscript with custom fonts
> 
> Please recreate the font metric file with FOP 0.92beta and try again.
> Some TrueType fonts don't contain an explicit value for "x-Height". This
> value is used in the computation of the super- and subscript position.
> If you look at your metrics file you'll see that x-height is "0".
> 
> I've added code in 0.92beta that derives the x-Height value from glyph
> metrics inside the fonts. Recreating the font metrics will solve your
> problem.
> 
> On 18.05.2006 09:51:27 Jordan Soet wrote:
> > I'm having a problem with superscripts and subscripts in fop 0.92beta when
> > using custom fonts. The superscripts and subscripts work fine with the
> > default fonts, but then not with the custom fonts that I'm using. I added
> > them in using the specified method, from the ttf files and they seem to work
> > fine otherwise. In the meantime I just worked around it by manually shifting
> > the baseline 5pt up or down. I've attached a sample file as well as my font
> > metric file.



Jeremias Maerki


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



AW: Scaling of Text

2006-05-18 Thread Kring, Rainer
Hi Pascal,

how do you know the values for $width_unit, $height_unit and especially
$max_x, $max_y. Could please give me an example?

Here is what we tried:








http://www.w3.org/2000/svg";>



 

Thank you very much!

Rainer






-Ursprüngliche Nachricht-
Von: Pascal Sancho [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 18. Mai 2006 11:33
An: fop-users@xmlgraphics.apache.org
Betreff: RE: Scaling of Text

Hi,

As a workaround, you can use svg, witch allows to scale content, using
preserveAspectRatio:

http://www.w3.org/2000/svg";>

your text here



 
Pascal
 
 

> -Original Message-
> From: Kring, Rainer [mailto:[EMAIL PROTECTED]
 
> thanks for the quick answer.
> 
> I think you got me wrong. We don't want to cut or wrap the string. We 
> have to resize the font. The font-size must be altered to fit the 
> string into the cell, so that the the string is neither bigger nor 
> smaller then the cell.
> 
> -Ursprüngliche Nachricht-
> Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
> 
> this is a nasty one - basically the answer is no, if the value of the 
> table cell is text the best you can do is to insert non breaking 
> spaces between the letters t ensure it wraps and doesnt overflow.
> 
> this template does the trick:
> 
> 
> 
> 
> 
> 
>  select="$string"/>​
> 
> 
> -
> 
> 
> 
>  select="substring($string,1,floor($len div 2))"/>
> 
> 
> 
>  select="substring($string,floor($len div 2) + 1)"/>
>  select="ceiling($len div 2)"/>
> 
> 
> 
> 
> 
> Kring, Rainer wrote:
> 
> >We have a table-cell with a certain size defined by column-width and 
> >table-row height (example below). Now we want to scale the
> xsl:value-of
> >output to maximum size of the cell. Is there any chances to get this 
> >done with FOP 0.20.5?
> >
> >Thank you very much!
> >Rainer
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > border-bottom-width="1.0pt"
> >border-left-style="solid" border-left-width="1.0pt"
> >border-right-style="solid" border-right-width="1.0pt"
> >border-top-style="solid" border-top-width="1.0pt" text-align="center"
> >display-align="before">
> > color="#ff"
> >font-family="Kerstin1" font-size="12.0pt">  >disable-output-escaping="no" select="price_outlet_entire"/>
> 
> >   


-
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]



Re: space-after at 0.92b

2006-05-18 Thread Chris Bowditch

Dirk Bromberg wrote:


Hi all,

when i need some space after some fo elements i set a space-after="x mm" 
to these elements.


but at 0.92b there are no spaces in output. (like 
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-space-after 
says...)


spaces will be collapsed if they are the last space in a reference area. 
 This is the correct behaviour defined in the XSL-FO specification.



so i use margin-bottom="x mm".
is this a good workaround? is there a better one?


You can override the behaviour by setting 
space-after.conditionality="retain"


Chris



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



AW: space-after at 0.92b

2006-05-18 Thread andrei . meleschkin
I use padding-bottom="x mm"
It works with 0.20.5 and 0.92 too.

Regards 

Andrei 

-Ursprüngliche Nachricht-
Von: Dirk Bromberg [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 18. Mai 2006 10:45
An: fop-users@xmlgraphics.apache.org
Betreff: space-after at 0.92b

Hi all,

when i need some space after some fo elements i set a space-after="x mm" 
to these elements.

but at 0.92b there are no spaces in output. (like 
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-space-after 
says...)
so i use margin-bottom="x mm".
is this a good workaround? is there a better one?


Thanks.

Dirk

-
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]



RE: Superscript and Subscript with custom fonts

2006-05-18 Thread Jordan Soet
Hmm, actually, I did that now, but with the new font metrics the character 'β' 
has stopped showing up correctly (it's shown as #). I'm not sure if I was just 
lucky that this was working before or if it's a bug now, and I'm not sure what 
other characters don't show up properly.

Thanks,
Jordan

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 18, 2006 4:00 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Superscript and Subscript with custom fonts

Please recreate the font metric file with FOP 0.92beta and try again.
Some TrueType fonts don't contain an explicit value for "x-Height". This
value is used in the computation of the super- and subscript position.
If you look at your metrics file you'll see that x-height is "0".

I've added code in 0.92beta that derives the x-Height value from glyph
metrics inside the fonts. Recreating the font metrics will solve your
problem.

On 18.05.2006 09:51:27 Jordan Soet wrote:
> I'm having a problem with superscripts and subscripts in fop 0.92beta when
> using custom fonts. The superscripts and subscripts work fine with the
> default fonts, but then not with the custom fonts that I'm using. I added
> them in using the specified method, from the ttf files and they seem to work
> fine otherwise. In the meantime I just worked around it by manually shifting
> the baseline 5pt up or down. I've attached a sample file as well as my font
> metric file.


Jeremias Maerki


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



RE: Scaling of Text

2006-05-18 Thread Pascal Sancho
Hi,

As a workaround, you can use svg, witch allows to scale content, using 
preserveAspectRatio:

http://www.w3.org/2000/svg";>

your 
text here



 
Pascal
 
 

> -Original Message-
> From: Kring, Rainer [mailto:[EMAIL PROTECTED] 
 
> thanks for the quick answer.
> 
> I think you got me wrong. We don't want to cut or wrap the 
> string. We have to resize the font. The font-size must be 
> altered to fit the string into the cell, so that the the 
> string is neither bigger nor smaller then the cell.
> 
> -Ursprüngliche Nachricht-
> Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
> 
> this is a nasty one - basically the answer is no, if the 
> value of the table cell is text the best you can do is to 
> insert non breaking spaces between the letters t ensure it 
> wraps and doesnt overflow.
> 
> this template does the trick:
> 
> 
> 
> 
> 
> 
>  select="$string"/>​
> 
> 
> -
> 
> 
> 
>  select="substring($string,1,floor($len div 2))"/>
> 
> 
> 
>  select="substring($string,floor($len div 2) + 1)"/>
>  select="ceiling($len div 2)"/>
> 
> 
> 
> 
> 
> Kring, Rainer wrote:
> 
> >We have a table-cell with a certain size defined by column-width and 
> >table-row height (example below). Now we want to scale the 
> xsl:value-of 
> >output to maximum size of the cell. Is there any chances to get this 
> >done with FOP 0.20.5?
> >
> >Thank you very much!
> >Rainer
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > border-bottom-width="1.0pt"
> >border-left-style="solid" border-left-width="1.0pt"
> >border-right-style="solid" border-right-width="1.0pt"
> >border-top-style="solid" border-top-width="1.0pt" text-align="center"
> >display-align="before">
> > color="#ff"
> >font-family="Kerstin1" font-size="12.0pt">  >disable-output-escaping="no" select="price_outlet_entire"/> 
>  
> >   


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



space-after at 0.92b

2006-05-18 Thread Dirk Bromberg

Hi all,

when i need some space after some fo elements i set a space-after="x mm" 
to these elements.


but at 0.92b there are no spaces in output. (like 
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-space-after 
says...)

so i use margin-bottom="x mm".
is this a good workaround? is there a better one?


Thanks.

Dirk

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



AW: Scaling of Text

2006-05-18 Thread Kring, Rainer
Hi Jimmy,

thanks for the quick answer.

I think you got me wrong. We don't want to cut or wrap the string. We have
to resize the font. The font-size must be altered to fit the string into the
cell, so that the the string is neither bigger nor smaller then the cell.




-Ursprüngliche Nachricht-
Von: Jimmy Dixon [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 18. Mai 2006 10:15
An: fop-users@xmlgraphics.apache.org
Betreff: Re: Scaling of Text

this is a nasty one - basically the answer is no, if the value of the table
cell is text the best you can do is to insert non breaking spaces between
the letters t ensure it wraps and doesnt overflow.

this template does the trick:






​


-














Kring, Rainer wrote:

>We have a table-cell with a certain size defined by column-width and 
>table-row height (example below). Now we want to scale the xsl:value-of 
>output to maximum size of the cell. Is there any chances to get this 
>done with FOP 0.20.5?
>
>Thank you very much!
>Rainer
>
>
>
>
>
>
>
>
>
>border-left-style="solid" border-left-width="1.0pt"
>border-right-style="solid" border-right-width="1.0pt"
>border-top-style="solid" border-top-width="1.0pt" text-align="center"
>display-align="before">
>font-family="Kerstin1" font-size="12.0pt"> disable-output-escaping="no" select="price_outlet_entire"/>  
>   
>
>
>   Rainer Kring
>   IT Analyst Applications
>   mailto:[EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>

-- 
Jimmy Dixon, Perfiliate Technologies

email   :  [EMAIL PROTECTED]
phone   :  +44 (0)191 241 6500

Registered Office:
Perfiliate Technologies Limited
7-15 Pink Lane,
Newcastle upon Tyne. NE1 5DW
Registered No. 3783384 in the UK
 
Telephone +44 (0)191 241 6500
Facsimile +44 (0)191 241 9302
 
www.perfiliate.com
 
Please note that electronic mail may be monitored.
 
This e-mail is confidential. If you received it by mistake, please let us
know and then delete it from your system; you should not copy, disclose, or
distribute its contents to anyone nor act in reliance on this e-mail, as
this is prohibited and may be unlawful. We check all emails for viruses, but
please note that we do not accept liability for any viruses which may be
transmitted in or with this email.


-
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]



Re: disable-output-escaping in xsl

2006-05-18 Thread Chris Bowditch

Edward McMasters wrote:




paramString=""

and then in my XSL:



but I see the  and  in my PDF.  I
tried setting the value-of to disable-output-escaping
(this works in HTML) but this did not help:


This is really a pure XSLT question, so you would have got a faster 
response on the XSL Mulberry list, linked from FOP's website:


http://xmlgraphics.apache.org/fop/maillist.html#xslt-mulberry






This works for HTML because the result tree is serialized to disk 
immediately, but when generating PDF the process is XML+XSL-->FO-->PDF. 
So the result tree is not serialized before it is presented to FOP for 
processing. So whilst the text has "" inside it the memory 
representation is still text not markup. Its only the process of 
serialization and re-parsing that will change the  into 
markup. I'm not sure of a workaround. Ask on the mulberry list.


Chris



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



Re: Scaling of Text

2006-05-18 Thread Jimmy Dixon
this is a nasty one - basically the answer is no, if the value of the 
table cell is text the best you can do is to insert non breaking spaces 
between the letters t ensure it wraps and doesnt overflow.


this template does the trick:


   
   
   
   
   ​
   
   
   -
   
   
   
   select="substring($string,1,floor($len div 2))"/>

   
   
   
   select="substring($string,floor($len div 2) + 1)"/>

   
   
   
   


Kring, Rainer wrote:


We have a table-cell with a certain size defined by column-width and
table-row height (example below). Now we want to scale the xsl:value-of
output to maximum size of the cell. Is there any chances to get this done
with FOP 0.20.5?

Thank you very much!
Rainer



















Rainer Kring
IT Analyst Applications
mailto:[EMAIL PROTECTED]


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


 



--
Jimmy Dixon, Perfiliate Technologies

email   :  [EMAIL PROTECTED]
phone   :  +44 (0)191 241 6500

Registered Office:
Perfiliate Technologies Limited
7-15 Pink Lane,
Newcastle upon Tyne. NE1 5DW
Registered No. 3783384 in the UK

Telephone +44 (0)191 241 6500
Facsimile +44 (0)191 241 9302

www.perfiliate.com

Please note that electronic mail may be monitored.

This e-mail is confidential. If you received it by mistake, please let us know 
and then delete it from your system; you should not copy, disclose, or 
distribute its contents to anyone nor act in reliance on this e-mail, as this 
is prohibited and may be unlawful. We check all emails for viruses, but please 
note that we do not accept liability for any viruses which may be transmitted 
in or with this email.


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



Scaling of Text

2006-05-18 Thread Kring, Rainer
We have a table-cell with a certain size defined by column-width and
table-row height (example below). Now we want to scale the xsl:value-of
output to maximum size of the cell. Is there any chances to get this done
with FOP 0.20.5?

Thank you very much!
Rainer



















Rainer Kring
IT Analyst Applications
mailto:[EMAIL PROTECTED]


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



Re: Superscript and Subscript with custom fonts

2006-05-18 Thread Jeremias Maerki
Please recreate the font metric file with FOP 0.92beta and try again.
Some TrueType fonts don't contain an explicit value for "x-Height". This
value is used in the computation of the super- and subscript position.
If you look at your metrics file you'll see that x-height is "0".

I've added code in 0.92beta that derives the x-Height value from glyph
metrics inside the fonts. Recreating the font metrics will solve your
problem.

On 18.05.2006 09:51:27 Jordan Soet wrote:
> I'm having a problem with superscripts and subscripts in fop 0.92beta when
> using custom fonts. The superscripts and subscripts work fine with the
> default fonts, but then not with the custom fonts that I'm using. I added
> them in using the specified method, from the ttf files and they seem to work
> fine otherwise. In the meantime I just worked around it by manually shifting
> the baseline 5pt up or down. I've attached a sample file as well as my font
> metric file.


Jeremias Maerki


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



Superscript and Subscript with custom fonts

2006-05-18 Thread Jordan Soet
I'm having a problem with superscripts and subscripts in fop 0.92beta when
using custom fonts. The superscripts and subscripts work fine with the
default fonts, but then not with the custom fonts that I'm using. I added
them in using the specified method, from the ttf files and they seem to work
fine otherwise. In the meantime I just worked around it by manually shifting
the baseline 5pt up or down. I've attached a sample file as well as my font
metric file.

Thanks,
Jordan


temp.fo
Description: Binary data
Verdana72701005-209-49-206144610003300TRUETYPEWinAnsiEncoding0255
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]