RE: Unicode Fonts!!!!

2006-09-18 Thread Karl Roberts



Hi, 
you can generate the metrics from the TTF file as per instructions 
at http://xmlgraphics.apache.org/fop/trunk/fonts.html ,
a decent unicode font that covers loads of the glyphs is "Arial 
Unicode MS" font found at C:\WINDOWS\Fonts on my PC.

See:- http://www.alanwood.net/unicode/fonts.html#arialunicodems for details of the Unicode tables it 
covers.
Even though you 
are on a Mac, you can still download the font TTF file from 
Microsoft
cheers
Karl


From: Paul Loy 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, 19 September 2006 
2:29 AMTo: fop-users@xmlgraphics.apache.orgSubject: Re: 
Unicode Fonts
yeah but that still doesn't give me the fonts I need. Where are the 
unicode PS fonts that I can use?Kai Mütz wrote: 
Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?

  
  -Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Paul Loy
Sent: Monday, September 18, 2006 5:35 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Unicode Fonts


Do I have to translate all the foreign characters into a character
reference?

Paul Loy wrote:

Hi All,

I've inherited a poorly written system. Part of it uses FOP to create
PDFs from an xslt. Now, we have international people on our site which
is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
instead of any polish characters. I think this is due to the font we
were using didn't have the unicode glyphs.

My question is, where are any unicode fonts for FOP. I just want an
Arial or Helvetica type font, nothing fancy! Then, how do I use this
font in my PDF? Here's a snippet of my xslt:


   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
Roman but I still don't get the characters to be in the final PDF!!!

Thanks for any help,

Paul.

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

  This email has been scanned by Postini.
For more information please visit http://www.postini.com

NOTICE

This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. 


RE: Png output and transparent background

2006-09-18 Thread Peter
Sorry for the late reply (was ooo).

But...it works great and this really helps a lot.

Thanks!

Peter

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: zondag 10 september 2006 18:45
To: fop-users@xmlgraphics.apache.org
Subject: Re: Png output and transparent background

As an RFE, entering this in bugzilla would have been a valid approach,
yes. But I've already done the necessary change in FOP Trunk:
http://svn.apache.org/viewvc?view=rev&rev=441965

It was easy enough. For you this means, you should add the config
setting below to your FOP configuration file:


  
  
true

  
  


Let me know if it works.

