RE: Quality of Grafics

2002-11-15 Thread Jeff_Mitchell

Victor-

Ah, I never knew about smoothing in AR.  perhaps I should explore the menus
more.  Thanks for the tip.

-Jeff



  
"Victor Mote"   
  
<[EMAIL PROTECTED]   To: <[EMAIL PROTECTED]>

om>  cc:
  
 Subject: RE: Quality of Grafics
  
11/15/2002  
  
02:18 PM
  
Please respond  
  
to fop-user 
  

  

  




Stephan Wiesner wrote:

> The printout looks fine. It is printed with 100%, though, so that was to
> be expected.
>
> I use the current Acrobat Reader to view my files and I have commercial
> Documents, with graphics that look great no matter how large I scale, so
> it can not really be the viewer?

Your previous post indicated that your file size varied with the quality of
the graphic, so I assume that the graphics you are embedding are raster. Is
the same thing true of the commercial documents that you refer to above? I
would expect vector graphics to look much better when scaled on screen or
anywhere else.

Also, you might experiment with the settings in the "Smoothing" section of
the Edit / Preferences / General menu in Acrobat (I think it is in the same
place on the Acrobat Reader).

Victor Mote







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

2002-11-15 Thread Petr van Blokland
Hi,
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...
Exception in thread "main" java.lang.OutOfMemoryError
<>
[titanm:/xpyth/FOP/fop-0.20.4] petr%
Kind regards,
Petr van Blokland
[EMAIL PROTECTED]


RE: Quality of Grafics

2002-11-15 Thread Victor Mote
Stephan Wiesner wrote:

> The printout looks fine. It is printed with 100%, though, so that was to
> be expected.
>
> I use the current Acrobat Reader to view my files and I have commercial
> Documents, with graphics that look great no matter how large I scale, so
> it can not really be the viewer?

Your previous post indicated that your file size varied with the quality of
the graphic, so I assume that the graphics you are embedding are raster. Is
the same thing true of the commercial documents that you refer to above? I
would expect vector graphics to look much better when scaled on screen or
anywhere else.

Also, you might experiment with the settings in the "Smoothing" section of
the Edit / Preferences / General menu in Acrobat (I think it is in the same
place on the Acrobat Reader).

Victor Mote



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

2002-11-15 Thread Victor Mote
Markus Müller wrote:

> Hi,
> is it possible to determine if the current table row is the first
> one a new
> page?

There is certainly no way to do this when generating the XSL-FO document,
because it cannot possible have any idea what the layout will be. What are
you trying to accomplish?

Victor Mote



RE: Viewing PDF without AcrobatReader or FOP??

2002-11-15 Thread Victor Mote
Markus Müller 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, and using
> FOP only to display a file isn't a solution, too (since it's too
> large). Has
> anybody a little hint?

Obviously you can always write your own viewer and there are other PDF
viewers available, but it will be difficult to answer your question unless
you can tell us what shortcoming in Acrobat Reader you are trying to
overcome.

Victor Mote



RE: Quality of Grafics

2002-11-15 Thread Jeff_Mitchell

Stephan-

Glad I could help (even if it was in a passive way)

Just a few parting thoughts on the matter, although it sounds like you've
got a pretty good idea of what's going on already.  Before you go on,
though, I must apologize for the use of U.S. units (inches, dots per inch,
etc.)  I'm just used to dealing with said units, and things actually come
out to nicer, rounder numbers when using inches. So...

You're right that scaling the image down will both reduce the size of your
PDF, and the quality of the image.  There are a few things you can do to
find a happy medium between PDF size and image quality.  The most obvious
is to make sure you're using images of an appropriate resolution.  If
you're using a digital camera, to take 1600x1200 images, and the images get
printed in a 4inch by 3 inch rectangle on your PDF, you're looking at a
printed resolution of 400 DPI (Dots (or pixels, if you prefer) Per Inch.)
My system is meant to allow people to choose ad templates, fill them with
assets (copy, headlines, and photos) from a database, and create a
print-ready PDF, meaning that said PDF could be taken to a commercial
printer for a run of 50,000 copies, or submitted to a magazine or other
print publication for publishing.  I use 300 DPI as a minimum for my
output, and the results are of the same quality as most glossy magazine
advertisements.  If that kind of quality is not necessary, you may want to
try printing a PDF with the image printed at 200 DPI (this would be a
800x600 pixel image, provided the print dimensions are still 4 inches by 3
inches, as in my previous example.)  This halves your resolution, but
reduces your image size (for an uncompressed image) to 1/4 it's original
size.

A secondary way to reduce the size of your PDF, while (mostly) preserving
image quality is to use JPEG images as an input, and to play with the
quality setting of the JPEG.  It's my understanding that when FOP puts
images into a PDF, it internally converts them to a JPEG, UNLESS the input
image is already a JPEG, in which case it simply embeds the image in the
PDF.  Basically, this means that by using JPEG-formatted images as your
input, you have direct control over the number of bytes your image content
takes up in the resulting PDF.

Depending on your requirements, you may be able to significantly reduce the
size of your PDFs by using these 2 methods in some sort of preprocessing
step between pulling the image from the camera, and generating the actual
PDF.

Sorry about the huge reply, especially if it's information you already
know.  I didn't realize it was going to be this big, but perhaps it'll help
some poor soul searching the archive in the future.

-Jeff



  
"Stephan Wiesner"   
  
<[EMAIL PROTECTED]   To: <[EMAIL PROTECTED]>

iesner.de>   cc:
  
 Subject: RE: Quality of 
Grafics  
11/15/2002 01:27
  
PM  
  
Please respond to   
  
fop-user
  

  

  




Hi Jeff,
Okay, I did prepare a document to send to you and, of course. I can get
fine quality if I use very large pictures. I made them with my digital
camera at 1600 resolution and formerly cut it to 25% size. This looked
still very good on the screen, but not in the PDF. When I don't reduce
the size, the quality is fine. This is, in my oppinion, because now the
picture is at 100% when I set the Acrobat to 400%, which I don't do. The
drawback, of course, is that the PDF gets real huge. I suppose that is a
price I will have to pay, though and I can live with that.

So, you helped me without really doing anything :-)


Stephan

> -Original Message-
> From: [

RE: Quality of Grafics

2002-11-15 Thread Stephan Wiesner
Hi Jeff,
Okay, I did prepare a document to send to you and, of course. I can get
fine quality if I use very large pictures. I made them with my digital
camera at 1600 resolution and formerly cut it to 25% size. This looked
still very good on the screen, but not in the PDF. When I don't reduce
the size, the quality is fine. This is, in my oppinion, because now the
picture is at 100% when I set the Acrobat to 400%, which I don't do. The
drawback, of course, is that the PDF gets real huge. I suppose that is a
price I will have to pay, though and I can live with that. 

So, you helped me without really doing anything :-)


