Re: Alignment question

2002-11-18 Thread Oleg Tkachenko
Ries Spruit wrote:
Ofcourse this is the function I need. I can't really get it to behave right 
though.
If I use this:
A Price€ 250
the result is this:
|A   |
|Price..$|
| 250|
There is a bug in line breaking implementation preventing using leader 
in such a situation, see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7490
and http://marc.theaimsgroup.com/?l=fop-dev&m=101870987823875&w=2.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: static-content/odd/even

2002-11-18 Thread Oleg Tkachenko
Wolle wrote:
i developp a fo:stylesheet with different heads for odd and even pages
inside a static content.
although i used the same logic of presentation, the spaces between a rule
and some text are different.
Could you be more specific what's wrong? I see at least one problem:




97+2+1 = 100%, but where is a place for a page-number itself?
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: block-container

2002-11-18 Thread Harm Kok
Hi Sander,
The limitation is that fo:block-container can only be a direct child of 
fo:flow. So if you put a fo:block-container in a fo:block you get 
strange error messages and the fo:block-container disappears.

Hope this helps,
Harm Kok
Brienen, SJP (Sander) wrote:
Hello all,
I read in the documentation that a block-container is only limited
implemented. What does this mean? How does it behave in different
situations? Can anybody give me a clue.
Thanks.
regards
Sander Brienen

De informatie opgenomen in dit bericht kan vertrouwelijk zijn en 
is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht 
onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en 
de afzender direct te informeren door het bericht te retourneren. 

The information contained in this message may be confidential 
and is intended to be exclusively for the addressee. Should you 
receive this message unintentionally, please do not use the contents 
herein and notify the sender immediately by return e-mail.

 





block-container

2002-11-18 Thread Brienen, SJP (Sander)
Hello all,

I read in the documentation that a block-container is only limited
implemented. What does this mean? How does it behave in different
situations? Can anybody give me a clue.

Thanks.

regards
Sander Brienen



De informatie opgenomen in dit bericht kan vertrouwelijk zijn en 
is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht 
onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en 
de afzender direct te informeren door het bericht te retourneren. 

The information contained in this message may be confidential 
and is intended to be exclusively for the addressee. Should you 
receive this message unintentionally, please do not use the contents 
herein and notify the sender immediately by return e-mail.




RE: Alignment question

2002-11-18 Thread Ries Spruit
Thanks!

Ofcourse this is the function I need. I can't really get it to behave right 
though.

If I use this:

A Price€ 250

the result is this:

|A   |
|Price..$|
| 250|

The block is a child element of another block and then fo:flow. No alignment 
properties are set on the flow region or the block regions. Setting alignment 
to left or start does not make any difference.

Is there another special setting required or might it just be the 
implementation? I can imagine the algorithm for the leader length just 
calculating its length based on the last word on the left and the first word on 
the right instead of the endposition on the left and length of the text on the 
right.

Ries Spruit




-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED] 
Sent: maandag 18 november 2002 14:20
To: [EMAIL PROTECTED]
Subject: Re: Alignment question


Hi,

This could be done with fo:leader with space.
You can use the default lengths which will exapnd to fill the space.

I'm not sure if this is implemented properly yet.


On Mon, 2002-11-18 at 14:05, Ries Spruit wrote:
> Hello,
> 
> Im a trying to achieve something like this:
> 
> --
> --
> --
> |This is price text in a normal paragraph
> $ 250,00|
> |
> |
> |
> | 
> 
> or
> 
> --
> --
> --
> |This is a very long price text which will force the price to the next
> line but  |
> |it should still be on the right.
> $ 250,00|
> 
> >From this element structure:
> 
> 
>   This is a price text in a normal paragraph
>   $ 250,00
> 
> 
>  
> The trick is that I want to allow the description to be as long as 
> necessary. The price should be appended to the description but aligned 
> to the right of the block that the priceText element is used in.
>  
> Does anyone know of anyway of doing this without tables?
>  
> Kind regards,
>  
> Ries Spruit
>  



Re: Embed font results in FontFormatException ?

2002-11-18 Thread Jeremias Maerki

On 18.11.2002 15:04:41 Dennis Myrén wrote:
> Hi.
> Do you have any advice for me now, to get the text elements rendered 
> correctly?

Just have a bit of patience (at most 1-2 days) until I have an improved
Type 1 font loader. I'll send you a slightly altered PFB file offlist
that you could check. This altered file is embedded correctly with FOP.

> Did you try to use my font in a PDF?

Your font is ok.

> Sorry if bothering you all the time.

Don't worry. I've got time now.

Jeremias Maerki



RE: Embed font results in FontFormatException ?

2002-11-18 Thread Dennis Myrén
Hi.
Do you have any advice for me now, to get the text elements rendered correctly?
Did you try to use my font in a PDF?

Sorry if bothering you all the time.

Regards

Dennis

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: 18. november 2002 14:56
To: [EMAIL PROTECTED]
Subject: Re: Embed font results in FontFormatException ?

Hi Dennis

I was totally blind when I read your initial mail. Sorry, I was wasting
your time. See my comments below.