On 07.09.2006 21:55:35 Peter wrote:
> Gentlepeople,
>  
> I am considering entering this in bugzilla. 
>  
> Just to make sure: would that be "the correct" approach?
>  
> Thanks,
> 
>  
> 
> Peter
> 
>  
> 
>   _  
> 
> From: Peter [mailto:[EMAIL PROTECTED] 
> Sent: dinsdag 5 september 2006 14:58
> To: 'fop-users@xmlgraphics.apache.org'
> Subject: RE: Png output and transparent background
> 
>  
> 
> Hello,
> 
>  
> 
> I have the *impression* this is related to some code in
> org.apache.fop.render.java2d.Java2DRenderer#getPageImage, namely
> 
>  
> 
> // draw page frame
> 
> graphics.setColor(Color.white);
> 
> graphics.fillRect(0, 0, pageWidth, pageHeight);
> 
> graphics.setColor(Color.black);
> 
> graphics.drawRect(-1, -1, pageWidth + 2, pageHeight + 2);
> 
> graphics.drawLine(pageWidth + 2, 0, pageWidth + 2, pageHeight
+
> 2);
> 
> graphics.drawLine(pageWidth + 3, 1, pageWidth + 3, pageHeight
+
> 3);
> 
> graphics.drawLine(0, pageHeight + 2, pageWidth + 2, pageHeight
+
> 2);
> 
> graphics.drawLine(1, pageHeight + 3, pageWidth + 3, pageHeight
+
> 3);
> 
>  
> 
>  
> 
>  
> 
> Depending on the use case having a white page background and black frame
> might be fine. In my case it is not what I want.
> 
>  
> 
> Would this be considered a bug or a feature, and/or would it make sense to
> add some kind of option to either enable or disable this part of the code?
> 
>  
> 
> Thanks,
> 
>  
> 
> Peter
> 
>   _  
> 
> From: Peter [mailto:[EMAIL PROTECTED] 
> Sent: dinsdag 5 september 2006 11:54
> To: 'fop-users@xmlgraphics.apache.org'
> Subject: Png output and transparent background
> 
>  
> 
> FOP Fans,
> 
>  
> 
> I am (a beginning fop user) using fop with png output (tried both the
trunk
> and 0.92 beta) and was wondering whether there is a possibility to set the
> page background to transparent.
> 
>  
> 
> I tried background-color="transparent" but that does not seem to work.
> 
>  
> 
> Any guidance would be greatly appreciated,
> 
>  
> 
> Thanks,
> 
>  
> 
> Peter
> 
>  
> 
>  
> 



Jeremias Maerki


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


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



Re: Unicode Fonts!!!!

2006-09-18 Thread Luis Ferro

On my "unicode" wars... i've found one site of huge value: 

http://www.unicode.org/charts/charindex.html

This has ALL the unicode tables of ALL supported glyphs on ALL the standards
(specially important if you need just "that" glyph and you don't know it's
code).

I ended up consulting it regulary on my work.

Another page of some interest specially because of the use of Macs is: 

http://www.alanwood.net/demos/charsetdiffs.html

Which can enlight why some characters appear and some don't.

Cheers,
LF


Paul Loy wrote:
> 
> Oh, forgot to mention that I'm on a mac.
> 
> Thanks for the suggestions so far!
> 
> Paul.
> 
> 
> Kai Mütz wrote:
>> On windows systems you probably find Arial TTF files in windows fonts 
>> directory ("C:\Windows\Fonts" on my machine). You can use the 
>> TTFReader to create the metrics files as described at
>>  
>> http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics
>>
>> -Original Message-
>> *From:*
>> [EMAIL PROTECTED]
>>
>> [mailto:[EMAIL PROTECTED]
>> Behalf Of *Paul Loy
>> *Sent:* Monday, September 18, 2006 6:29 PM
>> *To:* fop-users@xmlgraphics.apache.org
>> *Subject:* Re: Unicode Fonts
>>
>> yeah but that still doesn't give me the fonts I need. Where are
>> the unicode PS fonts that I can use?
>>
>> Kai Mütz wrote:
>>> Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?
>>>
>>>   
 -Original Message-
 From: [EMAIL PROTECTED]

 [mailto:[EMAIL PROTECTED]
 Behalf Of Paul Loy
 Sent: Monday, September 18, 2006 5:35 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Unicode Fonts


 Do I have to translate all the foreign characters into a character
 reference?

 Paul Loy wrote:
 
> Hi All,
>
> I've inherited a poorly written system. Part of it uses FOP to
> create
> PDFs from an xslt. Now, we have international people on our site
> which
> is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get
> #
> instead of any polish characters. I think this is due to the font
> we
> were using didn't have the unicode glyphs.
>
> My question is, where are any unicode fonts for FOP. I just want
> an
> Arial or Helvetica type font, nothing fancy! Then, how do I use
> this
> font in my PDF? Here's a snippet of my xslt:
>
> 
> font-size="10pt" line-height="13pt" space-before.optimum="10pt"
> space-after.optimum="10pt">
>
>
>
>
> font-size="8pt">
>
>
> font-size="8pt">
>
>
> font-style="italic">
>
>
> text-decoration="underline">
>
>
> font-size="10pt" line-height="13pt" space-before.optimum="5pt"
> space-after.optimum="5pt" white-space-collapse="false">
>
>
>
>
> I've tried changing the VAGRounded bit to Arial, Helvetica, Times
> New
> Roman but I still don't get the characters to be in the final
> PDF!!!
>
> Thanks for any help,
>
> Paul.
>
>
> -
> 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]
>>>
>>>   
>>
>> This email has been scanned by Postini.
>> For more information please visit http://www.postini.com
>> 
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Font-names...-tf2287650.html#a6367811
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Unicode Fonts!!!!

2006-09-18 Thread Luis Ferro

On a mac you can check the acrobat reader directories to get some type1 font
that works... ;)

(i'm not sure where are the system fonts instaled on macs)

The principle is the same and anyway, FOP is system transparent (hope my
faith isn't displaced, so far it isn't)... if you create a metrics file i'm
sure it will work with any kind of fonts that it suports albeit the OS its
under...

LF


Paul Loy wrote:
> 
> Oh, forgot to mention that I'm on a mac.
> 
> Thanks for the suggestions so far!
> 
> Paul.
> 
> 
> Kai Mütz wrote:
>> On windows systems you probably find Arial TTF files in windows fonts 
>> directory ("C:\Windows\Fonts" on my machine). You can use the 
>> TTFReader to create the metrics files as described at
>>  
>> http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics
>>
>> -Original Message-
>> *From:*
>> [EMAIL PROTECTED]
>>
>> [mailto:[EMAIL PROTECTED]
>> Behalf Of *Paul Loy
>> *Sent:* Monday, September 18, 2006 6:29 PM
>> *To:* fop-users@xmlgraphics.apache.org
>> *Subject:* Re: Unicode Fonts
>>
>> yeah but that still doesn't give me the fonts I need. Where are
>> the unicode PS fonts that I can use?
>>
>> Kai Mütz wrote:
>>> Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?
>>>
>>>   
 -Original Message-
 From: [EMAIL PROTECTED]

 [mailto:[EMAIL PROTECTED]
 Behalf Of Paul Loy
 Sent: Monday, September 18, 2006 5:35 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Unicode Fonts


 Do I have to translate all the foreign characters into a character
 reference?

 Paul Loy wrote:
 
> Hi All,
>
> I've inherited a poorly written system. Part of it uses FOP to
> create
> PDFs from an xslt. Now, we have international people on our site
> which
> is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get
> #
> instead of any polish characters. I think this is due to the font
> we
> were using didn't have the unicode glyphs.
>
> My question is, where are any unicode fonts for FOP. I just want
> an
> Arial or Helvetica type font, nothing fancy! Then, how do I use
> this
> font in my PDF? Here's a snippet of my xslt:
>
> 
> font-size="10pt" line-height="13pt" space-before.optimum="10pt"
> space-after.optimum="10pt">
>
>
>
>
> font-size="8pt">
>
>
> font-size="8pt">
>
>
> font-style="italic">
>
>
> text-decoration="underline">
>
>
> font-size="10pt" line-height="13pt" space-before.optimum="5pt"
> space-after.optimum="5pt" white-space-collapse="false">
>
>
>
>
> I've tried changing the VAGRounded bit to Arial, Helvetica, Times
> New
> Roman but I still don't get the characters to be in the final
> PDF!!!
>
> Thanks for any help,
>
> Paul.
>
>
> -
> 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]
>>>
>>>   
>>
>> This email has been scanned by Postini.
>> For more information please visit http://www.postini.com
>> 
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Font-names...-tf2287650.html#a6367701
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Unicode Fonts!!!!

2006-09-18 Thread Paul Loy




Oh, forgot to mention that I'm on a mac.

Thanks for the suggestions so far!

Paul.


Kai Mütz wrote:

  
  
  On windows systems you probably find Arial TTF
files in windows fonts directory ("C:\Windows\Fonts" on my machine).
You can use the TTFReader to create the metrics files as described at
   
  http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics
  
-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Paul Loy
Sent: Monday, September 18, 2006 6:29 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Unicode Fonts


yeah but that still doesn't give me the fonts I need. Where are the
unicode PS fonts that I can use?

Kai Mütz wrote:

  Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?

  
  
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Paul Loy
Sent: Monday, September 18, 2006 5:35 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Unicode Fonts


Do I have to translate all the foreign characters into a character
reference?

Paul Loy wrote:


  Hi All,

I've inherited a poorly written system. Part of it uses FOP to create
PDFs from an xslt. Now, we have international people on our site which
is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
instead of any polish characters. I think this is due to the font we
were using didn't have the unicode glyphs.

My question is, where are any unicode fonts for FOP. I just want an
Arial or Helvetica type font, nothing fancy! Then, how do I use this
font in my PDF? Here's a snippet of my xslt:


   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
Roman but I still don't get the characters to be in the final PDF!!!

Thanks for any help,

Paul.

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

  


This email has been scanned by Postini.
For more information please visit http://www.postini.com

  






RE: Unicode Fonts!!!!

2006-09-18 Thread Kai Mütz



On 
windows systems you probably find Arial TTF files in windows fonts directory 
("C:\Windows\Fonts" on my machine). You can use the TTFReader to create the 
metrics files as described at
 
http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On 
  Behalf Of Paul LoySent: Monday, September 18, 2006 6:29 
  PMTo: fop-users@xmlgraphics.apache.orgSubject: Re: 
  Unicode Fontsyeah but that still doesn't give me the 
  fonts I need. Where are the unicode PS fonts that I can use?Kai Mütz 
  wrote: 
  Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?

  
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Paul Loy
Sent: Monday, September 18, 2006 5:35 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Unicode Fonts


Do I have to translate all the foreign characters into a character
reference?

Paul Loy wrote:

  Hi All,

I've inherited a poorly written system. Part of it uses FOP to create
PDFs from an xslt. Now, we have international people on our site which
is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
instead of any polish characters. I think this is due to the font we
were using didn't have the unicode glyphs.

My question is, where are any unicode fonts for FOP. I just want an
Arial or Helvetica type font, nothing fancy! Then, how do I use this
font in my PDF? Here's a snippet of my xslt:


   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
Roman but I still don't get the characters to be in the final PDF!!!

Thanks for any help,

Paul.

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

  This email has been scanned by Postini.
For more information please visit http://www.postini.com



Re: Unicode Fonts!!!!

2006-09-18 Thread Paul Loy




yeah but that still doesn't give me the fonts I need. Where are the
unicode PS fonts that I can use?

Kai Mütz wrote:

  Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?

  
  
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Paul Loy
Sent: Monday, September 18, 2006 5:35 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Unicode Fonts


Do I have to translate all the foreign characters into a character
reference?

Paul Loy wrote:


  Hi All,

I've inherited a poorly written system. Part of it uses FOP to create
PDFs from an xslt. Now, we have international people on our site which
is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
instead of any polish characters. I think this is due to the font we
were using didn't have the unicode glyphs.

My question is, where are any unicode fonts for FOP. I just want an
Arial or Helvetica type font, nothing fancy! Then, how do I use this
font in my PDF? Here's a snippet of my xslt:


   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
Roman but I still don't get the characters to be in the final PDF!!!

Thanks for any help,

Paul.

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

  





This email has been scanned by Postini.
For more information please visit http://www.postini.com


RE: Unicode Fonts!!!!

2006-09-18 Thread Kai Mütz
Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Paul Loy
> Sent: Monday, September 18, 2006 5:35 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Unicode Fonts
>
>
> Do I have to translate all the foreign characters into a character
> reference?
>
> Paul Loy wrote:
> > Hi All,
> >
> > I've inherited a poorly written system. Part of it uses FOP to create
> > PDFs from an xslt. Now, we have international people on our site which
> > is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
> > instead of any polish characters. I think this is due to the font we
> > were using didn't have the unicode glyphs.
> >
> > My question is, where are any unicode fonts for FOP. I just want an
> > Arial or Helvetica type font, nothing fancy! Then, how do I use this
> > font in my PDF? Here's a snippet of my xslt:
> >
> > 
> > > font-size="10pt" line-height="13pt" space-before.optimum="10pt"
> > space-after.optimum="10pt">
> >
> >
> >
> >
> > > font-size="8pt">
> >
> >
> > > font-size="8pt">
> >
> >
> >
> >
> >
> > > text-decoration="underline">
> >
> >
> > > font-size="10pt" line-height="13pt" space-before.optimum="5pt"
> > space-after.optimum="5pt" white-space-collapse="false">
> >
> >
> >
> >
> > I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
> > Roman but I still don't get the characters to be in the final PDF!!!
> >
> > Thanks for any help,
> >
> > Paul.
> >
> > -
> > 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]



Re: Unicode Fonts!!!!

2006-09-18 Thread Luis Ferro


Paul Loy wrote:
> 
> Do I have to translate all the foreign characters into a character 
> reference?
> 

Prolly not...

But i had to use "" as the xml
definition in the master page... or it would present everything wrong... (a
bit like it happened to you)...

Cheers,
Luis Ferro


-- 
View this message in context: 
http://www.nabble.com/Font-names...-tf2287650.html#a6366861
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Looking for advice on "positioning" of fo:instream-foreign-object and fo:external-graphic

2006-09-18 Thread Peter
Gentlepeople,

I am trying to get rid of line-leading (not sure this is the correct term
actually) when adding an instream-foreign-object or external-graphic to a
block

As an example


   
 

   
 
   

 

In the result (pdf using fop 0.92) the instream object (with a red
background) is not positioned at the top but rather at a position which
seems to (indirectly?) depend on the font-size.

One suggestion to eliminate this region is to set the line-height to 0 (see
http://www.renderx.net/lists/xep-support/2607.html)

That does however not seem to work with FOP. The area between the top of the
red box and the top of the page is gone, but the line is no longer
positioned correctly, but shifted vertically.

If I set font-size to 0 and do not explicitly set line-height it seems to
work with FOP.

So I guess I have two questions

1) What is the advised way to eliminate this "line-leading" area (the
approach above seems not very elegant)? 
2) Is the suggestion made on the XEP list wrong and/or is there a problem in
FOP and/or is this one of the implementation dependant areas of FO?

Any guidance, as always, extremely appreciated.

Thanks,

Peter


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



Re: Unicode Fonts!!!!

2006-09-18 Thread Paul Loy

And these are the characters I need displayed (see attached)

Paul Loy wrote:

Hi All,

I've inherited a poorly written system. Part of it uses FOP to create 
PDFs from an xslt. Now, we have international people on our site which 
is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get # 
instead of any polish characters. I think this is due to the font we 
were using didn't have the unicode glyphs.


My question is, where are any unicode fonts for FOP. I just want an 
Arial or Helvetica type font, nothing fancy! Then, how do I use this 
font in my PDF? Here's a snippet of my xslt:



   font-size="10pt" line-height="13pt" space-before.optimum="10pt" 
space-after.optimum="10pt">

   
   
   
   
   font-size="8pt">

   
   
   font-size="8pt">

   
   
   
   
   
   text-decoration="underline">

   
   
   font-size="10pt" line-height="13pt" space-before.optimum="5pt" 
space-after.optimum="5pt" white-space-collapse="false">

   
   
   

I've tried changing the VAGRounded bit to Arial, Helvetica, Times New 
Roman but I still don't get the characters to be in the final PDF!!!


Thanks for any help,

Paul.

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





plhtml.rtf
Description: RTF file
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Unicode Fonts!!!!

2006-09-18 Thread Paul Loy
Do I have to translate all the foreign characters into a character 
reference?


Paul Loy wrote:

Hi All,

I've inherited a poorly written system. Part of it uses FOP to create 
PDFs from an xslt. Now, we have international people on our site which 
is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get # 
instead of any polish characters. I think this is due to the font we 
were using didn't have the unicode glyphs.


My question is, where are any unicode fonts for FOP. I just want an 
Arial or Helvetica type font, nothing fancy! Then, how do I use this 
font in my PDF? Here's a snippet of my xslt:



   font-size="10pt" line-height="13pt" space-before.optimum="10pt" 
space-after.optimum="10pt">

   
   
   
   
   font-size="8pt">

   
   
   font-size="8pt">

   
   
   
   
   
   text-decoration="underline">

   
   
   font-size="10pt" line-height="13pt" space-before.optimum="5pt" 
space-after.optimum="5pt" white-space-collapse="false">

   
   
   

I've tried changing the VAGRounded bit to Arial, Helvetica, Times New 
Roman but I still don't get the characters to be in the final PDF!!!


Thanks for any help,

Paul.

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



Unicode Fonts!!!!

2006-09-18 Thread Paul Loy

Hi All,

I've inherited a poorly written system. Part of it uses FOP to create 
PDFs from an xslt. Now, we have international people on our site which 
is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get # 
instead of any polish characters. I think this is due to the font we 
were using didn't have the unicode glyphs.


My question is, where are any unicode fonts for FOP. I just want an 
Arial or Helvetica type font, nothing fancy! Then, how do I use this 
font in my PDF? Here's a snippet of my xslt:



   font-size="10pt" line-height="13pt" space-before.optimum="10pt" 
space-after.optimum="10pt">

   
   
   
   
   font-size="8pt">

   
   
   font-size="8pt">

   
   
   
   
   
   text-decoration="underline">

   
   
   font-size="10pt" line-height="13pt" space-before.optimum="5pt" 
space-after.optimum="5pt" white-space-collapse="false">

   
   
   

I've tried changing the VAGRounded bit to Arial, Helvetica, Times New 
Roman but I still don't get the characters to be in the final PDF!!!


Thanks for any help,

Paul.

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



Re: Font names...

2006-09-18 Thread Luis Ferro


Jeremias Maerki-2 wrote:
> 
> In that case we cannot use the original font
> name because we don't embed the full font.

2 questions then...

a) What happens if with a partial embed font it's used the same name as the
original font name?

b) What happens if with a full embed font (with use of -ansi when building
the metrics) it's used the same name as the original font name?

