RE: Embedded OCR Font not embedding

2003-04-30 Thread Mike Ferrando
Paul,
I am having a similar problem. Could you give me your command line
when you render your fo?

Thanks,
Mike F.

--- Thibodeaux, Paul [EMAIL PROTECTED] wrote:
 Never mind on my previous append - the font was not installed on
 the server,
 so the embed failed.
 
 Apologies...
 
 -Original Message-
 From: Thibodeaux, Paul 
 Sent: Tuesday, April 29, 2003 9:21 AM
 To: '[EMAIL PROTECTED]'
 Subject: Embedded OCR Font not embedding
 
 
 Hello,
 I have followed the steps to set up for embedding an OCR font (True
 Type).
 
 The document generates fine (on our web server) and I can see the
 OCR fonts
 on one PC, but not on others.
 
 I think the PC that shows the font correctly is the one on which I
 initially
 built the userconfig file.
 
 I expected this font to be embedded in the PDF file so that it does
 not need
 to be installed on each target pc.  Am I missing something in the
 setup? 
 
 The font section of my userconfig is below.
 
 Thanks,
 Paul
 
 
 font metrics-file=OCRAttf.xml kerning=yes
 embed-file=c:\WINNT\fonts\ocarr.ttf
   font-triplet name=OCRA style=normal weight=normal/
 /font
 font metrics-file=OCRAttf.xml kerning=yes
 embed-file=c:\WINNT\fonts\ocarr.ttf
   font-triplet name=OCRA style=normal weight=bold/
 /font
 
 
 
 
 
 

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


__
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

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



AW: Newbie question about line breaks

2003-04-30 Thread Dipl.-Oec. Harald Meyer
Thanks, this helps! :-)

 -Ursprungliche Nachricht-
 Von: Toufic Nehme [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 29. April 2003 19:17
 An: [EMAIL PROTECTED]
 Betreff: Re: Newbie question about line breaks
 
 
 Add this in your fo:block
 
 white-space-collapse=false  linefeed-treatment=preserve
 white-space-treatment=preserve
 
 Hope this helps.
 
 Dipl.-Oec. Harald Meyer wrote:
 
  Hello everyone,
 
  I have a question about line breaks (maybe too simple for some 
 of you ;-)).
 
  My XML:
  ...
  data
  valuehere
  is
  my
  text/value
  /data
  ...
 
  I want to keep the line breaks in my PDF output. But how do I 
 have to say
  that in XSL:FO???
 
  Thanks
  Harald
 
  -
  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]
 
 


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



AW: Newbie question about line breaks

2003-04-30 Thread Dipl.-Oec. Harald Meyer
 See:
 http://xml.apache.org/fop/fo.html#fo-preformat

 Also, there are Unicode paragraph separator (U+2029) and line separator
 (U+2028) characters that can be used for this purpose if you place them in
 XML. Don't hold me to this, but I think they work in FOP.

 Victor Mote


The separators didn't fit in my case because the text is from a database
request.
For hardcoded text it may be useful...



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



AW: AW: AW: AW: Number alignment in TOC

2003-04-30 Thread Anton Wardaschko (PA)
Hi!


Sorry, it cuts off just before it gets interesting. 


Sorry. ;-)


You can start with a copy of your real file and successively cut stuff.


It's a little bit confusing, but i'm find to my surprise, that the problem with 
the sect2 apperas only than when i generated the abstract part of bookinfo. I 
commented parts out and firstly it looks like the problem come from a table in 
an abstract section. When i comment this table out the whole output of TOC is 
OK. But after i tried to create a small file with only two sect1 and two sect2 
in each of sect1 and with the table in bookinfo i get an ouput where only one 
number of sect2 don't fit, like a russian roulette. 

I attach here as you wish the whole fo file where the correct output can be 
reached after commentig out the table with the address. I see, thtat if i use 
instead of the table something other, there will be no more problem with the 
toc numbers, but perhaps can somebody explain why i get this behavior.


Here just my xml and xsl code for the table

XML-Code:

