Re: AFP FOP Font Problem

2012-02-28 Thread Samuel Hunter

We are trying to setup a process to convert PDF documents to an AFP print
stream and provide the ability to inject TLEs as well.  Do we have to have
AFP fonts installed and how do we obtain AFP fonts for a Windows
envrionment?  We have used the sample programs that come with FOP and are
able to produce  output in oher formats, but not AFP.  We get a message
informing us that no AFP fonts are defined and  default fonts will be used. 
The AFP document is produced, but there is no content on any of the pages.  

We are new to AFP and are trying to determine the feasibilty of performing
the conversion ourselves or if we need to purchase additional tools.

Any help or direction would be greatly appreciated.

Sam


Gregoire Meier wrote:
 
 YESSS !
 (one week lost for that stupid mistake !)
 Thank you 1 times 
 
 Gregoire
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/AFP---FOP-Font-Problem-tp32413390p33406994.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: AFP FOP Font Problem

2012-02-28 Thread mehdi houshmand
Hi Sam,

For future notice, could you avoid adding a new problem to someone
else's thread? It just makes it confusing for those trying to help
you.

As for AFP fonts, you shouldn't need to install them, but you will
need to configure them as per the documentation
(http://xmlgraphics.apache.org/fop/trunk/configuration.html ).

If you configure FOP correctly, what you're asking for should work
fine. If you do have further difficulties, could you create a new
thread.

Thanks

Mehdi

On 28 February 2012 14:26, Samuel Hunter samuel.hun...@cgi.com wrote:

 We are trying to setup a process to convert PDF documents to an AFP print
 stream and provide the ability to inject TLEs as well.  Do we have to have
 AFP fonts installed and how do we obtain AFP fonts for a Windows
 envrionment?  We have used the sample programs that come with FOP and are
 able to produce  output in oher formats, but not AFP.  We get a message
 informing us that no AFP fonts are defined and  default fonts will be used.
 The AFP document is produced, but there is no content on any of the pages.

 We are new to AFP and are trying to determine the feasibilty of performing
 the conversion ourselves or if we need to purchase additional tools.

 Any help or direction would be greatly appreciated.

 Sam


 Gregoire Meier wrote:

 YESSS !
 (one week lost for that stupid mistake !)
 Thank you 1 times

 Gregoire


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




 --
 View this message in context: 
 http://old.nabble.com/AFP---FOP-Font-Problem-tp32413390p33406994.html
 Sent from the FOP - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: AFP FOP Font Problem

2011-09-07 Thread Peter Hancock
Hi Gregoire,

Which version of FOP are you using and have you checked the
documentation at http://xmlgraphics.apache.org/fop (e.g.
http://xmlgraphics.apache.org/fop/trunk/configuration.html for
configuring trunk)?

Without seeing your fop.xconf o in full I would guess that the
font-base is not set correctly, and thus the relative url ./fonts/ibm
does not resolve to what you want (this guess is based on how
frequently this happens).

If you have not already, hve a further read of the docs, tell us the
version of FOP and perhaps attach your fop.xconf.

Peter


On Tue, Sep 6, 2011 at 8:51 PM, Gregoire Meier me...@epicard.ch wrote:
 FopFactory fopFactory = FopFactory.newInstance();
 FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
 fopFactory.setUserConfig(new File(./conf/fop.xconf));
 out = new FileOutputStream(afp);
 out = new BufferedOutputStream(out);
 Fop fop = fopFactory.newFop(MimeConstants.MIME_AFP, foUserAgent, out);


 --- 6 sept. 2011 17:43:39 org.apache.fop.render.afp.AFPRenderer setupFontInfo
 ATTENTION: No AFP fonts configured - using default setup




 Hi all,

 I have some problems with FOP  AFP.
 I would like to setup fonts for an AFP output.

 The Java code is :

 FopFactory fopFactory = FopFactory.newInstance();
 FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
 fopFactory.setUserConfig(new File(./conf/fop.xconf));
 out = new FileOutputStream(afp);
 out = new BufferedOutputStream(out);
 Fop fop = fopFactory.newFop(MimeConstants.MIME_AFP, foUserAgent, out);

 and it always responds :
 org.apache.fop.render.afp.AFPRenderer setupFontInfo
 ATTENTION: No AFP fonts configured - using default setup


 but into fop.xconf I have
 ...
 renderer mime=application/x-afp
  afp-font type=raster codepage=T1EX encoding=Cp1146 path=./fonts/
 ibm
  afp-raster-font size=5 characterset=C0ZA05K0/
   ...
  /afp-font
  font-triplet name=Arial style=normal weight=normal/
 ...


 Any idea is welcome

 Thanks
 Greg


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: AFP FOP Font Problem