The questions have some significance, because the PDF file that resulted
from fop was edited with Acrobat pro 6 (which "unembeds" the font and allows
the edit to continue, showing a warning regarding this) and when it was
tryed to export to ps, acrobat just refused to work because the font's didnt
match (there was a diference between the names like "Arial,light" in the
PDF, when the true font name is "Arial-light").

This little diference had no side-effects on the PDF, but forfeited the use
of the PDF for anything. The PDF restarted to work well after we grabed a
font editor and changed in the internal properties of the font the "-" for a
",".

Mayhappen the reasons for changing the font names when working with
full/partial embed fonts aren't relevant anymore...

Would like to take the oportunity to suggest that a switch like "-fullembed"
(or something like that) be used instead of the "-ansi", as a
"clarification" of what the switch do.

Cheers,
LF

P.S.- get rid of the font metrics would just be perfect. Also perfect would
be to note in the config file how one wants the font to be placed on the pdf
(partial embed, full embed or reference only).

-- 
View this message in context: 
http://www.nabble.com/Font-names...-tf2287650.html#a6365457
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: xml to pdf converstion(generic xsl-fo)

2006-09-18 Thread Glen Mazza
I would recommend using XSLT to do the transformations that you need.  
Unfortunately you will need to learn XSLT first before you can use it.  
Check the Xalan website for more details.  The Mulberry XSLT mailing 
list (google) is best for specific questions you may have.