Stephan

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Freitag, 15. November 2002 18:46
> To: [EMAIL PROTECTED]
> Subject: RE: Quality of Grafics
> 
> 
> 
> Stephan-
> 
> Based on the fact that your printed copy looks correct, I 
> still think it might be a display issue.  A quick and easy 
> way to check it would be to create a test document containing 
> multiple instances of the same image, each at a different 
> size (either by specifying a scaling factor, or by specifying 
> hard dimensional constraints (like pt or cm)).  I'd bet (if I 
> were a gambling man) that all of the printed results are 
> going to look good, while your on-screen representations are 
> going to be a crap shoot.
> 
> Is the purpose of your project to create PDFs that are going 
> to be primarily viewed on-screen, or on hard copy?  And if 
> possible, could you send me a copy of the offending PDF, and 
> the image itself? (In a separate e-mail directly to my 
> address; you'll probably get scolded if you post potentially 
> large attachments to the group.)
> 
> -Jeff
> 
> 



Producing Font Metrics

2002-11-15 Thread Lucas, Allison








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?

 

 

Allison Lucas

X2725

 








RE: Quality of Grafics

2002-11-15 Thread Jeff_Mitchell

Stephan-

Based on the fact that your printed copy looks correct, I still think it
might be a display issue.  A quick and easy way to check it would be to
create a test document containing multiple instances of the same image,
each at a different size (either by specifying a scaling factor, or by
specifying hard dimensional constraints (like pt or cm)).  I'd bet (if I
were a gambling man) that all of the printed results are going to look
good, while your on-screen representations are going to be a crap shoot.

Is the purpose of your project to create PDFs that are going to be
primarily viewed on-screen, or on hard copy?  And if possible, could you
send me a copy of the offending PDF, and the image itself? (In a separate
e-mail directly to my address; you'll probably get scolded if you post
potentially large attachments to the group.)

-Jeff



  
"Stephan Wiesner"   
  
<[EMAIL PROTECTED]   To: <[EMAIL PROTECTED]>

iesner.de>   cc:
  
 Subject: RE: Quality of 
Grafics  
11/15/2002 12:36
  
PM  
  
Please respond to   
  
fop-user
  

  

  




Hi Jef and thanks for the fast reply.
The printout looks fine. It is printed with 100%, though, so that was to
be expected.

I use the current Acrobat Reader to view my files and I have commercial
Documents, with graphics that look great no matter how large I scale, so
it can not really be the viewer?

Stephan

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Freitag, 15. November 2002 18:19
> To: [EMAIL PROTECTED]
> Subject: Re: Quality of Grafics
>
>
>
> Stephan-
>
> Are you noticing degraded image quality in a printed version
> of the PDF, or only in an on-screen display?  If it's in the
> on-screen display, I would attribute the degradation to the
> way the PDF Viewer handles scaling of images.  Rather than
> using a nice, blurred scaling algorithm, I believe the PDF
> Viewer uses a quick and dirty single-sample scaling
> algorithm, which can lead to distortion of the images,
> especially when viewed at odd factoring sizes like 66% or 75%.
>
> If it's in a printed PDF, then I have no explanation,
> although I'd like to see an example.  I've implemented a
> system using FOP, which embeds hi resolution JPEGS into a
> PDF, and the printed output looks good, while the on-screen
> output can sometimes be a little grainy.  It's not terribly
> noticeable on my images, since they're photographs, and don't
> generally have hard edges, which tend to show scaling
> shortcuts more than soft gradients.
>
> Hope that helps.
>
> -Jeff
>
>
>
>







RE: Quality of Grafics

2002-11-15 Thread Stephan Wiesner
Hi Jef and thanks for the fast reply.
The printout looks fine. It is printed with 100%, though, so that was to
be expected.

I use the current Acrobat Reader to view my files and I have commercial
Documents, with graphics that look great no matter how large I scale, so
it can not really be the viewer?

Stephan

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Freitag, 15. November 2002 18:19
> To: [EMAIL PROTECTED]
> Subject: Re: Quality of Grafics
> 
> 
> 
> Stephan-
> 
> Are you noticing degraded image quality in a printed version 
> of the PDF, or only in an on-screen display?  If it's in the 
> on-screen display, I would attribute the degradation to the 
> way the PDF Viewer handles scaling of images.  Rather than 
> using a nice, blurred scaling algorithm, I believe the PDF 
> Viewer uses a quick and dirty single-sample scaling 
> algorithm, which can lead to distortion of the images, 
> especially when viewed at odd factoring sizes like 66% or 75%.
> 
> If it's in a printed PDF, then I have no explanation, 
> although I'd like to see an example.  I've implemented a 
> system using FOP, which embeds hi resolution JPEGS into a 
> PDF, and the printed output looks good, while the on-screen 
> output can sometimes be a little grainy.  It's not terribly 
> noticeable on my images, since they're photographs, and don't 
> generally have hard edges, which tend to show scaling 
> shortcuts more than soft gradients.
> 
> Hope that helps.
> 
> -Jeff
> 
> 
>   
>



Re: Quality of Grafics

2002-11-15 Thread Jeff_Mitchell

Stephan-

Are you noticing degraded image quality in a printed version of the PDF, or
only in an on-screen display?  If it's in the on-screen display, I would
attribute the degradation to the way the PDF Viewer handles scaling of
images.  Rather than using a nice, blurred scaling algorithm, I believe the
PDF Viewer uses a quick and dirty single-sample scaling algorithm, which
can lead to distortion of the images, especially when viewed at odd
factoring sizes like 66% or 75%.

If it's in a printed PDF, then I have no explanation, although I'd like to
see an example.  I've implemented a system using FOP, which embeds hi
resolution JPEGS into a PDF, and the printed output looks good, while the
on-screen output can sometimes be a little grainy.  It's not terribly
noticeable on my images, since they're photographs, and don't generally
have hard edges, which tend to show scaling shortcuts more than soft
gradients.

Hope that helps.

-Jeff



  
"Stephan Wiesner"   
  
<[EMAIL PROTECTED]   To: <[EMAIL PROTECTED]>

iesner.de>   cc:
  
 Subject: Quality of Grafics
  
11/15/2002 12:03
  
PM  
  
Please respond to   
  
fop-user
  

  

  




Hi list,
Is there a way to improve the quality of graphics?
I played around with high quality pictures and the better the quality,
the bigger the resulting PDF (which makes sense), but the image looks
good only with 100% view, which I hardly ever use. At all other sizes it
gets quite ugly, no matter what I try.