2011-09-07 Thread Gregoire Meier
Hi Peter,

Thank you for your answer.
I have tried with FOP version 0.95 (but same result with 1.0)
I would like to use the 0.95 version (if possible)

About the ./font/ibm directory, I already have tried several form (also the 
full path) without success. I seems that it does not read the font part of 
the configuration file (but I am sure that it open the right configuration 
file, because I have tried to add some xml error within this file, and the 
parser detect it)

My fop.xconf look like this :

?xml version=1.0?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
!-- $Id: fop.xconf 447325 2006-09-18 08:55:33Z jeremias $ --

!--

This is an example configuration file for FOP.
This file contains the same settings as the default values
and will have no effect if used unchanged.

Relative config url's will be resolved relative to
the location of this file.

--

!-- NOTE: This is the version of the configuration --
fop version=1.0

  !-- Base URL for resolving relative URLs --
  base./base
  
  !-- Source resolution in dpi (dots/pixels per inch) for determining the size 
of pixels in SVG and bitmap images, default: 72dpi --
  source-resolution72/source-resolution
  !-- Target resolution in dpi (dots/pixels per inch) for specifying the 
target resolution for generated bitmaps, default: 72dpi --
  target-resolution72/target-resolution
  
  !-- Default page-height and page-width, in case
   value is specified as auto --
  default-page-settings height=11in width=8.26in/
  
  !-- Information for specific renderers --
  !-- Uses renderer mime type for renderers --
  renderers
  

renderer mime=application/x-afp
  !-- AFP Renderer --  

!-- This is an example of mapping actual IBM raster 
fonts / code pages to a FOP font --
font
!-- The afp-font element defines the IBM code page, 
the matching Java encoding and the
 path to the font --
  !-- For a raster font a separate 
element for each font size is required providing
   the font size and the corresponding 
IBM Character set name --
afp-font name=Arial type=raster 
codepage=T1EX encoding=Cp1146 path=./fonts/ibm

afp-raster-font size=5 
characterset=C0ZA05K0/
afp-raster-font size=7 
characterset=C0ZA00K0/
afp-raster-font size=7 
characterset=C0ZA05E0/
afp-raster-font size=9 
characterset=C0ZA00G0/
afp-raster-font size=10 
characterset=C0ZA0080/
afp-raster-font size=10 
characterset=C0ZA00I0/
afp-raster-font size=12 
characterset=C0ZA00M0/

/afp-font

!-- These are the usual FOP font triplets as they 
apply to this font --

font-triplet name=Arial style=normal 
weight=normal/


  /font
/renderer 


  /renderers

/fop



Thanks for your help,
Gregoire



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: AFP FOP Font Problem

2011-09-07 Thread Peter Hancock
Hi Gregoire,

The font element should be a child of the fonts element in your fop.xconf.

Try that and please let me know if you need more help.

Peter

On Wed, Sep 7, 2011 at 10:43 AM, Gregoire Meier me...@epicard.ch wrote:
 Hi Peter,

 Thank you for your answer.
 I have tried with FOP version 0.95 (but same result with 1.0)
 I would like to use the 0.95 version (if possible)

 About the ./font/ibm directory, I already have tried several form (also the
 full path) without success. I seems that it does not read the font part of
 the configuration file (but I am sure that it open the right configuration
 file, because I have tried to add some xml error within this file, and the
 parser detect it)

 My fop.xconf look like this :

 ?xml version=1.0?
 !--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
 --
 !-- $Id: fop.xconf 447325 2006-09-18 08:55:33Z jeremias $ --

 !--

 This is an example configuration file for FOP.
 This file contains the same settings as the default values
 and will have no effect if used unchanged.

 Relative config url's will be resolved relative to
 the location of this file.

 --

 !-- NOTE: This is the version of the configuration --
 fop version=1.0

  !-- Base URL for resolving relative URLs --
  base./base

  !-- Source resolution in dpi (dots/pixels per inch) for determining the size
 of pixels in SVG and bitmap images, default: 72dpi --
  source-resolution72/source-resolution
  !-- Target resolution in dpi (dots/pixels per inch) for specifying the
 target resolution for generated bitmaps, default: 72dpi --
  target-resolution72/target-resolution

  !-- Default page-height and page-width, in case
       value is specified as auto --
  default-page-settings height=11in width=8.26in/

  !-- Information for specific renderers --
  !-- Uses renderer mime type for renderers --
  renderers


        renderer mime=application/x-afp
          !-- AFP Renderer --

                        !-- This is an example of mapping actual IBM raster
 fonts / code pages to a FOP font --
                        font
                        !-- The afp-font element defines the IBM code page,
 the matching Java encoding and the
                                 path to the font --
                                          !-- For a raster font a separate
 element for each font size is required providing
                                           the font size and the corresponding
 IBM Character set name --
                                afp-font name=Arial type=raster
 codepage=T1EX encoding=Cp1146 path=./fonts/ibm

                                        afp-raster-font size=5
 characterset=C0ZA05K0/
                                        afp-raster-font size=7
 characterset=C0ZA00K0/
                                        afp-raster-font size=7
 characterset=C0ZA05E0/
                                        afp-raster-font size=9
 characterset=C0ZA00G0/
                                        afp-raster-font size=10
 characterset=C0ZA0080/
                                        afp-raster-font size=10
 characterset=C0ZA00I0/
                                        afp-raster-font size=12
 characterset=C0ZA00M0/

                                /afp-font

                        !-- These are the usual FOP font triplets as they
 apply to this font --

                        font-triplet name=Arial style=normal
 weight=normal/


                  /font
        /renderer


  /renderers

 /fop



 Thanks for your help,
 Gregoire



 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: AFP FOP Font Problem

2011-09-07 Thread Gregoire Meier
YESSS !
(one week lost for that stupid mistake !)
Thank you 1 times 

Gregoire


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



AFP FOP Font Problem

2011-09-06 Thread Gregoire Meier
FopFactory fopFactory = FopFactory.newInstance();
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();   
fopFactory.setUserConfig(new File(./conf/fop.xconf));
out = new FileOutputStream(afp);
out = new BufferedOutputStream(out);
Fop fop = fopFactory.newFop(MimeConstants.MIME_AFP, foUserAgent, out);


--- 6 sept. 2011 17:43:39 org.apache.fop.render.afp.AFPRenderer setupFontInfo
ATTENTION: No AFP fonts configured - using default setup




Hi all,

I have some problems with FOP  AFP.
I would like to setup fonts for an AFP output.

The Java code is :

FopFactory fopFactory = FopFactory.newInstance();
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();   
fopFactory.setUserConfig(new File(./conf/fop.xconf));
out = new FileOutputStream(afp);
out = new BufferedOutputStream(out);
Fop fop = fopFactory.newFop(MimeConstants.MIME_AFP, foUserAgent, out);

and it always responds :
org.apache.fop.render.afp.AFPRenderer setupFontInfo
ATTENTION: No AFP fonts configured - using default setup


but into fop.xconf I have 
...
renderer mime=application/x-afp
  afp-font type=raster codepage=T1EX encoding=Cp1146 path=./fonts/
ibm
  afp-raster-font size=5 characterset=C0ZA05K0/
   ...
 /afp-font
  font-triplet name=Arial style=normal weight=normal/
...


Any idea is welcome

Thanks
Greg


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org