On 15.11.2002 11:33:20 Dennis Myrén wrote:
> Hi there.
>  
> I am using the FOP tools to generate PDF output from FO documents.
> In the PDF document, i need to embed a PostScript Font named 
> StandardGroteskBSK.
> This is my userconfig.xml file:
> 
> 
>  metrics-file="C:\Inetpub\wwwroot\DVDebugger\bin\Debug\FontMetrics\SK021___.xml"
>  kerning="yes" 
> embed-file="C:\Program Files\Adobe\Adobe Type 
> Manager\psfonts\SK021___.PFB">
>/>
> 
>  metrics-file="C:\Inetpub\wwwroot\DVDebugger\bin\Debug\FontMetrics\SK051___.xml"
>  kerning="yes" 
> embed-file="C:\Program Files\Adobe\Adobe Type 
> Manager\psfonts\SK051___.PFB">
>   
> 
>   
> 
>  
> I get no errors during the FOP.bat batch job while generating the PDF.
> However, text in the PDF document(etc. cells in tables) are very bad aligned, 
> it looks awful.
>  
> I read that sometimes one need to manually alter the PFMReader generated XML 
> font metrics file,
> to correct the approximated values.
> I followed an example to do that with my XML metrics file, but the result is 
> as bad as before.
>  
> When placing the PDF object in an Illustrator 10 document, a messagebox pops 
> up:
> "The document "C:\Inetpub\wwwroot\DVDebugger\bin\Debug\output.PDF" contains 
> objects that have been interpreted."
> "Missing Type1 fonts have been substituted with the default font".
> As the PDF elements are no longer objects, i cant select a text element to 
> see if it is the correct font.

I think I know what causes this problem. I believe that the PFB file is
not embedded correctly into the PDF file. There are little segment
prefixes in the PFB file that are not directly described in the Type 1
specification, but only in the "Download Fonts" spec from Adobe. Adobe
Acrobat doesn't mind that, but maybe Illustrator doesn't like that. I'll
try to fix that. The only problem I have is that I don't have Adobe
Illustrator to test afterwards. I'll send you a PDF to check when I've
got it.

> I then tried the parameter "-print" with FOP.bat, 
> to print the document directly.
> First I embedded Verdana with this print job, that worked.
> Then i used this PostScript font StandardGroteskBSK, which raised a 
> FontFormatException.

This MUST fail. "-print" invokes the AWTRenderer. AWT does only support
TrueType font to be loaded from a file, but not Type 1 fonts. That's why
you get an error. So this means you can't use a Type 1 font if you want
to use the AWT/Print renderer. Try removing the embed-file attribute in
the userconfig.xml and check if the font is properly used if it's
installed on your system. Of course, you will have to reenable
embed-file if you generate a PDF with embedded fonts.