Is there a switch, like with the Acrobat Writer, for optimation?

Stephan







AW: FOP TrueType

2002-11-15 Thread Scherler, Thorsten
Thanks it is working!

Ok, all links that have been posted are part of the solution but not like they 
have been explained. some changes has to been done bfore it was working!

But again thanks to Denis and Christian!

-Ursprüngliche Nachricht-
Von: Christian Geisert [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 15. November 2002 17:49
An: [EMAIL PROTECTED]
Betreff: Re: FOP TrueType


Scherler, Thorsten wrote:
> How do I have to do it with cocoon?

http://xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html

BTW this is the first hit while searching with Google for "cocoon fop 
custom fonts"

Christian



Quality of Grafics

2002-11-15 Thread Stephan Wiesner
Hi list,
Is there a way to improve the quality of graphics?
I played around with high quality pictures and the better the quality,
the bigger the resulting PDF (which makes sense), but the image looks
good only with 100% view, which I hardly ever use. At all other sizes it
gets quite ugly, no matter what I try.

Is there a switch, like with the Acrobat Writer, for optimation?

Stephan



Re: FOP TrueType

2002-11-15 Thread Christian Geisert
Scherler, Thorsten wrote:
How do I have to do it with cocoon?
http://xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html
BTW this is the first hit while searching with Google for "cocoon fop 
custom fonts"

Christian


Problem with fo:marker

2002-11-15 Thread Yann Verlynde
Hello,

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













F







...

and in the body I use:















 





...




RE: External-Link Hotspot Offset Problem FOP 0.20.4

2002-11-15 Thread Andy Joslin
Christian Geisert wrote :

>This bug is fixed in CVS.
>So you could either checkout the source and compile FOP yourself or
wait some days for the 0.20.5
>release candidate (tester are welcome ;-)

Great ! I'll be more than happy to test the new release when it comes
out :-) In the meantime I'll have a look at compiling the source as
well. I've tried playing around with the padding, but this doesn't seem
to have had much effect and obviously it would be better to get a proper
fix if possible.

Sorry for the cross-post, I wasn't sure that I was asking the question
of the right list.

Thanks again


Andy













This e-mail and its attachments are confidential. If you are not the intended 
recipient of this e-mail message, please telephone or e-mail us immediately, 
delete this message from your system and do not read, copy, distribute, 
disclose or otherwise use this e-mail message and any attachments. 

Although ri3k Limited believes this e-mail and any attachments to be free of 
any virus or other defect which may affect your computer, it is the 
responsibility of the recipient to ensure that it is virus free and ri3k 
Limited does not accept any responsibility for any loss or damage in any way 
from its use.

ri3k Limited
Registered in England: 10-12 Ely Place, London, EC1N 6RY
Company Number: 3909745


AW: AW: FOP TrueType

2002-11-15 Thread Scherler, Thorsten
How do I have to do it with cocoon?

