Image Size Calculations

2004-06-06 Thread Christian Hattemer
Hi,

I was able to work around the object-too-large bug by using a larger page
size. In the PDF the images have the wrong resolutions and look
ugly. (Read on, it's a slightly different question than usual)

The images are a bunch of line drawings and other illustrations from a
website I converted into DocBook.

The DocBook stylesheets include the images like this:


So the image dimensions are specified. But it seems the unit "px" isn't
enough to make the images look nice. Looking at the "Graphics Resolution"
section it seems that the dimensions should be specified in inches to
stop using the default 72 dpi.

This leads to the question: How can I find out the actual resolution of my
images and calculate the dimensions in inches? Do I have to modify the
generated fo afterwards to include the calculated dimensions?

Bye, Chris






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



Re: Please help me

2004-06-06 Thread Glen Mazza
Yes, take a look at these examples [1] , in particular the 
 elements near the top of three of the more 
complex examples.

[1] http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/fo/pagination/
Glen
[EMAIL PROTECTED] schrieb:
If you want more than One Page, you can use repeatable page master or 
conditional page master

Regards
Jerald S
-Original Message-
*From:* [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]
*Sent:* Friday, June 04, 2004 12:48 PM
*To:* [EMAIL PROTECTED]
*Subject:* Please help me

Hi everybody
When execute the command ‘fop infile –xml prac.xml –xsl prac.xsl –pdf 
prac.pdf ‘ I am getting the pdf file with single page only, though 
there are many data in the xml file.

Earlier it was working fine means I was getting 3 pages in the pdf 
file. But after me using  within the body of 
 I am getting only one page in 
the pdf file and I am using  tag

With Regards
Bhaskar
Confidentiality Notice
The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.
   


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


Re: Where to download high-quality fonts

2004-06-06 Thread Paul Tremblay
On Sun, Jun 06, 2004 at 02:44:39PM +1000, Peter B. West wrote:
> 
> Paul,
> 
> The files I am talking about come from the links on the AMS page - 
> http://www.ams.org/tex/type1-fonts.html
> 
> I have downloaded the unix and the pc font sets.  The unix set comes 
> with only pfb and afm files, in the pfb and afm directories 
> respectively.  The pc download contains afm and fonts directories.  The 
> afm directory contains afm files, and the fonts directory contains pfb 
> files and the pfmfiles directory.  In the latter directory are the pfm 
> files.
> 
> The afm files are text files, while the pfms are binary.  Try using the 
> pfm files from the pc distribution with PFMReader.
> 
> General questions to font gurus. Can we generate font metrics for FOP 
> directly from the AFM files?  Do AFM and PFM files contain equivalent 
> information?
> 

Thanks for the feedback. I get the same error working with these files
as I do when working with the * /pub/tex/psfonts/cm fonts. I first
convert the fonts to pfm with a utilty called afm2pfm. I get a
segmentation error. I then convert the pfm file to an xml metrics file
using the java tool. I get no errors.

But when I use the font to produce a PDF file, I get a full page break
after each block of text.

It is unfortunate that the ghostscript and the commputer modern fonts
have something non-standard with them. They are nice fonts and the
creators went through a lot of effort to produce them. 

As I said before, I think we need more standardization with fonts. 
I believe a font could be expressed as an XML file, which could be
validated. This XML file could be used to then produce afm or pfb or
whatever type of fonts a particular application needs. As it stands
right now, fonts were not developed according to a standard, as xsl-fo
was. This results in the mess I have been struggling with the past few
days, and a lot of wasted effort on the part of developers and users.

It is a good question on whether AFM contain the same information as PFM
files. From what I've read, it seems that the AFM is the ascii
equivelent of the binary PFM.

Paul

-- 


*Paul Tremblay *
[EMAIL PROTECTED]


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



Re: Where to download high-quality fonts

2004-06-06 Thread Peter B. West
Paul Tremblay wrote:
On Sun, Jun 06, 2004 at 12:45:00AM +1000, Peter B. West wrote:
What did you download, and where did you get the pfm fonts?  I have just 
downloaded the unix distribution, and it includes only afm and pfb fonts.


http://sourceforge.net/projects/gs-fonts/
I am guessing that this site converted the fonts with the fonts2pfb
tool. I used this tool on my distribution and got the same type of
premature end of file result.
In short, I don't think I'm working with a good set of fonts.
Where did you download your distribution? My home distribution has pfa
instead of pfb.
Paul,
The files I am talking about come from the links on the AMS page - 
http://www.ams.org/tex/type1-fonts.html

I have downloaded the unix and the pc font sets.  The unix set comes 
with only pfb and afm files, in the pfb and afm directories 
respectively.  The pc download contains afm and fonts directories.  The 
afm directory contains afm files, and the fonts directory contains pfb 
files and the pfmfiles directory.  In the latter directory are the pfm 
files.

The afm files are text files, while the pfms are binary.  Try using the 
pfm files from the pc distribution with PFMReader.

General questions to font gurus. Can we generate font metrics for FOP 
directly from the AFM files?  Do AFM and PFM files contain equivalent 
information?

Peter
--
Peter B. West 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]