> This is the debug output:
>  
> C:\Program Files\Batik\fop-0.20.4>java -cp 
> build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib\xm
> l-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
>  org.apache.fop.apps.Fop -d -c "C:\Ine
> tpub\wwwroot\DVDebugger\bin\Debug\fopconfig.xml" 
> "C:\Inetpub\wwwroot\DVDebugger\bin\Debug\out.FO" -print
> [DEBUG] Input mode:
> [DEBUG] FO
> [DEBUG] fo input file: C:\Inetpub\wwwroot\DVDebugger\bin\Debug\out.FO
> [DEBUG] Output mode:
> [DEBUG] print directly
> [DEBUG] OPTIONS
> [DEBUG] user configuration file: 
> C:\Inetpub\wwwroot\DVDebugger\bin\Debug\fopconfig.xml
> [DEBUG] debug mode on
> [DEBUG] dump configuration
> [DEBUG] quiet mode on
> [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [DEBUG] reading user configuration file
> [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [DEBUG] base directory: file:/C:/Inetpub/wwwroot/DVDebugger/bin/Debug/
> [ERROR] FOP 0.20.4
> [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [ERROR] Logger not set
> [INFO] building formatting object tree
> [DEBUG] setting up fonts
> [INFO] [1]
> [DEBUG] create embedFont C:\Program Files\Adobe\Adobe Type 
> Manager\psfonts\SK021___.PFB
> [ERROR] Failed to create embedFont C:\Program Files\Adobe\Adobe Type 
> Manager\psfonts\SK021___.PFB : java.awt.FontFormatExc
> eption: Unable to create font - bad font data
> [WARNING] table-layout=auto is not supported, using fixed!
> [WARNING] table-layout=auto is not supported, using fixed!
> [WARNING] table-layout=auto is not supported, using fixed!
> [WARNING] table-layout=auto is not supported, using fixed!
> [WARNING] table-layout=auto is not supported, using fixed!
> [INFO] Parsing of document complete, stopp

Re: Embed font results in FontFormatException ?

2002-11-18 Thread Jeremias Maerki
Hi Dennis

I was totally blind when I read your initial mail. Sorry, I was wasting
your time. See my comments below.

On 15.11.2002 11:33:20 Dennis Myrén wrote:
> Hi there.
>  
> I am using the FOP tools to generate PDF output from FO documents.
> In the PDF document, i need to embed a PostScript Font named 
> StandardGroteskBSK.
> This is my userconfig.xml file:
> 
> 
>  metrics-file="C:\Inetpub\wwwroot\DVDebugger\bin\Debug\FontMetrics\SK021___.xml"
>  kerning="yes" 
> embed-file="C:\Program Files\Adobe\Adobe Type 
> Manager\psfonts\SK021___.PFB">
>/>
> 
>  metrics-file="C:\Inetpub\wwwroot\DVDebugger\bin\Debug\FontMetrics\SK051___.xml"
>  kerning="yes" 
> embed-file="C:\Program Files\Adobe\Adobe Type 
> Manager\psfonts\SK051___.PFB">
>   
> 
>   
> 
>  
> I get no errors during the FOP.bat batch job while generating the PDF.
> However, text in the PDF document(etc. cells in tables) are very bad aligned, 
> it looks awful.
>  
> I read that sometimes one need to manually alter the PFMReader generated XML 
> font metrics file,
> to correct the approximated values.
> I followed an example to do that with my XML metrics file, but the result is 
> as bad as before.
>  
> When placing the PDF object in an Illustrator 10 document, a messagebox pops 
> up:
> "The document "C:\Inetpub\wwwroot\DVDebugger\bin\Debug\output.PDF" contains 
> objects that have been interpreted."
> "Missing Type1 fonts have been substituted with the default font".
> As the PDF elements are no longer objects, i cant select a text element to 
> see if it is the correct font.

I think I know what causes this problem. I believe that the PFB file is
not embedded correctly into the PDF file. There are little segment
prefixes in the PFB file that are not directly described in the Type 1
specification, but only in the "Download Fonts" spec from Adobe. Adobe
Acrobat doesn't mind that, but maybe Illustrator doesn't like that. I'll
try to fix that. The only problem I have is that I don't have Adobe
Illustrator to test afterwards. I'll send you a PDF to check when I've
got it.

> I then tried the parameter "-print" with FOP.bat, 
> to print the document directly.
> First I embedded Verdana with this print job, that worked.
> Then i used this PostScript font StandardGroteskBSK, which raised a 
> FontFormatException.

This MUST fail. "-print" invokes the AWTRenderer. AWT does only support
TrueType font to be loaded from a file, but not Type 1 fonts. That's why
you get an error. So this means you can't use a Type 1 font if you want
to use the AWT/Print renderer. Try removing the embed-file attribute in
the userconfig.xml and check if the font is properly used if it's
installed on your system. Of course, you will have to reenable
embed-file if you generate a PDF with embedded fonts.

> This is the debug output:
>  
> C:\Program Files\Batik\fop-0.20.4>java -cp 
> build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib\xm
> l-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
>  org.apache.fop.apps.Fop -d -c "C:\Ine
> tpub\wwwroot\DVDebugger\bin\Debug\fopconfig.xml" 
> "C:\Inetpub\wwwroot\DVDebugger\bin\Debug\out.FO" -print
> [DEBUG] Input mode:
> [DEBUG] FO
> [DEBUG] fo input file: C:\Inetpub\wwwroot\DVDebugger\bin\Debug\out.FO
> [DEBUG] Output mode:
> [DEBUG] print directly
> [DEBUG] OPTIONS
> [DEBUG] user configuration file: 
> C:\Inetpub\wwwroot\DVDebugger\bin\Debug\fopconfig.xml
> [DEBUG] debug mode on
> [DEBUG] dump configuration
> [DEBUG] quiet mode on
> [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [DEBUG] reading user configuration file
> [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [DEBUG] base directory: file:/C:/Inetpub/wwwroot/DVDebugger/bin/Debug/
> [ERROR] FOP 0.20.4
> [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [ERROR] Logger not set
> [INFO] building formatting object tree
> [DEBUG] setting up fonts
> [INFO] [1]
> [DEBUG] create embedFont C:\Program Files\Adobe\Adobe Type 
> Manager\psfonts\SK021___.PFB
> [ERROR] Failed to create embedFont C:\Program Files\Adobe\Adobe Type 
> Manager\psfonts\SK021___.PFB : java.awt.FontFormatExc
> eption: Unable to create font - bad font data
> [WARNING] table-layout=auto is not supported, using fixed!
> [WARNING] table-layout=auto is not supported, using fixed!
> [WARNING] table-layout=auto is not supported, using fixed!
> [WARNING] table-layout=auto is not supported, using fixed!
> [WARNING] table-layout=auto is not supported, using fixed!
> [INFO] Parsing of document complete, stopping renderer
>  
>  
>  
> Does this mean that the font files are corrupt or something?
>  
> Please help me.



Jeremias Maerki



Re: Alignment question

2002-11-18 Thread Keiron Liddle
Hi,

This could be done with fo:leader with space.
You can use the default lengths which will exapnd to fill the space.

I'm not sure if this is implemented properly yet.


On Mon, 2002-11-18 at 14:05, Ries Spruit wrote:
> Hello,
> 
> Im a trying to achieve something like this:
> 
> 
> --
> |This is price text in a normal paragraph
> $ 250,00|
> |
> |
> |
> | 
> 
> or 
> 
> 
> --
> |This is a very long price text which will force the price to the next
> line but  |
> |it should still be on the right.
> $ 250,00|
> 
> >From this element structure:
> 
> 
>   This is a price text in a normal paragraph
>   $ 250,00
> 
> 
>  
> The trick is that I want to allow the description to be as long as
> necessary. The price should be appended to the description but aligned
> to the right of the block that the priceText element is used in. 
>  
> Does anyone know of anyway of doing this without tables?
>  
> Kind regards,
>  
> Ries Spruit
>  




Alignment question

2002-11-18 Thread Ries Spruit
Title: Message



Hello,Im a trying to achieve 
something like 
this:--|This 
is price text in a normal 
paragraph$ 
250,00||    
||    
| 
or 
--|This 
is a very long price text which will force the price to the next line 
but  ||it should still be on the 
right.$ 
250,00|From this element 
structure:  This is a price 
text in a normal paragraph  $ 
250,00
 
The trick is that I want to allow the 
description to be as long as necessary. The price should be appended to the 
description but aligned to the right of the block that the priceText element is 
used in. 
 
Does anyone know of anyway of doing this without 
tables?
 
Kind regards,
 
Ries Spruit
 


Re: No more DTM IDs available

2002-11-18 Thread lepekhine
A lot if thanks! It helps.
Alexander

> lepekhine wrote:
> > I use fop 0.20.4 with jdk 1.4.1 in RH Linux 7.3
> > I have got the error
> > org.apache.xml.dtm.DTMException No more DTM Ids are available
> > while processing a document with docbook-xsl-1.55.0
> > This error didn't appear earlier in Windows with jdk 1.3.1.
> > Another document  wich looks very like that compiles succefully.
> > I wonder, could anybody tell me what may be the reason of the error
> > and how can I get rid of it?
>
> A matter of fact is that jdk1.4.? contains buggy xalan version and that's
> default xslt processor in use within a jaxp environment. You have to
> override it either by latest xalan version or by xalan from FOP's
> distribution using java endorsed mechanism. Take a look at
> http://xml.apache.org/security/install.html.



Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-18 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
- What is second logger ?
See at FOPServlet.java example:
import org.apache.avalon.framework.logger.ConsoleLogger;
import org.apache.avalon.framework.logger.Logger;
...
Logger log = new ConsoleLogger(ConsoleLogger.LEVEL_WARN);
MessageHandler.setScreenLogger(log);
driver.setLogger(log);
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


static-content/odd/even

2002-11-18 Thread Wolle
hi group!

i developp a fo:stylesheet with different heads for odd and even pages
inside a static content.

although i used the same logic of presentation, the spaces between a rule
and some text are different.

has anybody else made this experinence? 

here are some code-snippets:


  

  
  
  
  


  
  

  







 
 


 


  

  
  
  
  






  







 

 

 

regards

wolfgang




























Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-18 Thread Jiri_Nejedly


To Jeremias Maerki:
---
... If you run your sample form the command line with the -d option, you
should
get a better error message.

- The batch works ok (see next)

...Maybe you didn't set the second logger in
the MessageHandler class correctly

- What is second logger ?

To Oleg Tkachenko:
--
...Show us your font definition in userconfig.xml and FOP's debug trace.

I include userconfig.xml here, but nothing unusual in it:

(See attached file: userconfig.xml)

"[INFO]: building formatting object tree
[INFO]: [1]"

- this is all I get from logger when run from servlet

This command line works OK:

fop -d -c C:\javaProject\Klient\public_html\dt\fop\userconfig.xml -fo d:
\test.fo -pdf d:\output.pdf

[DEBUG] Input mode:
[DEBUG] FO
[DEBUG] fo input file: d:\test.fo
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: d:\output.pdf
[DEBUG] OPTIONS
[DEBUG] user configuration file: C:
\javaProject\Klient\public_html\dt\fop\userconfig.xml
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] reading user configuration file
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] base directory: file:/d:/
[INFO] FOP 0.20.4
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[INFO] [1]
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[WARNING] table-layout=auto is not supported, using fixed!
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[WARNING] table-layout=auto is not supported, using fixed!
[DEBUG] Last page-sequence produced 1 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 1376Kb
[DEBUG] Current heap size: 2450Kb
[DEBUG] Total memory used: 1074Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 1042ms
[DEBUG] Pages rendered: 1
[DEBUG] Avg render time: 1042ms/page


I show here also my servlet  code (simplified) :


FileOutputStream log_fos = new FileOutputStream(logFile);
PrintStream log_ps = new PrintStream(log_fos);
if (log == null) {
 Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
 PatternFormatter formatter = new PatternFormatter(
"[%{priority}]: %{message}\n%{throwable}" );
 LogTarget target = null;
 target = new StreamTarget(log_ps, formatter);
 hierarchy.setDefaultLogTarget(target);
 log = hierarchy.getLoggerFor("fop");
 log.setPriority(Priority.DEBUG);
}
FileInputStream file = new FileInputStream(FO_File);
Driver driver = new Driver();
driver.setLogger(new org.apache.avalon.framework.logger.LogKitLogger(log));
 // this is the only thing
//driver.setLogger(log);  // I must
change since 0.20.3
driver.setRenderer(Driver.RENDER_PDF);
driver.setInputSource(new InputSource(file));
driver.setOutputStream(new FileOutputStream(outFile2));
driver.setErrorDump(true);
Options options = new Options(new File( path_to_cfg + "userconfig.xml"));
driver.run();// here an
exception is thrown
log_fos.close();









  
Jeremias Maerki 
  
<[EMAIL PROTECTED]   Komu:   [EMAIL PROTECTED]  
 
enmail.ch>  Kopie:  
  
Předmět: Re: Strange error when 
upgrading from 0.20.3 to 0.20.4   
18.11.2002 12:24
  
Odpovězte prosím
  
uživateli   
  
fop-user
  

  

  




That's probably a follow-up error because a font could not be loaded. If
you run your sample form the command line with the -d option, you should
get a better error message. Maybe you didn't set the second logger in
the MessageHandler class correctly because that's where the original
error message should have been logged.

RE: Quality of Grafics: SVG

2002-11-18 Thread Stephan Wiesner
Thanks a lot, that did the trick.

Stephan



> -Original Message-
> From: Doray, Arnold [mailto:[EMAIL PROTECTED] 
> Sent: Montag, 18. November 2002 09:26
> To: '[EMAIL PROTECTED]'
> Subject: RE: Quality of Grafics: SVG
> 
> 
>   ...
>   squares look fine at every resoulution, but the writing 
> not, again at
>   all resolutions. I tried different SVGs, some I didn't 
> create myself,
>   
> 
>   Try including the entry:
> 
>   
>   strokeSVGText
>   false
>   
> 
>   in your usefconfig.xml, anywhere within . 
>   This prevents fonts from being converted to curves. They are 
>   embedded instead. Remember to run FOP with the -c option 
>   (eg: -c conf/userconfig.xml). 
> 
>   I should warn you that this approach has its drawbacks -
>   you might encounter problems viewing the text in GhostView,
>   and not be able to *print* from Acrobat 4.0, on some postscript
>   laserprinters. But Acrobat 5.0 appears to solve this.
> 
> 
>   Cheers,
>   Arnold Doray
> 



Re: AW: Viewing PDF without AcrobatReader or FOP??

2002-11-18 Thread Oleg Tkachenko
Müller, Markus wrote:
when viewing PDFs with embedded fonts, you will see differences between the
platform specific and the Java version of AcrobatReader. The Java-version
does some ugly character spacing, embedded fonts are not displayed properly.
That's really not a *good* thing. And the fact that it has not been updated
since 1998 shows, that adobe is not interested in providing a real solution
for java.
I see. btw, problems sound familiar, we have the same ones with AWT Viewer.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: No more DTM IDs available

2002-11-18 Thread Oleg Tkachenko
lepekhine wrote:
I use fop 0.20.4 with jdk 1.4.1 in RH Linux 7.3
I have got the error
org.apache.xml.dtm.DTMException No more DTM Ids are available
while processing a document with docbook-xsl-1.55.0
This error didn't appear earlier in Windows with jdk 1.3.1.
Another document  wich looks very like that compiles succefully.
I wonder, could anybody tell me what may be the reason of the error
and how can I get rid of it?
A matter of fact is that jdk1.4.? contains buggy xalan version and that's 
default xslt processor in use within a jaxp environment. You have to override 
it either by latest xalan version or by xalan from FOP's distribution using 
java endorsed mechanism. Take a look at 
http://xml.apache.org/security/install.html.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


AW: Viewing PDF without AcrobatReader or FOP??

2002-11-18 Thread "Müller, Markus"
Hi Oleg,

when viewing PDFs with embedded fonts, you will see differences between the
platform specific and the Java version of AcrobatReader. The Java-version
does some ugly character spacing, embedded fonts are not displayed properly.
That's really not a *good* thing. And the fact that it has not been updated
since 1998 shows, that adobe is not interested in providing a real solution
for java.

Markus

# -Ursprüngliche Nachricht-
# Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
# Gesendet am: Samstag, 16. November 2002 18:41
# An: [EMAIL PROTECTED]
# Betreff: Re: Viewing PDF without AcrobatReader or FOP??
# 
# Müller, Markus wrote:
# 
# > we're just testing FOP to generate PDF on a host, then 
# sending the PDF
# > document in a way we don't know yet to some clients. The 
# clients should be
# > able to view (and perhaps to print) the document. Is this 
# possible without
# > AcrobatReader? The AcroRead for Java is not really a good thing,
# btw, what's wrong with it? I've been told it's ok despite the 
# fact that 
# it was not updated long time.
# 
#   and using
# > FOP only to display a file isn't a solution, too (since 
# it's too large). Has
# > anybody a little hint?
# If wanna high-quality pdf preview, I believe using Acrobat is 
# the only 
# way. Surely client must have Acrobat Reader installed, but 
# it's free and 
# absence of it can be detected in javascript.
# 
# -- 
# Oleg Tkachenko
# eXperanto team
# Multiconn Technologies, Israel
# 


No more DTM IDs available

2002-11-18 Thread lepekhine
Hi, all!
I use fop 0.20.4 with jdk 1.4.1 in RH Linux 7.3
I have got the error
org.apache.xml.dtm.DTMException No more DTM Ids are available
while processing a document with docbook-xsl-1.55.0
This error didn't appear earlier in Windows with jdk 1.3.1.
Another document  wich looks very like that compiles succefully.
I wonder, could anybody tell me what may be the reason of the error 
and how can I get rid of it?
I tried -Xss1m as Java option but it didn't help.
Thank you in advance
Alexander


Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-18 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
When I do this in servlet, following error appears:
[INFO]: building formatting object tree
[INFO]: [1]- the logging stops here
java.lang.NullPointerException int
org.apache.fop.render.pdf.fonts.LazyFont.getAscender(int) int
Looks like somewhinh goes wrong with font metrics loading. Show us your font 
definition in userconfig.xml and FOP's debug trace.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-18 Thread Jeremias Maerki
That's probably a follow-up error because a font could not be loaded. If
you run your sample form the command line with the -d option, you should
get a better error message. Maybe you didn't set the second logger in
the MessageHandler class correctly because that's where the original
error message should have been logged. The logging in the maint branch
is still somewhat strange.


On 18.11.2002 12:01:52 Jiri_Nejedly wrote:
> I am trying to upgrade FOP from version 0.20.3 to 0.20.4 . I use Oracle's
> JDeveloper 9i
> 
> To my project I added all libraries, which I found in fop.bat :
> 
> fop.jar
> batik.jar
> xalan-2.3.1.jar
> xercesImpl-2.0.1.jar
> xml-apis.jar
> avalon-framework-cvs-20020315.jar
> logkit-1.0.jar
> 
> When I process my FO file by fop.bat, everything is ok.
> When I do this in servlet, following error appears:
> 
> [INFO]: building formatting object tree
> [INFO]: [1]- the logging stops here
> 
> 
> java.lang.NullPointerException int
> org.apache.fop.render.pdf.fonts.LazyFont.getAscender(int) int
> org.apache.fop.layout.FontState.getAscender() void
> org.apache.fop.layout.LineArea.(org.apache.fop.layout.FontState, int, int,
> int, int, int, org.apache.fop.layout.LineArea) void
> org.apache.fop.layout.BlockArea.start() org.apache.fop.fo.Status
> org.apache.fop.fo.flow.Block.layout(org.apache.fop.layout.Area)
> org.apache.fop.fo.Status
> org.apache.fop.fo.flow.Flow.layout(org.apache.fop.layout.Area,
> org.apache.fop.fo.pagination.Region) org.apache.fop.fo.Status
> org.apache.fop.fo.flow.Flow.layout(org.apache.fop.layout.Area) void
> org.apache.fop.fo.pagination.PageSequence.format(org.apache.fop.layout.AreaTree)
> 
> void
> org.apache.fop.apps.StreamRenderer.render(org.apache.fop.fo.pagination.PageSequence)
> 
> void org.apache.fop.fo.FOTreeBuilder.endElement(java.lang.String,
> java.lang.String, java.lang.String) java.lang.String
> oracle.xml.parser.v2.NonValidatingParser.parseElement()
> NonValidatingParser.java:1112 void
> oracle.xml.parser.v2.NonValidatingParser.parseRootElement()
> NonValidatingParser.java:287 void
> oracle.xml.parser.v2.NonValidatingParser.parseDocument()
> NonValidatingParser.java:254 void
> oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
> XMLParser.java:141 void
> org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader,
> org.xml.sax.InputSource) void org.apache.fop.apps.Driver.run() void
> or.jbo.html.beans.ReportShowBean.kresli() ReportShowBean.java:554 void _dt.
> _ReportShowDT._jspService(javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse) ReportShowDT.jsp:23 void
> oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest,
> javax.servlet.ServletResponse) HttpJsp.java:119 void
> oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest,
> 
> javax.servlet.http.HttpServletResponse, java.lang.String)
> JspPageTable.java:302 void
> oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest,
> 
> javax.servlet.http.HttpServletResponse) JspServlet.java:407 void
> oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest,
> 
> javax.servlet.http.HttpServletResponse) JspServlet.java:328 void
> javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
> javax.servlet.ServletResponse) HttpServlet.java:336 void
> com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest,
> 
> javax.servlet.ServletResponse) ServletRequestDispatcher.java:684 void
> com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest,
> 
> javax.servlet.http.HttpServletResponse) ServletRequestDispatcher.java:269
> boolean
> com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread,
> 
> com.evermind.server.http.EvermindHttpServletRequest,
> com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream,
> java.io.OutputStream, boolean) HttpRequestHandler.java:735 void
> com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
> HttpRequestHandler.java:243 void com.evermind.util.ThreadPoolThread.run()
> ThreadPoolThread.java:64
> 
> Any suggestions what's wrong ? Thanks.
> 