-Ursprüngliche Nachricht-
Von: Christian Geisert [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 15. November 2002 16:55
An: [EMAIL PROTECTED]
Betreff: Re: AW: FOP TrueType


Scherler, Thorsten wrote:
> Hi Markus, 
> I found this page (combined with what u have written):
> http://xml.apache.org/fop/fonts.html

[..]

> This font contains no embedding license restrictions
> 
> Then I did:
> Register the fonts within FOP
> Edit conf/userconfig.xml and add entries for the font if the fonts section, 
> ie:
>  
> 
> 
>  
> 
> BUT I am using FOP as servlet (Tomcat and cocoon). I now have to compile a 
> fop.jar with my userconfig.xml, or not?

You don't need to compile FOP if you want to use other fonts.
Registering means to tell FOP where to find the new fonts at runtime.
For loading a configuration file within a servlet see 
http://xml.apache.org/fop/faq.html#faq-N1030C

Christian



Re: HttpServletResponse.setHeader("Content-Disposition","attachment; filename=Report.pdf ")

2002-11-15 Thread Christian Geisert
[EMAIL PROTECTED] wrote:
Hello with all!
I have a servlet in which I send a PDF to the navigator while
writing
HttpServletResponse.setContentType("application/pdf ");
HttpServletResponse.setHeader("Content-Disposition","attachment;
filename=Report.pdf ");
And the navigator twice opens the page of download of file.
Why?  I would like to know if it is about option of configuration of
navigator IE and how to use the HttpServletResponse.setHeader(. method
correctly.) with good options.
See the FAQ at http://xml.apache.org/fop/faq.html#part-N10445
Christian


Re: AW: FOP TrueType

2002-11-15 Thread Christian Geisert
Scherler, Thorsten wrote:
Hi Markus, 
I found this page (combined with what u have written):
http://xml.apache.org/fop/fonts.html
[..]
This font contains no embedding license restrictions
Then I did:
Register the fonts within FOP
Edit conf/userconfig.xml and add entries for the font if the fonts section, ie:
 


 
BUT I am using FOP as servlet (Tomcat and cocoon). I now have to compile a fop.jar with my userconfig.xml, or not?
You don't need to compile FOP if you want to use other fonts.
Registering means to tell FOP where to find the new fonts at runtime.
For loading a configuration file within a servlet see 
http://xml.apache.org/fop/faq.html#faq-N1030C

Christian


Re: External-Link Hotspot Offset Problem FOP 0.20.4

2002-11-15 Thread Christian Geisert
Andy Joslin wrote:
Hi All
I was wondering if there was a standard workaround for the problem of
the fo:basic-link hotspot displaying in the wrong position (approx 2-3cm
above where the link should be).
There's no standard workaround it depends on your document.
Maybe avoiding padding helps..
I'm using FOP 0.20.4, and have seen a bugfix relating to this, so does
anyone have experience of getting this issue resolved and working in FOP
0.20.4 ?
This bug is fixed in CVS.
So you could either checkout the source and compile FOP yourself or
wait some days for the 0.20.5 release candidate (tester are welcome ;-)
Christian
P.S. It's unnecessary cross-posting this question to fop-dev


HttpServletResponse.setHeader("Content-Disposition","attachment; filename=Report.pdf ")

2002-11-15 Thread j-kong


Hello with all!

I have a servlet in which I send a PDF to the navigator while
writing

HttpServletResponse.setContentType("application/pdf ");
HttpServletResponse.setHeader("Content-Disposition","attachment;
filename=Report.pdf ");

And the navigator twice opens the page of download of file.
Why?  I would like to know if it is about option of configuration of
navigator IE and how to use the HttpServletResponse.setHeader(. method
correctly.) with good options.

Thank you to indicate my problem to me!


__
Jianxin KONG   ( [EMAIL PROTECTED] )
CHRONOPOST INTERNATIONAL
Dir. systèmes d'information




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

2002-11-15 Thread "Müller, Markus"
Hi,
is it possible to determine if the current table row is the first one a new
page? 
Yours, Markus


AW: FOP TrueType

2002-11-15 Thread Scherler, Thorsten
Hello, 

I am lost again.

Ich downloaded the src. I did all what I 've written before. 

What command do I need to compile fop with arial? I mean I have to tell that in 
the fop.jar there should be look in my userconfig.xml and add Ariel to the font 
list?

-Ursprüngliche Nachricht-
Von: Scherler, Thorsten 
Gesendet: Freitag, 15. November 2002 13:42
An: [EMAIL PROTECTED]
Betreff: AW: FOP TrueType


Thank you very much! I will try!

-Ursprüngliche Nachricht-
Von: "Müller, Markus" [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 15. November 2002 13:41
An: [EMAIL PROTECTED]
Betreff: AW: FOP TrueType


Yes, ant is the tool you need. I think, it's described in the documentation.
MM

# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 15. November 2002 13:37
# An: [EMAIL PROTECTED]
# Betreff: AW: FOP TrueType
# 
# How can I build my C:\fop-0.20.4\build\fop.jar with the new 
# Font? Using ant? 
# 
# I don't have a clue!
# 
# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten 
# Gesendet: Freitag, 15. November 2002 13:31
# An: [EMAIL PROTECTED]
# Cc: Wyonacms-Users (E-Mail)
# Betreff: AW: FOP TrueType
# 
# 
# Hi Markus, 
# I found this page (combined with what u have written):
# http://xml.apache.org/fop/fonts.html
# 
# I did (there is a error if you use the original 
# [...C:\myfonts\arial.ttf C:\myfonts\arial.ttf arial.xml]):
# java -cp 
# build\fop.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xa
# lan-2.3.1.jar;lib\batik.jar 
# org.apache.fop.fonts.apps.TTFReader C:\myfonts\arial.ttf 
# C:\myfonts\arial.xml 
# 
# Now I have:
# TTF Reader v1.1.1
# 
# Reading C:\myfonts\arial.ttf...
# 
# Number of glyphs in font: 1296
# Creating xml font file...
# 
# Creating CID encoded metrics
# Writing xml font file C:\myfonts\arial.xml...
# 
# This font contains no embedding license restrictions
# 
# Then I did:
# Register the fonts within FOP
# Edit conf/userconfig.xml and add entries for the font if the 
# fonts section, ie:
#  
# 
# 
#  
# 
# BUT I am using FOP as servlet (Tomcat and cocoon). I now have 
# to compile a fop.jar with my userconfig.xml, or not?
# Then I have to replace the old fop.jar 
# @tomcat\webapps\cocoon\WEB-INF\lib. And then I have Arial 
# within fo, or not
# 
# Thanks for the help
# 
# -Ursprüngliche Nachricht-
# Von: "Müller, Markus" [mailto:[EMAIL PROTECTED]
# Gesendet: Freitag, 15. November 2002 12:55
# An: [EMAIL PROTECTED]
# Betreff: AW: FOP TrueType
# 
# 
# Hi,
# 
# you have to specify the class-libaries needed by fop. You can 
# do this in
# your commandline like this:
# 
# java -cp [path and name of jar-file] 
# org.apache.fop.fonts.apps.TTFReader
# c:\WINNT\Fonts\arial.ttf arial.xml
# 
# The JAR files you need I don't know exactly, but fop.jar will 
# be one of
# them. Take a look at fop.bat, from there you can copy the -cp 
#  part.
# 
# Hope, this will help you
# 
# Markus
# 
# # -Ursprüngliche Nachricht-
# # Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# # Gesendet am: Freitag, 15. November 2002 12:10
# # An: Fop-User (E-Mail); Wyonacms-Users (E-Mail)
# # Betreff: FOP TrueType
# # 
# # Hello group,
# # 
# # I would like to do the following:
# # http://www.infosys.tuwien.ac.at/Services/Docu/XML/Fop-0.20.1/d
# # ocs/examples/advanced/cid-fonts.pdf
# # 
# # I want to add Arial to my reports I do that:
# # java org.apache.fop.fonts.apps.TTFReader 
# # c:\WINNT\Fonts\arial.ttf arial.xml
# # 
# # I have that:
# # Exception in thread "main" java.lang.NoClassDefFoundError: 
# # org/apache/fop/fonts/
# # apps/TTFReader
# # 
# # I am the absolute newbie in java!
# # 
# # Thanks for the help!
# # 
# # > Mit freundlichem Gruss,
# # > 
# # > Thorsten Scherler
# # > Marketing / Telefonmarketing
# # > 
# # > Weidmüller GmbH & Co.
# # > P.O. Box 2807
# # > 33058 Paderborn
# # > Tel.:+ 49 - 5252-960-350
# # > Fax:+ 49 - 5252-960-116
# # > eMail: [EMAIL PROTECTED]
# # > http://www.weidmueller.de
# # > 
# # > 
# # 
# 


AW: FOP TrueType

2002-11-15 Thread Scherler, Thorsten
Thank you very much! I will try!

-Ursprüngliche Nachricht-
Von: "Müller, Markus" [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 15. November 2002 13:41
An: [EMAIL PROTECTED]
Betreff: AW: FOP TrueType


Yes, ant is the tool you need. I think, it's described in the documentation.
MM

# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 15. November 2002 13:37
# An: [EMAIL PROTECTED]
# Betreff: AW: FOP TrueType
# 
# How can I build my C:\fop-0.20.4\build\fop.jar with the new 
# Font? Using ant? 
# 
# I don't have a clue!
# 
# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten 
# Gesendet: Freitag, 15. November 2002 13:31
# An: [EMAIL PROTECTED]
# Cc: Wyonacms-Users (E-Mail)
# Betreff: AW: FOP TrueType
# 
# 
# Hi Markus, 
# I found this page (combined with what u have written):
# http://xml.apache.org/fop/fonts.html
# 
# I did (there is a error if you use the original 
# [...C:\myfonts\arial.ttf C:\myfonts\arial.ttf arial.xml]):
# java -cp 
# build\fop.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xa
# lan-2.3.1.jar;lib\batik.jar 
# org.apache.fop.fonts.apps.TTFReader C:\myfonts\arial.ttf 
# C:\myfonts\arial.xml 
# 
# Now I have:
# TTF Reader v1.1.1
# 
# Reading C:\myfonts\arial.ttf...
# 
# Number of glyphs in font: 1296
# Creating xml font file...
# 
# Creating CID encoded metrics
# Writing xml font file C:\myfonts\arial.xml...
# 
# This font contains no embedding license restrictions
# 
# Then I did:
# Register the fonts within FOP
# Edit conf/userconfig.xml and add entries for the font if the 
# fonts section, ie:
#  
# 
# 
#  
# 
# BUT I am using FOP as servlet (Tomcat and cocoon). I now have 
# to compile a fop.jar with my userconfig.xml, or not?
# Then I have to replace the old fop.jar 
# @tomcat\webapps\cocoon\WEB-INF\lib. And then I have Arial 
# within fo, or not
# 
# Thanks for the help
# 
# -Ursprüngliche Nachricht-
# Von: "Müller, Markus" [mailto:[EMAIL PROTECTED]
# Gesendet: Freitag, 15. November 2002 12:55
# An: [EMAIL PROTECTED]
# Betreff: AW: FOP TrueType
# 
# 
# Hi,
# 
# you have to specify the class-libaries needed by fop. You can 
# do this in
# your commandline like this:
# 
# java -cp [path and name of jar-file] 
# org.apache.fop.fonts.apps.TTFReader
# c:\WINNT\Fonts\arial.ttf arial.xml
# 
# The JAR files you need I don't know exactly, but fop.jar will 
# be one of
# them. Take a look at fop.bat, from there you can copy the -cp 
#  part.
# 
# Hope, this will help you
# 
# Markus
# 
# # -Ursprüngliche Nachricht-
# # Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# # Gesendet am: Freitag, 15. November 2002 12:10
# # An: Fop-User (E-Mail); Wyonacms-Users (E-Mail)
# # Betreff: FOP TrueType
# # 
# # Hello group,
# # 
# # I would like to do the following:
# # http://www.infosys.tuwien.ac.at/Services/Docu/XML/Fop-0.20.1/d
# # ocs/examples/advanced/cid-fonts.pdf
# # 
# # I want to add Arial to my reports I do that:
# # java org.apache.fop.fonts.apps.TTFReader 
# # c:\WINNT\Fonts\arial.ttf arial.xml
# # 
# # I have that:
# # Exception in thread "main" java.lang.NoClassDefFoundError: 
# # org/apache/fop/fonts/
# # apps/TTFReader
# # 
# # I am the absolute newbie in java!
# # 
# # Thanks for the help!
# # 
# # > Mit freundlichem Gruss,
# # > 
# # > Thorsten Scherler
# # > Marketing / Telefonmarketing
# # > 
# # > Weidmüller GmbH & Co.
# # > P.O. Box 2807
# # > 33058 Paderborn
# # > Tel.:+ 49 - 5252-960-350
# # > Fax:+ 49 - 5252-960-116
# # > eMail: [EMAIL PROTECTED]
# # > http://www.weidmueller.de
# # > 
# # > 
# # 
# 


AW: FOP TrueType

2002-11-15 Thread "Müller, Markus"
Yes, ant is the tool you need. I think, it's described in the documentation.
MM

# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 15. November 2002 13:37
# An: [EMAIL PROTECTED]
# Betreff: AW: FOP TrueType
# 
# How can I build my C:\fop-0.20.4\build\fop.jar with the new 
# Font? Using ant? 
# 
# I don't have a clue!
# 
# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten 
# Gesendet: Freitag, 15. November 2002 13:31
# An: [EMAIL PROTECTED]
# Cc: Wyonacms-Users (E-Mail)
# Betreff: AW: FOP TrueType
# 
# 
# Hi Markus, 
# I found this page (combined with what u have written):
# http://xml.apache.org/fop/fonts.html
# 
# I did (there is a error if you use the original 
# [...C:\myfonts\arial.ttf C:\myfonts\arial.ttf arial.xml]):
# java -cp 
# build\fop.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xa
# lan-2.3.1.jar;lib\batik.jar 
# org.apache.fop.fonts.apps.TTFReader C:\myfonts\arial.ttf 
# C:\myfonts\arial.xml 
# 
# Now I have:
# TTF Reader v1.1.1
# 
# Reading C:\myfonts\arial.ttf...
# 
# Number of glyphs in font: 1296
# Creating xml font file...
# 
# Creating CID encoded metrics
# Writing xml font file C:\myfonts\arial.xml...
# 
# This font contains no embedding license restrictions
# 
# Then I did:
# Register the fonts within FOP
# Edit conf/userconfig.xml and add entries for the font if the 
# fonts section, ie:
#  
# 
# 
#  
# 
# BUT I am using FOP as servlet (Tomcat and cocoon). I now have 
# to compile a fop.jar with my userconfig.xml, or not?
# Then I have to replace the old fop.jar 
# @tomcat\webapps\cocoon\WEB-INF\lib. And then I have Arial 
# within fo, or not
# 
# Thanks for the help
# 
# -Ursprüngliche Nachricht-
# Von: "Müller, Markus" [mailto:[EMAIL PROTECTED]
# Gesendet: Freitag, 15. November 2002 12:55
# An: [EMAIL PROTECTED]
# Betreff: AW: FOP TrueType
# 
# 
# Hi,
# 
# you have to specify the class-libaries needed by fop. You can 
# do this in
# your commandline like this:
# 
# java -cp [path and name of jar-file] 
# org.apache.fop.fonts.apps.TTFReader
# c:\WINNT\Fonts\arial.ttf arial.xml
# 
# The JAR files you need I don't know exactly, but fop.jar will 
# be one of
# them. Take a look at fop.bat, from there you can copy the -cp 
#  part.
# 
# Hope, this will help you
# 
# Markus
# 
# # -Ursprüngliche Nachricht-
# # Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# # Gesendet am: Freitag, 15. November 2002 12:10
# # An: Fop-User (E-Mail); Wyonacms-Users (E-Mail)
# # Betreff: FOP TrueType
# # 
# # Hello group,
# # 
# # I would like to do the following:
# # http://www.infosys.tuwien.ac.at/Services/Docu/XML/Fop-0.20.1/d
# # ocs/examples/advanced/cid-fonts.pdf
# # 
# # I want to add Arial to my reports I do that:
# # java org.apache.fop.fonts.apps.TTFReader 
# # c:\WINNT\Fonts\arial.ttf arial.xml
# # 
# # I have that:
# # Exception in thread "main" java.lang.NoClassDefFoundError: 
# # org/apache/fop/fonts/
# # apps/TTFReader
# # 
# # I am the absolute newbie in java!
# # 
# # Thanks for the help!
# # 
# # > Mit freundlichem Gruss,
# # > 
# # > Thorsten Scherler
# # > Marketing / Telefonmarketing
# # > 
# # > Weidmüller GmbH & Co.
# # > P.O. Box 2807
# # > 33058 Paderborn
# # > Tel.:+ 49 - 5252-960-350
# # > Fax:+ 49 - 5252-960-116
# # > eMail: [EMAIL PROTECTED]
# # > http://www.weidmueller.de
# # > 
# # > 
# # 
# 


AW: FOP TrueType

2002-11-15 Thread "Müller, Markus"
Hi,

the problem is, that you have to supply the name of your userconfig.xml to
FOP. Using fop.bat this is no problem. I never used FOP in a servlet. So yo
have to find a way to pass the userconfig.xml path (and name) via the
webinf.xml (??) to your servlet, which provides this information to FOP.

MM

# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 15. November 2002 13:31
# An: [EMAIL PROTECTED]
# Cc: Wyonacms-Users (E-Mail)
# Betreff: AW: FOP TrueType
# 
# Hi Markus, 
# I found this page (combined with what u have written):
# http://xml.apache.org/fop/fonts.html
# 
# I did (there is a error if you use the original 
# [...C:\myfonts\arial.ttf C:\myfonts\arial.ttf arial.xml]):
# java -cp 
# build\fop.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xa
# lan-2.3.1.jar;lib\batik.jar 
# org.apache.fop.fonts.apps.TTFReader C:\myfonts\arial.ttf 
# C:\myfonts\arial.xml 
# 
# Now I have:
# TTF Reader v1.1.1
# 
# Reading C:\myfonts\arial.ttf...
# 
# Number of glyphs in font: 1296
# Creating xml font file...
# 
# Creating CID encoded metrics
# Writing xml font file C:\myfonts\arial.xml...
# 
# This font contains no embedding license restrictions
# 
# Then I did:
# Register the fonts within FOP
# Edit conf/userconfig.xml and add entries for the font if the 
# fonts section, ie:
#  
# 
# 
#  
# 
# BUT I am using FOP as servlet (Tomcat and cocoon). I now have 
# to compile a fop.jar with my userconfig.xml, or not?
# Then I have to replace the old fop.jar 
# @tomcat\webapps\cocoon\WEB-INF\lib. And then I have Arial 
# within fo, or not
# 
# Thanks for the help
# 
# -Ursprüngliche Nachricht-
# Von: "Müller, Markus" [mailto:[EMAIL PROTECTED]
# Gesendet: Freitag, 15. November 2002 12:55
# An: [EMAIL PROTECTED]
# Betreff: AW: FOP TrueType
# 
# 
# Hi,
# 
# you have to specify the class-libaries needed by fop. You can 
# do this in
# your commandline like this:
# 
# java -cp [path and name of jar-file] 
# org.apache.fop.fonts.apps.TTFReader
# c:\WINNT\Fonts\arial.ttf arial.xml
# 
# The JAR files you need I don't know exactly, but fop.jar will 
# be one of
# them. Take a look at fop.bat, from there you can copy the -cp 
#  part.
# 
# Hope, this will help you
# 
# Markus
# 
# # -Ursprüngliche Nachricht-
# # Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# # Gesendet am: Freitag, 15. November 2002 12:10
# # An: Fop-User (E-Mail); Wyonacms-Users (E-Mail)
# # Betreff: FOP TrueType
# # 
# # Hello group,
# # 
# # I would like to do the following:
# # http://www.infosys.tuwien.ac.at/Services/Docu/XML/Fop-0.20.1/d
# # ocs/examples/advanced/cid-fonts.pdf
# # 
# # I want to add Arial to my reports I do that:
# # java org.apache.fop.fonts.apps.TTFReader 
# # c:\WINNT\Fonts\arial.ttf arial.xml
# # 
# # I have that:
# # Exception in thread "main" java.lang.NoClassDefFoundError: 
# # org/apache/fop/fonts/
# # apps/TTFReader
# # 
# # I am the absolute newbie in java!
# # 
# # Thanks for the help!
# # 
# # > Mit freundlichem Gruss,
# # > 
# # > Thorsten Scherler
# # > Marketing / Telefonmarketing
# # > 
# # > Weidmüller GmbH & Co.
# # > P.O. Box 2807
# # > 33058 Paderborn
# # > Tel.:+ 49 - 5252-960-350
# # > Fax:+ 49 - 5252-960-116
# # > eMail: [EMAIL PROTECTED]
# # > http://www.weidmueller.de
# # > 
# # > 
# # 
# 


AW: FOP TrueType

2002-11-15 Thread Scherler, Thorsten
How can I build my C:\fop-0.20.4\build\fop.jar with the new Font? Using ant? 

I don't have a clue!

-Ursprüngliche Nachricht-
Von: Scherler, Thorsten 
Gesendet: Freitag, 15. November 2002 13:31
An: [EMAIL PROTECTED]
Cc: Wyonacms-Users (E-Mail)
Betreff: AW: FOP TrueType


Hi Markus, 
I found this page (combined with what u have written):
http://xml.apache.org/fop/fonts.html

I did (there is a error if you use the original [...C:\myfonts\arial.ttf 
C:\myfonts\arial.ttf arial.xml]):
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.TTFReader C:\myfonts\arial.ttf C:\myfonts\arial.xml 

Now I have:
TTF Reader v1.1.1

Reading C:\myfonts\arial.ttf...

Number of glyphs in font: 1296
Creating xml font file...

Creating CID encoded metrics
Writing xml font file C:\myfonts\arial.xml...

This font contains no embedding license restrictions

Then I did:
Register the fonts within FOP
Edit conf/userconfig.xml and add entries for the font if the fonts section, ie:
 


 

BUT I am using FOP as servlet (Tomcat and cocoon). I now have to compile a 
fop.jar with my userconfig.xml, or not?
Then I have to replace the old fop.jar @tomcat\webapps\cocoon\WEB-INF\lib. And 
then I have Arial within fo, or not

Thanks for the help

-Ursprüngliche Nachricht-
Von: "Müller, Markus" [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 15. November 2002 12:55
An: [EMAIL PROTECTED]
Betreff: AW: FOP TrueType


Hi,

you have to specify the class-libaries needed by fop. You can do this in
your commandline like this:

java -cp [path and name of jar-file] org.apache.fop.fonts.apps.TTFReader
c:\WINNT\Fonts\arial.ttf arial.xml

The JAR files you need I don't know exactly, but fop.jar will be one of
them. Take a look at fop.bat, from there you can copy the -cp  part.

Hope, this will help you

Markus

# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 15. November 2002 12:10
# An: Fop-User (E-Mail); Wyonacms-Users (E-Mail)
# Betreff: FOP TrueType
# 
# Hello group,
# 
# I would like to do the following:
# http://www.infosys.tuwien.ac.at/Services/Docu/XML/Fop-0.20.1/d
# ocs/examples/advanced/cid-fonts.pdf
# 
# I want to add Arial to my reports I do that:
# java org.apache.fop.fonts.apps.TTFReader 
# c:\WINNT\Fonts\arial.ttf arial.xml
# 
# I have that:
# Exception in thread "main" java.lang.NoClassDefFoundError: 
# org/apache/fop/fonts/
# apps/TTFReader
# 
# I am the absolute newbie in java!
# 
# Thanks for the help!
# 
# > Mit freundlichem Gruss,
# > 
# > Thorsten Scherler
# > Marketing / Telefonmarketing
# > 
# > Weidmüller GmbH & Co.
# > P.O. Box 2807
# > 33058 Paderborn
# > Tel.:+ 49 - 5252-960-350
# > Fax:+ 49 - 5252-960-116
# > eMail: [EMAIL PROTECTED]
# > http://www.weidmueller.de
# > 
# > 
# 


AW: FOP TrueType

2002-11-15 Thread Scherler, Thorsten
Hi Markus, 
I found this page (combined with what u have written):
http://xml.apache.org/fop/fonts.html

I did (there is a error if you use the original [...C:\myfonts\arial.ttf 
C:\myfonts\arial.ttf arial.xml]):
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.TTFReader C:\myfonts\arial.ttf C:\myfonts\arial.xml 

Now I have:
TTF Reader v1.1.1

Reading C:\myfonts\arial.ttf...

Number of glyphs in font: 1296
Creating xml font file...

Creating CID encoded metrics
Writing xml font file C:\myfonts\arial.xml...

This font contains no embedding license restrictions

Then I did:
Register the fonts within FOP
Edit conf/userconfig.xml and add entries for the font if the fonts section, ie:
 


 

BUT I am using FOP as servlet (Tomcat and cocoon). I now have to compile a 
fop.jar with my userconfig.xml, or not?
Then I have to replace the old fop.jar @tomcat\webapps\cocoon\WEB-INF\lib. And 
then I have Arial within fo, or not

Thanks for the help

-Ursprüngliche Nachricht-
Von: "Müller, Markus" [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 15. November 2002 12:55
An: [EMAIL PROTECTED]
Betreff: AW: FOP TrueType


Hi,

you have to specify the class-libaries needed by fop. You can do this in
your commandline like this:

java -cp [path and name of jar-file] org.apache.fop.fonts.apps.TTFReader
c:\WINNT\Fonts\arial.ttf arial.xml

The JAR files you need I don't know exactly, but fop.jar will be one of
them. Take a look at fop.bat, from there you can copy the -cp  part.

Hope, this will help you

Markus

# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 15. November 2002 12:10
# An: Fop-User (E-Mail); Wyonacms-Users (E-Mail)
# Betreff: FOP TrueType
# 
# Hello group,
# 
# I would like to do the following:
# http://www.infosys.tuwien.ac.at/Services/Docu/XML/Fop-0.20.1/d
# ocs/examples/advanced/cid-fonts.pdf
# 
# I want to add Arial to my reports I do that:
# java org.apache.fop.fonts.apps.TTFReader 
# c:\WINNT\Fonts\arial.ttf arial.xml
# 
# I have that:
# Exception in thread "main" java.lang.NoClassDefFoundError: 
# org/apache/fop/fonts/
# apps/TTFReader
# 
# I am the absolute newbie in java!
# 
# Thanks for the help!
# 
# > Mit freundlichem Gruss,
# > 
# > Thorsten Scherler
# > Marketing / Telefonmarketing
# > 
# > Weidmüller GmbH & Co.
# > P.O. Box 2807
# > 33058 Paderborn
# > Tel.:+ 49 - 5252-960-350
# > Fax:+ 49 - 5252-960-116
# > eMail: [EMAIL PROTECTED]
# > http://www.weidmueller.de
# > 
# > 
# 


AW: FOP TrueType

2002-11-15 Thread "Müller, Markus"
Hi,

you have to specify the class-libaries needed by fop. You can do this in
your commandline like this:

java -cp [path and name of jar-file] org.apache.fop.fonts.apps.TTFReader
c:\WINNT\Fonts\arial.ttf arial.xml

The JAR files you need I don't know exactly, but fop.jar will be one of
them. Take a look at fop.bat, from there you can copy the -cp  part.

Hope, this will help you

Markus

# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 15. November 2002 12:10
# An: Fop-User (E-Mail); Wyonacms-Users (E-Mail)
# Betreff: FOP TrueType
# 
# Hello group,
# 
# I would like to do the following:
# http://www.infosys.tuwien.ac.at/Services/Docu/XML/Fop-0.20.1/d
# ocs/examples/advanced/cid-fonts.pdf
# 
# I want to add Arial to my reports I do that:
# java org.apache.fop.fonts.apps.TTFReader 
# c:\WINNT\Fonts\arial.ttf arial.xml
# 
# I have that:
# Exception in thread "main" java.lang.NoClassDefFoundError: 
# org/apache/fop/fonts/
# apps/TTFReader
# 
# I am the absolute newbie in java!
# 
# Thanks for the help!
# 
# > Mit freundlichem Gruss,
# > 
# > Thorsten Scherler
# > Marketing / Telefonmarketing
# > 
# > Weidmüller GmbH & Co.
# > P.O. Box 2807
# > 33058 Paderborn
# > Tel.:+ 49 - 5252-960-350
# > Fax:+ 49 - 5252-960-116
# > eMail: [EMAIL PROTECTED]
# > http://www.weidmueller.de
# > 
# > 
# 


FOP TrueType

2002-11-15 Thread Scherler, Thorsten
Hello group,

I would like to do the following:
http://www.infosys.tuwien.ac.at/Services/Docu/XML/Fop-0.20.1/docs/examples/advanced/cid-fonts.pdf

I want to add Arial to my reports I do that:
java org.apache.fop.fonts.apps.TTFReader c:\WINNT\Fonts\arial.ttf arial.xml

I have that:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/fop/fonts/
apps/TTFReader

I am the absolute newbie in java!

Thanks for the help!

> Mit freundlichem Gruss,
> 
> Thorsten Scherler
> Marketing / Telefonmarketing
> 
> Weidmüller GmbH & Co.
> P.O. Box 2807
> 33058 Paderborn
> Tel.:+ 49 - 5252-960-350
> Fax:+ 49 - 5252-960-116
> eMail: [EMAIL PROTECTED]
> http://www.weidmueller.de
> 
> 


Re: Embed font results in FontFormatException ?

2002-11-15 Thread Jeremias Maerki
Probably. Or the font may have some special content we don't support,
yet. Have you tried to do the same things with some other Type 1 font.
How does it behave?

On Fri, 15 Nov 2002 11:33:20 +0100 Dennis Myrén wrote:
> Does this mean that the font files are corrupt or something?


Jeremias Maerki



Embed font results in FontFormatException ?

2002-11-15 Thread Dennis Myrén








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:



    

    

    embed-file="C:\Program
Files\Adobe\Adobe Type Manager\psfonts\SK021___.PFB">

  

        

    

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

 

Regards

Dennis








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

2002-11-15 Thread Jeremias Maerki
Not necessarily, I've done tests with TIFF (CCITT group 4 compression,
300dpi) and the files weren't bigger than the PDF. But this is obviously
only a solution if you have pure black and white documents (no color, no
grayscale).

On Fri, 15 Nov 2002 10:08:18 +0100 Müller, Markus wrote:
> Nice idea, but the size of a TIFF is much greater than the PDF. One reason
> for chosing PDF was the size. So PDF is our format.

Jeremias Maerki



External-Link Hotspot Offset Problem FOP 0.20.4

2002-11-15 Thread Andy Joslin
Hi All

I was wondering if there was a standard workaround for the problem of
the fo:basic-link hotspot displaying in the wrong position (approx 2-3cm
above where the link should be).

I'm using FOP 0.20.4, and have seen a bugfix relating to this, so does
anyone have experience of getting this issue resolved and working in FOP
0.20.4 ?


regards


Andy


This e-mail and its attachments are confidential. If you are not the intended 
recipient of this e-mail message, please telephone or e-mail us immediately, 
delete this message from your system and do not read, copy, distribute, 
disclose or otherwise use this e-mail message and any attachments. 

Although ri3k Limited believes this e-mail and any attachments to be free of 
any virus or other defect which may affect your computer, it is the 
responsibility of the recipient to ensure that it is virus free and ri3k 
Limited does not accept any responsibility for any loss or damage in any way 
from its use.

ri3k Limited
Registered in England: 10-12 Ely Place, London, EC1N 6RY
Company Number: 3909745


AW: Viewing PDF without AcrobatReader or FOP??

2002-11-15 Thread "Müller, Markus"
Nice idea, but the size of a TIFF is much greater than the PDF. One reason
for chosing PDF was the size. So PDF is our format.

# -Ursprüngliche Nachricht-
# Von: Jeremias Maerki [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 15. November 2002 10:05
# An: [EMAIL PROTECTED]
# Betreff: Re: Viewing PDF without AcrobatReader or FOP??
# 
# Hmm, what about converting the PDF to a TIFF (or similar) on 
# the server
# and sending that to the client? Can be accomplished with GhostScript,
# for example.
# 
# On Fri, 15 Nov 2002 09:55:04 +0100 Müller, Markus wrote:
# > Hi there,
# > 
# > 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, and using
# > FOP only to display a file isn't a solution, too (since 
# it's too large). Has
# > anybody a little hint?
# > 
# > Markus
# 
# 
# Jeremias Maerki
# 


Re: Viewing PDF without AcrobatReader or FOP??

2002-11-15 Thread Jeremias Maerki
Hmm, what about converting the PDF to a TIFF (or similar) on the server
and sending that to the client? Can be accomplished with GhostScript,
for example.

On Fri, 15 Nov 2002 09:55:04 +0100 Müller, Markus wrote:
> Hi there,
> 
> 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, and using
> FOP only to display a file isn't a solution, too (since it's too large). Has
> anybody a little hint?
> 
> Markus


Jeremias Maerki



Viewing PDF without AcrobatReader or FOP??

2002-11-15 Thread "Müller, Markus"
Hi there,

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, and using
FOP only to display a file isn't a solution, too (since it's too large). Has
anybody a little hint?

Markus


RE: Applet for PDF Viewing over the Net.

2002-11-15 Thread Philip Fennell
Balajee wrote:

> Before generating PDF I want my user to preview the look of the PDF file,
> Essentially I want to show him how the printed document or generated PDF will 
> look,
> I want to do this over the net, ie I want to provide a web interface and show 
> the document in an applet and if the client
> approves save it as PDF and also if required Print it.

By all means use your web front-end to access the document, and open a new 
'preview' browser window (which will launch Acrobat Reader) that will receive 
the PDF generated by FOP . If the user accepts the previewed document they can 
signal this by returning to the web front-end and issue a 
'save-document-as-pdf' request. There should be no need for embedding PDF 
within a web page. Of course if you mad keen on it looking like the pdf is in 
your web front-end then use frames.


Regards

Phil Fennell
Web Developer

empolis UK Ltd. 

-Original Message-
From: Balajee Chandrasekaran [mailto:[EMAIL PROTECTED]
Sent: 15 November 2002 06:26
To: [EMAIL PROTECTED]
Subject: Applet for PDF Viewing over the Net.


Hi All,
Before generating PDF I want my user to preview the look of the PDF file,
Essentially I want to show him how the printed document or generated PDF will 
look,
I want to do this over the net, ie I want to provide a web interface and show 
the document in an applet and if the client approves save it as PDF and also if 
required Print it.

Is there any resource already in FOP which will help me achieve this?
or else
If I have to do this on my own, I would also request for some direction on how 
to go about the same.

Thanks in advance.

regards
Balajee Chandrasekaran

Software Engineer
Majesco Software Inc.
Phone : 91-22-5695  Extn No 7911

Beleif
Everything is possible for him who believes.
Bible




MASTEK
Investing in relationships
In the US, we're called MAJESCO

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
~~


_
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

_
This message has been checked for all known viruses by the MessageLabs Virus 
Scanning Service.


Applet for PDF Viewing over the Net.

2002-11-15 Thread Balajee Chandrasekaran
Hi All,
Before generating PDF I want my user to preview the look of the PDF file,
Essentially I want to show him how the printed document or generated PDF will 
look,
I want to do this over the net, ie I want to provide a web interface and show 
the document in an applet and if the client approves save it as PDF and also if 
required Print it.

Is there any resource already in FOP which will help me achieve this?
or else
If I have to do this on my own, I would also request for some direction on how 
to go about the same.

Thanks in advance.

regards
Balajee Chandrasekaran

Software Engineer
Majesco Software Inc.
Phone : 91-22-5695  Extn No 7911

Beleif
Everything is possible for him who believes.
Bible




MASTEK
Investing in relationships
In the US, we're called MAJESCO

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
~~