Glen

vijay wrote:

Hi 


This is urgent requirement for our project.we are in need of urgent solution
for the problem , i am explaning below:

1.i need solution for the conversion of xml to PDF using XSL-fo.Because we
are using fo concepts, it's specific to xsl-fo.

My system is generating xml file. The generated xml file needs to be
converted to PDF file.Example: 



  
   

   
   
   


  
   

   
   
   



I have to convert this xml file to pdf format. in pdf  c1,c2,c3,c4 values
should be  print in table  coloumns and rows 



so my output will be in table 



 c1  c2  c3  c4
 aa  bb  cc  dd
 zz  xx  vv  nn


The main problem is i have to write generic xsl-fo  that will converts any
xml into pdf 




kindly do reply asap .i would be greateful and obliged..

Thanks in advance
 




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



RE: xml to pdf (generic)

2006-09-18 Thread Rick Roen
Vijay,

This seems more like a question about XML -> XSLT conversion.

A better group for that would be [EMAIL PROTECTED]

Perhaps if you posted your XSLT and brief example of your XML we, or
xsl-lists could be of more help, or if I misunderstand a more complete
explanation of your problem since I don't understand specifically what it
is.

The general process is XML + XSLT -> XSL-FO -> PDF.  The XSL-FO -> PDF is
quite easy and described in detail on the FOP web site.