Jeremias Maerki



Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-18 Thread Jiri_Nejedly
I am trying to upgrade FOP from version 0.20.3 to 0.20.4 . I use Oracle's
JDeveloper 9i

To my project I added all libraries, which I found in fop.bat :

fop.jar
batik.jar
xalan-2.3.1.jar
xercesImpl-2.0.1.jar
xml-apis.jar
avalon-framework-cvs-20020315.jar
logkit-1.0.jar

When I process my FO file by fop.bat, everything is ok.
When I do this in servlet, following error appears:

[INFO]: building formatting object tree
[INFO]: [1]- the logging stops here


java.lang.NullPointerException int
org.apache.fop.render.pdf.fonts.LazyFont.getAscender(int) int
org.apache.fop.layout.FontState.getAscender() void
org.apache.fop.layout.LineArea.(org.apache.fop.layout.FontState, int, int,
int, int, int, org.apache.fop.layout.LineArea) void
org.apache.fop.layout.BlockArea.start() org.apache.fop.fo.Status
org.apache.fop.fo.flow.Block.layout(org.apache.fop.layout.Area)
org.apache.fop.fo.Status
org.apache.fop.fo.flow.Flow.layout(org.apache.fop.layout.Area,
org.apache.fop.fo.pagination.Region) org.apache.fop.fo.Status
org.apache.fop.fo.flow.Flow.layout(org.apache.fop.layout.Area) void
org.apache.fop.fo.pagination.PageSequence.format(org.apache.fop.layout.AreaTree)