informaltable frame=none
tgroup cols=1 colsep=0 rowsep=0
colspec colname=c1 /
tbody
rowentryYou can contact VarySys Technologies GmbH 
amp; Co.KG at:/entry/row
rowentrynbsp;/entry/row
rowentryVarySys Technologies GmbH amp; 
Co.KG/entry/row
rowentryMouml;nchhaldenstraszlig;e 
28/entry/row
rowentryD ndash; 70191 Stuttgart/entry/row
rowentrynbsp;/entry/row
rowentryTel.: (07 11) 2 50 11 98/entry/row
rowentryFax: (07 11) 2 50 11 97/entry/row
rowentryEmail: ulink url=mailto:[EMAIL 
PROTECTED][EMAIL PROTECTED]/ulink/entry/row
rowentry
Internet: 
ulink 
url=http://www.varysys.com;http://www.varysys.com/ulink
  /entry
/row
/tbody
/tgroup
/informaltable

XSL-Code:

xsl:template match=[EMAIL PROTECTED]'none']

fo:table   table-layout=fixed 
width={$default.table.width} 
padding-top={$body.font.master}pt
keep-together=always
keep-with-next=always
  xsl:apply-templates /
/fo:table

/xsl:template


CU
Anton



attachment: PacketAlarm.zip
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Performance Question

2003-04-30 Thread Christian Neuroth
Hi list!

I just downloaded FOP for some evaluation tests and it seems to be really
great! :)

In my company, we are currently using StreamServe to produce documents
(basically invoices).
50.000 docs/day, 3.000 prints, 47.000 pdf.
The final document averages 3 pages (there are some exceptions with up to
1000 pages - very rare, however), a document containing only one graphic
(logo).

I am puzzling whether I can shift from StreamServer to FOP. Are there any
people out there who apply FOP to achieve a similar volume? Is the
performance ok?

Thanks

Christian


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



Dynamic Blocks.

2003-04-30 Thread Jacob Bager
hey there..

Im working with the xsl:fo on the cocoon, and i have run into some trouble.

i can't figure out, how to set block-attributes dynamicaly.

Here's what i tried. :

  the xml-data file has a tag like this.

sFont color=RED size=16px
Some text ...
/sFont

the xsl template looks like this.
xsl:template match=sFont
  xsl:variable name=color
   xsl:choose
xsl:when test=@color
 xsl:value-of select=@color /
/xsl:when
   xsl:otherwiseblack/xsl:otherwise
   /xsl:choose
  /xsl:variable
 fo:block color=$color
xsl:apply-templates/
 /fo:block
/xsl:template

the block doesn't set the text to anything . 

Am i using the wrong attribute, in the block?

why can't i get this to work?

Please Help!


Jacob Bager
[EMAIL PROTECTED]
Developer 
http://www.An-Concepts.dk


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



fop image path with tomcat (servlet, baseDir)

2003-04-30 Thread Cédric Augustin
Hello,

I have a problem with servlet : no image are found.

Fop is working fine (thank you to the dev) to convert my xml to pdf from
command line. For performance reason, I am trying to do the same with
Tomcat.
I am using fop 0.20.5rc3 from cvs, Tomcat 4.1, java 1.4.1. For the test I am
on win 2000 and after I will set up a production environment on a linux box.

The build script did well the job. I copy the fop.war in the Tomcat webapps
subdir and test with a fo file and a xml/xsl files, the PDF was render with
no trouble exept the images. In Tomcat window, I saw fop who complain about
image path :