Rick

-Original Message-
From: vijay [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 18, 2006 7:11 AM
To: fop-users@xmlgraphics.apache.org
Subject: xml to pdf (generic)


Hi all.
This is a problem related to the conversion from XML to PDF.
I have a system generated dynamic XML(where the child nodes may vary
accordingly) that i need to convert to a PDF format file using xsl-fo. 
In the required PDF the node values in the system XML should appear in
proper row n column format.

for example if the XML contains 2 childs under the root node n  the child
nodes further contain 4 childs so the table will b of the size: 2*4( i.e. 2
rows n 4 cols)


thanks in advance


-- 
View this message in context:
http://www.nabble.com/xml-to-pdf-%28generic%29-tf2291175.html#a6363356
Sent from the FOP - Users mailing list archive at Nabble.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]



xml to pdf (generic)

2006-09-18 Thread vijay

Hi all.
This is a problem related to the conversion from XML to PDF.
I have a system generated dynamic XML(where the child nodes may vary
accordingly) that i need to convert to a PDF format file using xsl-fo. 
In the required PDF the node values in the system XML should appear in
proper row n column format.

for example if the XML contains 2 childs under the root node n  the child
nodes further contain 4 childs so the table will b of the size: 2*4( i.e. 2
rows n 4 cols)


thanks in advance