void
org.apache.fop.apps.StreamRenderer.render(org.apache.fop.fo.pagination.PageSequence)

void org.apache.fop.fo.FOTreeBuilder.endElement(java.lang.String,
java.lang.String, java.lang.String) java.lang.String
oracle.xml.parser.v2.NonValidatingParser.parseElement()
NonValidatingParser.java:1112 void
oracle.xml.parser.v2.NonValidatingParser.parseRootElement()
NonValidatingParser.java:287 void
oracle.xml.parser.v2.NonValidatingParser.parseDocument()
NonValidatingParser.java:254 void
oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
XMLParser.java:141 void
org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader,
org.xml.sax.InputSource) void org.apache.fop.apps.Driver.run() void
or.jbo.html.beans.ReportShowBean.kresli() ReportShowBean.java:554 void _dt.
_ReportShowDT._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) ReportShowDT.jsp:23 void
oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) HttpJsp.java:119 void
oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest,

javax.servlet.http.HttpServletResponse, java.lang.String)
JspPageTable.java:302 void
oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest,

javax.servlet.http.HttpServletResponse) JspServlet.java:407 void
oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest,

javax.servlet.http.HttpServletResponse) JspServlet.java:328 void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) HttpServlet.java:336 void
com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest,

javax.servlet.ServletResponse) ServletRequestDispatcher.java:684 void
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest,