[ERROR] Error while creating area : Error with image URL:
images\logo_acro.gif (
Le chemin d'accÞs spÚcifiÚ est introuvable) and no base URL is specified

In the fo file, the src for image is relative to current dir :
fo:external-graphic height=15mm width=44mm src=images/logo_acro.gif/

I copy the images dir in webapps\fop but fop did not found it.

I tried to call directly the image from the browser and I got a servlet
error page
FopServlet Error
No 'fo' request param given.

with the following error in the logs :

2003-04-30 15:42:57 StandardContext[/fop]: Mapping contextPath='/fop' with
requestURI='/fop/fop/images/logo_acro.gif' and
relativeURI='/fop/images/logo_acro.gif'
2003-04-30 15:42:57 StandardContext[/fop]:   Trying exact match
2003-04-30 15:42:57 StandardContext[/fop]:   Trying prefix match
2003-04-30 15:42:57 StandardContext[/fop]:   Trying extension match
2003-04-30 15:42:57 StandardContext[/fop]:   Trying default match
2003-04-30 15:42:57 StandardContext[/fop]:  Mapped to servlet 'Fop' with
servlet path '/fop/images/logo_acro.gif' and path info 'null' and
update=true

So, it's look like a miss configuration of Tomcat but I don't know how and
where I should set it up. I have installed everything with default value
(except debug level).

The page http://xml.apache.org/fop/embedding.html is talking about baseDir
but how do I set it up or find it's absolut path ?

Thank you by advance for any help,
Cédric Augustin
 

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



blank pdf's

2003-04-30 Thread Wagstaff, Jason
I am working on trying to use FOP 0.25rc2 with Coldfusion MX(CFMX).  I have 
followed the basic instructions from here 
http://xml.apache.org/fop/embedding.html#basics to embed fop. I have embeded it 
into a webpage and everything seems like it is working but it is returning 
blank pages.  It will even return the correct number of blank pages even given 
a .fo file with many pages.  Also if I remove response.setContentType it will 
display the binary info on the page and it looks like it is creating pdf 
information.  

I have tested in IE and Phoenix web browsers and they both exhibt the same 
behavior. Since the problem exists in both i don't think it is the infamous ie 
bug problem(but I could be wrong). 

Here is the code I am using. I know it is CFMX, but it is very 
straightforward(ask if it doesn't make sense).  I also have included a sample 
log.  

thanks in advance for any insight,
jason

!--- testpdf.cfm ---
cffile action=read file=helloworld.fo variable=xmlString /
cfscript
xmlString = javacast(string,xmlString);

biStream = CreateObject(java,java.io.StringBufferInputStream);
biStream.init(xmlString);

inputStream = CreateObject(java,org.xml.sax.InputSource);
inputStream.init(biStream);

logger = 
CreateObject(java,org.apache.avalon.framework.logger.ConsoleLogger);
logger.init(logger.LEVEL_DEBUG);

getPageContext().getResponse().setContentType(application/pdf);
outputStream = getPageContext().getResponse().getOutputStream();

fopDriver = CreateObject(java,org.apache.fop.apps.Driver);
fopDriver.init(inputStream,outputStream);
fopDriver.setLogger(logger);
fopDriver.setRenderer(fopDriver.RENDER_PDF);
fopDriver.run();

/cfscript

!--- info from log ---
[INFO] Using org.apache.crimson.parser.XMLReaderImpl as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[DEBUG] Last page-sequence produced 1 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 4985Kb
[DEBUG] Current heap size: 4939Kb
[DEBUG] Total memory used: -46Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 490ms
[DEBUG] Pages rendered: 1
[DEBUG] Avg render time: 490ms/page

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



Help with Character Entities (was Re: Number alignment in TOC)

2003-04-30 Thread Clay Leeds
Sounds like you didn't define the the ndash; ENTITY (and after
defiining it, you can use it as you are currently doing:

!ENTITY ndash #8211;

Or you could just replace the ndash; with it's numeric reference
#8211;.

I'm sure there are many places on the internet to find the Character
Entity Reference, but here's one I found:

http://xmlfr.org/listes/xml-tech/2001/08/0135.html

Good luck!

Anton Wardaschko (PA) wrote:
 Hi!
 
 It is unbelievable and i can't understand it, but the problem seems to be not 
 hte whole table, but only one row in it:
 
 rowentryD ndash; 70191 Stuttgart/entry/row
 
 If i write instead of it Deutschland 70191 Stuttgart, so the output is 
 correct. It is a nonsens! I can't understand it, but all the TOC-Numbers are 
 after this change correct...
 
 
 CU
 Anton


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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



RE: Performance Question

2003-04-30 Thread Matthias Fischer
I tried to process lesser amounts of docs (muuch lesser volumes!) and got
into serious trouble. I have abbandoned FOP, but I must admit that there was
Cocoon inbetween.

Matthias Fischer

Q -Original Message-
Q From: Christian Neuroth [mailto:[EMAIL PROTECTED]
Q Sent: Wednesday, April 30, 2003 10:30 AM
Q To: [EMAIL PROTECTED]
Q Subject: Performance Question
Q
Q
Q Hi list!
Q
Q I just downloaded FOP for some evaluation tests and it seems to
Q be really
Q great! :)
Q
Q In my company, we are currently using StreamServe to produce documents
Q (basically invoices).
Q 50.000 docs/day, 3.000 prints, 47.000 pdf.
Q The final document averages 3 pages (there are some exceptions
Q with up to
Q 1000 pages - very rare, however), a document containing only one graphic
Q (logo).
Q
Q I am puzzling whether I can shift from StreamServer to FOP. Are
Q there any
Q people out there who apply FOP to achieve a similar volume? Is the
Q performance ok?
Q
Q Thanks
Q
Q Christian
Q
Q
Q -
Q To unsubscribe, e-mail: [EMAIL PROTECTED]
Q For additional commands, e-mail: [EMAIL PROTECTED]
Q


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



AW: Help with Character Entities (was Re: Number alignment in TOC)

2003-04-30 Thread anton
Hi!


Sounds like you didn't define the the ndash; ENTITY (and after
defiining it, you can use it as you are currently doing:

!ENTITY ndash #8211;


The Entity is defined in the DocBook DTD and works. As i already says, i
don't understand this behavior, but it it works now.


CU
Anton


smime.p7s
Description: S/MIME cryptographic signature


Big5 Chinese encoded glyphs in a PDF?

2003-04-30 Thread Richard Bolen
I've got a java resource bundle for Traditional Chinese (Taiwan) that is
encoded as Big5.  Some of the strings defined in the resource end up in
a PDF document that is created using FOP.  The same strings are also
displayed via a webbrowser as html.  The issue is that the strings
display properly in the browser using the Traditional Chinese (Big5)
encoding but display as garbage in the PDF.

I've tried embedding about 10 different chinese fonts in the PDF but
nothing has worked.  Does anyone know where I could get a good Big5
Traditional Chinese font? (or why the characters would display as
garbage?)

I'm using UTF-8 as my encoding for my XSL files.  I've seen some posts
referring to using Big5 as the encoding and 'passing' that to the fo
renderer.  How is that done?

Thanks,
Rich

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



Re: Big5 Chinese encoded glyphs in a PDF?

2003-04-30 Thread Mike Ferrando
Richard,
You need to find some pfm/pfb fonts to render your characters into
PDF using FOP. Like the ttf and ttc fonts you will need to create a
metrics file from the pfm font file and then point the font to the
pdf file in your userconfig.xml. (code below)

It is possible that you might have to *buy* the fonts if you cannot
get them locally or on the web.

I just figured this out myself, getting the fonts to embed not just
the glyphs but the encoding as well so you can cut and paste from the
PDF document.

You will notice how the font points the embed-file to the PFB file
not the PFM file. Unlike the ttf and ttc files, the file converted to
xml is different than the file you point your embed-file to in the
userconfig.xml. This had me really stumped for a while.

Mike F.

===FONT:===
PFM file: p052024l.pfm
PFB file: p052024l.pdb

===Create XML file:===
C:\fopjava -cp
build\fop.jar;lib\avalon-framework-cvs-20020806.jar;lib\xml-apis.jar;lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar
org.apache.fop.fonts.apps.PFMReader p052024l.pfm p052024l.xml

==Add to userconfig.xml==
font metrics-file=p052024l.xml kerning=yes
embed-file=p052024l.pfb
  font-triplet name=Special style=normal weight=normal/
  font-triplet name=Special style=normal weight=bold/
  font-triplet name=Special style=italic weight=normal/
  font-triplet name=Special style=italic weight=bold/
/font

===Change Font-Family value:===
fo:root font-family=Special

===Add -c conf\userconfig.xml to Command line:
C:\fopfop -c conf\userconfig.xml -fo fo-file.fo -pdf pdf-file.pdf


--- Richard Bolen [EMAIL PROTECTED] wrote:
 I've got a java resource bundle for Traditional Chinese (Taiwan)
 that is
 encoded as Big5.  Some of the strings defined in the resource end
 up in
 a PDF document that is created using FOP.  The same strings are
 also
 displayed via a webbrowser as html.  The issue is that the strings
 display properly in the browser using the Traditional Chinese
 (Big5)
 encoding but display as garbage in the PDF.
 
 I've tried embedding about 10 different chinese fonts in the PDF
 but
 nothing has worked.  Does anyone know where I could get a good Big5
 Traditional Chinese font? (or why the characters would display as
 garbage?)
 
 I'm using UTF-8 as my encoding for my XSL files.  I've seen some
 posts
 referring to using Big5 as the encoding and 'passing' that to the
 fo
 renderer.  How is that done?
 
 Thanks,
 Rich
 

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


__
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

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



Re: Performance Question

2003-04-30 Thread J.Pietschmann
Christian Neuroth wrote:
50.000 docs/day, 3.000 prints, 47.000 pdf.
The final document averages 3 pages (there are some exceptions with up to
1000 pages - very rare, however), a document containing only one graphic
(logo).
A good rule of thumb is two pages per second on moderate hardware (Intel P4
1GHz), if the JVM is kept warm. If the documents share the graphic, FOP's
image cache is an advantage. This might fit, barely (1d=86.4ksec ~ 172 kpage
~ 50k documents). If you are batch processing, you can try to balance it
over several machines.
Run some benchmarks and make up your own mind.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AW: AW: AW: AW: Number alignment in TOC

2003-04-30 Thread J.Pietschmann
Anton Wardaschko (PA) wrote:
It's a little bit confusing, but i'm find to my surprise, that the problem
with the sect2 apperas only than when i generated the abstract part of
bookinfo. I commented parts out and firstly it looks like the problem come
from a table in an abstract section. When i comment this table out the whole
output of TOC is OK. But after i tried to create a small file with only two
sect1 and two sect2 in each of sect1 and with the table in bookinfo i get an
ouput where only one number of sect2 don't fit, like a russian roulette.
I attach here as you wish the whole fo file where the correct output can be
reached after commentig out the table with the address. I see, thtat if i use
instead of the table something other, there will be no more problem with the
toc numbers, but perhaps can somebody explain why i get this behavior.
Are you sure the table is the problem? I can't quite reproduce the
problem, most probably because I don't use Arial. It may be it is
cause by improper metrics for bold dots, or something like this.
With a PDF standard font the numbers line up although it visually
seems the bold numbers areplaced just a notch more to the right.
J.Pietschmann

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


Re: blank pdf's

2003-04-30 Thread J.Pietschmann
Wagstaff, Jason wrote:
I am working on trying to use FOP 0.25rc2 with Coldfusion MX(CFMX).  I have
followed the basic instructions from here
http://xml.apache.org/fop/embedding.html#basics to embed fop. I have embeded
it into a webpage and everything seems like it is working but it is returning
blank pages.  It will even return the correct number of blank pages even
given a .fo file with many pages.  Also if I remove response.setContentType
it will display the binary info on the page and it looks like it is creating
pdf information.
Save the file to disk and try to open it with Acrobat Reader.
 !--- info from log ---
 [INFO] Using org.apache.crimson.parser.XMLReaderImpl as SAX2 Parser
This suggests you are using JDK 1.4. Can you produce the PDF with
the FOP command line?
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


FW: Problem when download/install FOP

2003-04-30 Thread Yuan, Pei J.
 
 I am a new FOP user and have problems when trying to install FOP, I
 downloaded fop-0.20.5rc2-bin.tar, and when I tried to unzip it using
 WinZip, I got this error:
 
  ...OLE_Obj... 
 
 Same thing happened when I tried the source version fop-0.20.5rc2-src.tar.
 I need your help for a successful install so I can introduce FOP to our
 projects.
 
 Thanks for your attention and hope to hear from you soon.
 
 Sincerely
 
   -
   Pei Yuan
   858-597-7165
 
 

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



Re: Vertical centering question

2003-04-30 Thread J.Pietschmann
Ben Galbraith wrote:
We are, however, not sure how to vertically center text within a block 
(or a table cell).  The spec defines a property vertical-align which 
seems to control this,
This property is for aligning stuff within a line.
but using the property doesn't seem to work with 
FOP.
The implementation is a bit limited.
Aftering reading the FOP FAQ, I used display-align property on a 
table-cell, but it didn't work.  However, I discovered that I *must* 
define the height of the table-cell by setting the height on the 
table-row (setting the height of the table or the table-cell results in 
vertical centering having no effect).

Is this a spec issue or a FOP issue?
This is a FOP limitation.
 Also, the text turns out to be a 
little off center, which I am assuming is due to some default value of 
the line height or some other specific detail about the XSL-FO spec.  Am 
I right, or is this a known FOP bug?
This is probably a visual effect caused by (conformant) line height
calculation.
J.Pietschmann

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


Re: fop image path with tomcat (servlet, baseDir)

2003-04-30 Thread J.Pietschmann
Cédric Augustin wrote:
I have a problem with servlet : no image are found.
...
I tried to call directly the image from the browser and I got a servlet
error page
FopServlet Error
No 'fo' request param given.
...
2003-04-30 15:42:57 StandardContext[/fop]:   Trying default match
2003-04-30 15:42:57 StandardContext[/fop]:  Mapped to servlet 'Fop' with
servlet path '/fop/images/logo_acro.gif' and path info 'null' and
update=true
So, it's look like a miss configuration of Tomcat but I don't know how and
where I should set it up. I have installed everything with default value
(except debug level).
You are a bit unexperienced in writing and deploying servlets, aren't
you? Get a good book and learn Java, servlets and servlet deploying
from the ground up.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Big5 Chinese encoded glyphs in a PDF?

2003-04-30 Thread Richard Bolen
Are you saying that MingLiU.ttf on Windows XP will not work?  That's
what I'm using currently.  I'm don't care about cut and paste in the
PDF, I just want the correct chinese characters to display in the
document.  I think I'm embedding everything OK but something is
happening to my resource bundle data when converting to a PDF.  

The funny thing is that displaying the data in a webpage works but not
in a pdf.

Rich





Richard,
You need to find some pfm/pfb fonts to render your characters into PDF
using FOP. Like the ttf and ttc fonts you will need to create a metrics
file from the pfm font file and then point the font to the pdf file in
your userconfig.xml. (code below)

It is possible that you might have to *buy* the fonts if you cannot get
them locally or on the web.

I just figured this out myself, getting the fonts to embed not just the
glyphs but the encoding as well so you can cut and paste from the PDF
document.

You will notice how the font points the embed-file to the PFB file not
the PFM file. Unlike the ttf and ttc files, the file converted to xml is
different than the file you point your embed-file to in the
userconfig.xml. This had me really stumped for a while.

Mike F.

===FONT:===
PFM file: p052024l.pfm
PFB file: p052024l.pdb

===Create XML file:===
C:\fopjava -cp
build\fop.jar;lib\avalon-framework-cvs-20020806.jar;lib\xml-apis.jar;lib
\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar
org.apache.fop.fonts.apps.PFMReader p052024l.pfm p052024l.xml

==Add to userconfig.xml==
font metrics-file=p052024l.xml kerning=yes
embed-file=p052024l.pfb
  font-triplet name=Special style=normal weight=normal/
  font-triplet name=Special style=normal weight=bold/
  font-triplet name=Special style=italic weight=normal/
  font-triplet name=Special style=italic weight=bold/ /font

===Change Font-Family value:===
fo:root font-family=Special

===Add -c conf\userconfig.xml to Command line:
C:\fopfop -c conf\userconfig.xml -fo fo-file.fo -pdf pdf-file.pdf


--- Richard Bolen [EMAIL PROTECTED] wrote:
 I've got a java resource bundle for Traditional Chinese (Taiwan) that 
 is encoded as Big5.  Some of the strings defined in the resource end
 up in
 a PDF document that is created using FOP.  The same strings are
 also
 displayed via a webbrowser as html.  The issue is that the strings
 display properly in the browser using the Traditional Chinese
 (Big5)
 encoding but display as garbage in the PDF.
 
 I've tried embedding about 10 different chinese fonts in the PDF but
 nothing has worked.  Does anyone know where I could get a good Big5
 Traditional Chinese font? (or why the characters would display as
 garbage?)
 
 I'm using UTF-8 as my encoding for my XSL files.  I've seen some posts
 referring to using Big5 as the encoding and 'passing' that to the
 fo
 renderer.  How is that done?
 
 Thanks,
 Rich
 

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


__
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com

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