-- 
View this message in context: 
http://www.nabble.com/xml-to-pdf-%28generic%29-tf2291175.html#a6363356
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Using Adobe Asian Font Pack in FOP without embedding

2006-09-18 Thread Luis Ferro



Jeremias Maerki wrote:
> 
> 
> I've never come across this error message. It may have something to do
> with a bug in the PDF library in 0.20.5 which is fixed in FOP Trunk.
> 
> 

This error appears to me with embed fonts (ansi so all glyphs are embed) and
Acrobat Pro 7.

Cheers
LF

-- 
View this message in context: 
http://www.nabble.com/Using-Adobe-Asian-Font-Pack-in-FOP-without-embedding-tf266244.html#a6362129
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: keep-with-next causes last row of previous table to come along

2006-09-18 Thread paul
thanks chris, you were right. In the meantime I had sent the fo-file to
J.Maerki, and he recommended the same as you (acknowledging though that it is
some kind of exception that will be fixed).
cheers,and thanks everyone for the support&development




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



Re: keep-with-next causes last row of previous table to come along

2006-09-18 Thread Chris Bowditch

paul wrote:

ok, why first attempt doesn't work is clear now, it's not implemented yet

my workaround for the moment: Between Table A and Table B I insert an empty
Block. Now everything works as I'd like it to.

So maybe this is a BUG???


Doesnt sound like a bug to me. keep-with-next only tells the formatter 
to make sure the following object starts on the same page as the first 
object. (objects in your case is table-row) It does not prevent the 
formatter from breaking the objects themselves. So in theory, the 
formatter could start the second object but then before any actual 
content is placed, a break is allowed and the rest of the object occurs 
on the next page.


So when working with keep-with-* properties, keep-together should be set 
as well to give the results you expect.


In one of the earlier examples you gave, it looks like you could easily 
solve your problem just by adding keep-together="always" onto the second 
fo:table object. This would be much easier than specifying 
keep-with-next and keep-together on every row in the table.


Chris





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



Re: Font names...

2006-09-18 Thread Luis Ferro

One of the things that appeared from the properties of the document is the
"actual" font values.

The config i used is:

  


And i created the font metrics with the following class call (a short fused
version based on the fop.bat):

org.apache.fop.fonts.apps.TTFReader -enc ansi %FOP_CMD_LINE_ARGS%

With those parameters, i assume that the "full" font is embedded... as it is
looselly refered in the import font documentation of fop...

The actual font parameters aren't setup in the PDF. Mayhappen with the
addition of those "actual" font file, pointing the url file, the PDF could
be editable...

Just a tought...

Cheers,
LF





Jeremias Maerki-2 wrote:
> 
> I assume the problem comes from FOP's embedding only a subset of the
> TrueType font in the PDF. In that case we cannot use the original font
> name because we don't embed the full font. If you have to be able to
> edit the PDF you'd need to embed the full font in which case we could
> use the original name. FOP currently doesn't support that, though.
> 
> On 17.09.2006 22:51:41 Luis Ferro wrote:
>> 
>> The test is simple...
>> 
>> Prepare a font (tested with TTF fonts) for importing, one that has some
>> "attributes" like "light".
>> 
>> Make a document which uses that font and produce a PDF.
>> 
>> Edit the PDF with acrobat pro.
>> 
>> What will happen is that the name the font has isn't the same name as the
>> embed font.
>> 
>> The render will work ok, but the edit will mean a "warning" of font to
>> become "unembed". That isn't a problem, except that as the font name is
>> wrong (the font name listed in the pdf doesn't match the font name in the
>> TTF file, what will happen is that acrobat can't find it and allow the
>> "reembed" of it).
>> 
>> If needed will post files that exemplify this effect (i'm not sure if
>> this
>> is a FOP problem yet - will do more tests next week).
> 
> 
> 
> Jeremias Maerki
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Font-names...-tf2287650.html#a6361198
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Font names...

2006-09-18 Thread Jeremias Maerki
I assume the problem comes from FOP's embedding only a subset of the
TrueType font in the PDF. In that case we cannot use the original font
name because we don't embed the full font. If you have to be able to
edit the PDF you'd need to embed the full font in which case we could
use the original name. FOP currently doesn't support that, though.

On 17.09.2006 22:51:41 Luis Ferro wrote:
> 
> The test is simple...
> 
> Prepare a font (tested with TTF fonts) for importing, one that has some
> "attributes" like "light".
> 
> Make a document which uses that font and produce a PDF.
> 
> Edit the PDF with acrobat pro.
> 
> What will happen is that the name the font has isn't the same name as the
> embed font.
> 
> The render will work ok, but the edit will mean a "warning" of font to
> become "unembed". That isn't a problem, except that as the font name is
> wrong (the font name listed in the pdf doesn't match the font name in the
> TTF file, what will happen is that acrobat can't find it and allow the
> "reembed" of it).
> 
> If needed will post files that exemplify this effect (i'm not sure if this
> is a FOP problem yet - will do more tests next week).



Jeremias Maerki


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



Re: Font names...

2006-09-18 Thread Luis Ferro



Luis Ferro wrote:
> 
> The test is simple...
> 

Not that simple i'm afraid... i think i'm in a goose chase here regarding
font names... The font that is in use by FOP (thru the config options)
either gets a diferent name in windows or isn't recognized by it (even thru
it's a ttf font, albeit can be in a format that windows can't use).

So, naturally all tries to edit the document in Acrobat are doomed to fail.

Cheers,
LF

-- 
View this message in context: 
http://www.nabble.com/Font-names...-tf2287650.html#a6360276
Sent from the FOP - Users mailing list archive at Nabble.com.


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



xml to pdf converstion(generic xsl-fo)

2006-09-18 Thread vijay

Hi 

This is urgent requirement for our project.we are in need of urgent solution
for the problem , i am explaning below:

1.i need solution for the conversion of xml to PDF using XSL-fo.Because we
are using fo concepts, it's specific to xsl-fo.

My system is generating xml file. The generated xml file needs to be
converted to PDF file.Example: 


  






  







I have to convert this xml file to pdf format. in pdf  c1,c2,c3,c4 values
should be  print in table  coloumns and rows 


so my output will be in table 


  c1  c2  c3  c4
  aa  bb  cc  dd
  zz  xx  vv  nn


The main problem is i have to write generic xsl-fo  that will converts any
xml into pdf 

 

kindly do reply asap .i would be greateful and obliged..

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/xml-to-pdf-converstion%28generic-xsl-fo%29-tf2289524.html#a6358934
Sent from the FOP - Users forum at Nabble.com.


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