javax.servlet.http.HttpServletResponse) ServletRequestDispatcher.java:269
boolean
com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread,

com.evermind.server.http.EvermindHttpServletRequest,
com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream,
java.io.OutputStream, boolean) HttpRequestHandler.java:735 void
com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
HttpRequestHandler.java:243 void com.evermind.util.ThreadPoolThread.run()
ThreadPoolThread.java:64

Any suggestions what's wrong ? Thanks.




Re: Producing Font Metrics

2002-11-18 Thread Jeremias Maerki
done. Thanks Bernard!

On 18.11.2002 11:18:20 Jeremias Maerki wrote:
> I've seen your patch. It seems like I screwed up when improving the code
> there. Sorry! I'm going to apply your patch in a few minutes.


Jeremias Maerki



Re: Producing Font Metrics

2002-11-18 Thread bdhave . work
I hust found that in google:

http://www.cvshome.org/dev/patches/http

but I didn't test.

Bernard

Selon Oleg Tkachenko <[EMAIL PROTECTED]>:

> [EMAIL PROTECTED] wrote:
> 
> > Sorry, I forgot to attach the patch and I didn't have access to CVS at
> work.
> 
> Me too :( Is anybody aware of any cvs proxy ?
> 
> > I just put a description of what to do (just ad one line in a source) as a
> > comment to the bug.
> >
> > If you want, I can send a diff at 7Pm or 8 pm CET.
> 
> Sure.
> 
> -- 
> Oleg Tkachenko
> eXperanto team
> Multiconn Technologies, Israel
> 
> 




-
This mail was sent through webmail.wanadoo.be


Re: Producing Font Metrics

2002-11-18 Thread Jeremias Maerki
I've seen your patch. It seems like I screwed up when improving the code
there. Sorry! I'm going to apply your patch in a few minutes.


On 18.11.2002 11:06:49 bdhave.work wrote:
> Sorry, I forgot to attach the patch and I didn't have access to CVS at work.
> 
> I just put a description of what to do (just ad one line in a source) as a 
> comment to the bug.
> 
> If you want, I can send a diff at 7Pm or 8 pm CET.


Jeremias Maerki



Re: [Renamed thread] Converting fonts

2002-11-18 Thread Oleg Tkachenko
Petr van Blokland wrote:
The most important missing tag in FOP for us currently is
Do you have any idea when that will be implemented?
No way till 1.0dev is out. But if you want you can implement it yourself.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: Producing Font Metrics

2002-11-18 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
Sorry, I forgot to attach the patch and I didn't have access to CVS at work.
Me too :( Is anybody aware of any cvs proxy ?
I just put a description of what to do (just ad one line in a source) as a
comment to the bug.
If you want, I can send a diff at 7Pm or 8 pm CET.
Sure.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: Producing Font Metrics

2002-11-18 Thread bdhave . work
Sorry, I forgot to attach the patch and I didn't have access to CVS at work.

I just put a description of what to do (just ad one line in a source) as a 
comment to the bug.

If you want, I can send a diff at 7Pm or 8 pm CET.
thanks,
Bernard

Selon Oleg Tkachenko <[EMAIL PROTECTED]>:

> [EMAIL PROTECTED] wrote:
> > It may be the same bug as Bug 14576.
> > I have already sent an attachment with a patch
> > 
> > see
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14576
> This bug entry has no attachments, attach the patch again, please.
> 
> -- 
> Oleg Tkachenko
> eXperanto team
> Multiconn Technologies, Israel
> 
> 




-
This mail was sent through webmail.wanadoo.be


RE: Producing Font Metrics

2002-11-18 Thread Dennis Myrén
Please post the path again.
I cant find a patch in the message:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14576

Regards
Dennis

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 18. november 2002 09:24
To: [EMAIL PROTECTED]
Subject: Re: Producing Font Metrics

It may be the same bug as Bug 14576.
I have already sent an attachment with a patch

see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14576

Bernard

Selon Oleg Tkachenko <[EMAIL PROTECTED]>:

> Lucas, Allison wrote:
> > I found a question from 7/11/2002 about the EOFException when trying to 
> > generate a font metric xml from a true type font.  Mark Peterson said 
> > that he was looking into the issue.  I have run into this issue with a 
> > third party font.  Was there any resolution to the issue?
> You'd better open bugzilla entry for it - thta's a very convenient way 
> to track issues.
> 
> -- 
> Oleg Tkachenko
> eXperanto team
> Multiconn Technologies, Israel
> 
> 




-
This mail was sent through webmail.wanadoo.be


[Renamed thread] Converting fonts

2002-11-18 Thread Petr van Blokland
On Monday, November 18, 2002, at 09:30 AM, Oleg Tkachenko wrote:
Petr van Blokland wrote:
I try to add new fonts to fop. According to the site this should be 
done
with the instruction below. I run this on OSX 10.2
Does anyone has an idea why this creates a OutOfMemoryError?
[titanm:/xpyth/FOP/fop-0.20.4] petr% java -cp  
build/fop.jar:lib/xercesImpl-2.0.1.jar:lib/xml-apis.jar:lib/xalan- 
2.3.1.jar:lib/batik.jar org.apache.fop.fonts.apps.PFMReader  
/xpyth/python/site-packages/reportlab/fonts/PrBk_.pfb

productusbook.xml
PFM Reader v1.1
Reading /xpyth/python/site-packages/reportlab/fonts/coo_.pfb...
H, how come here is coo_.pfb, but you said run it with 
PrBk_.pfb?

Exception in thread "main" java.lang.OutOfMemoryError
<>
Well, this exception I see second time and still don't get it. What 
could be a reason? Sounds like either JVM unable to allocate memory 
for the whole font file or font file is broken as PFMReader reads file 
size  from the file itself.
Deat Oleg,
Sorry, I got it working by now. I got the error by (not reading the 
manual :-) converting
a .pfm file instead of a .pfb file. Now I converted all fonts and it 
works fine.

As graphic design studio we are transforming towards XML/XSLT/XML-FO to 
remove
Quark XPress from the general workflow. It looks like FOP can/will be 
an important part
of it (beside the XML/XSLT server "xpyth" that we developed from 
scratch in Python,
http://xml.petr.com/buro/products/webdesign//nl
The most important missing tag in FOP for us currently is 
Do you have any idea when that will be implemented?

 Petr


Re: Producing Font Metrics

2002-11-18 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
It may be the same bug as Bug 14576.
I have already sent an attachment with a patch
see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14576
This bug entry has no attachments, attach the patch again, please.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


RE: Quality of Grafics: SVG

2002-11-18 Thread Doray, Arnold
...
squares look fine at every resoulution, but the writing not, again
at
all resolutions. I tried different SVGs, some I didn't create
myself,


Try including the entry:


strokeSVGText
false


in your usefconfig.xml, anywhere within . 
This prevents fonts from being converted to curves. They are 
embedded instead. Remember to run FOP with the -c option 
(eg: -c conf/userconfig.xml). 

I should warn you that this approach has its drawbacks -
you might encounter problems viewing the text in GhostView,
and not be able to *print* from Acrobat 4.0, on some postscript
laserprinters. But Acrobat 5.0 appears to solve this.


Cheers,
Arnold Doray


Re: How to determine page position of current and last table-row?

2002-11-18 Thread Oleg Tkachenko
Petr van Blokland wrote:
I try to add new fonts to fop. According to the site this should be done
with the instruction below. I run this on OSX 10.2
Does anyone has an idea why this creates a OutOfMemoryError?
[titanm:/xpyth/FOP/fop-0.20.4] petr% java -cp  
build/fop.jar:lib/xercesImpl-2.0.1.jar:lib/xml-apis.jar:lib/xalan- 
2.3.1.jar:lib/batik.jar org.apache.fop.fonts.apps.PFMReader  
/xpyth/python/site-packages/reportlab/fonts/PrBk_.pfb  

productusbook.xml
PFM Reader v1.1
Reading /xpyth/python/site-packages/reportlab/fonts/coo_.pfb...
H, how come here is coo_.pfb, but you said run it with 
PrBk_.pfb?

Exception in thread "main" java.lang.OutOfMemoryError
<>
Well, this exception I see second time and still don't get it. What 
could be a reason? Sounds like either JVM unable to allocate memory for 
the whole font file or font file is broken as PFMReader reads file size 
 from the file itself.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: Producing Font Metrics

2002-11-18 Thread bdhave . work
It may be the same bug as Bug 14576.
I have already sent an attachment with a patch

see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14576

Bernard

Selon Oleg Tkachenko <[EMAIL PROTECTED]>:

> Lucas, Allison wrote:
> > I found a question from 7/11/2002 about the EOFException when trying to 
> > generate a font metric xml from a true type font.  Mark Peterson said 
> > that he was looking into the issue.  I have run into this issue with a 
> > third party font.  Was there any resolution to the issue?
> You'd better open bugzilla entry for it - thta's a very convenient way 
> to track issues.
> 
> -- 
> Oleg Tkachenko
> eXperanto team
> Multiconn Technologies, Israel
> 
> 




-
This mail was sent through webmail.wanadoo.be


Re: Producing Font Metrics

2002-11-18 Thread Oleg Tkachenko
Lucas, Allison wrote:
I found a question from 7/11/2002 about the EOFException when trying to 
generate a font metric xml from a true type font.  Mark Peterson said 
that he was looking into the issue.  I have run into this issue with a 
third party font.  Was there any resolution to the issue?
You'd better open bugzilla entry for it - thta's a very convenient way 
to track issues.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: Problem with fo:marker

2002-11-18 Thread Oleg Tkachenko
Yann Verlynde wrote:
I have some trouble with fo:marker. The String that I want to write on the
top of my page when my text in on 2 pages minimum does not work.
I see it on the first page but not on the second.
Does anyone can help me?
This is my code in my static-content
 



M

Here is a mistake -  object must have no content, 
it's just a counterpart of , which *retrieves* a marker value 
and therefore it doesn't have its own value.



F

The same mistake.
The main idea underneath is pretty simple - you define a marker of one 
class at your table cells, having content either M or ? and in static 
content you just retrieves the marker of this class.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel