I tried to generate an AFP file following the documentation at
http://xmlgraphics.apache.org/fop/0.95/output.html#afp. I used the "FOP
built-in Base14" fonts and I wrote a configuration file (included in
attachment) using the xml snippet found in the docs.
The document seems correct when visualized with the BTB Browser and with the
AFP Workbench Viewer, but when I print it on an Océ PRISMA printer, I get the
following error and nothing is being printed.
15/10/09 16:12:28 C0000006E Characterset CZH200 not
found.(AFPLocalFontEnvironmentData::setCharacterset(const IString&):716)
Analyzing the file with AFP Datastream Analyzer I get the report below (I
reported only the part relative to fonts):
3: BEGIN ACTIVE ENVIRONMENT GROUP :AEG00001
4:MCF: Type 2
----------------Repeating Group----------------
Fully Qualified Name: Font Character Set Reference CZH200
(Hex) C3E9C8F2F0F04040
Fully Qualified Name: Font Code Page Reference T1V10500
(Hex) E3F1E5F1F0F5F0F0
Character Rotation 000
Resource Local Identifier: Coded Font ResLID: 01
Font Descriptor Specification: not specified not
specified vector transformed Ft
Height 220 FtWidth 0
Font Horizontal Scale Factor: 220
----------------Repeating Group----------------
Fully Qualified Name: Font Character Set Reference CZH200
(Hex) C3E9C8F2F0F04040
Fully Qualified Name: Font Code Page Reference T1V10500
(Hex) E3F1E5F1F0F5F0F0
Character Rotation 000
Resource Local Identifier: Coded Font ResLID: 02
Font Descriptor Specification: not specified not
specified vector transformed Ft
Height 160 FtWidth 0
Font Horizontal Scale Factor: 160
----------------Repeating Group----------------
Fully Qualified Name: Font Character Set Reference CZH200
(Hex) C3E9C8F2F0F04040
Fully Qualified Name: Font Code Page Reference T1V10500
(Hex) E3F1E5F1F0F5F0F0
Character Rotation 000
Resource Local Identifier: Coded Font ResLID: 03
Font Descriptor Specification: not specified not
specified vector transformed Ft
Height 180 FtWidth 0
Font Horizontal Scale Factor: 180
5:PGD: X Units 2400 Y Units 2400 X Size 1984 Y Size 2806 Page Size:
8.26 11.69
6:PTD: X,Y Unit Base 10 in X,Y Units/Base: 2400 2400 X,Y Text Block
Size: 1,984 2,806
7: END ACTIVE ENVIRONMENT GROUP :AEG00001 (Bytes: 264)
Analyzing a sample document included with the AFP Workbench Viewer program, I
obtain:
4: BEGIN ACTIVE ENVIRONMENT GROUP :1
5:MCF:FONT_ID CODED_FONT CODE_PAGE CHAR_SET ROTATION
3 T1GI0395 C1A05580
5 T1GI0395 C1A075F0
6 T1GI0395 C1A05580
6:PGD: X Units 2400 Y Units 2400 X Size 1323 Y Size 2040 Page Size:
5.51 8.50
7:CTC:(CONSTANT):00000000000000002D00
8:PTD: X,Y Unit Base 10 in X,Y Units/Base: 2400 2400 X,Y Text Block
Size: 1,323 2,040
9: END ACTIVE ENVIRONMENT GROUP :1 (Bytes: 194)
There's the message "Font Descriptor Specification: not specified" for the
document generated with FOP. Could it be the reason with it isn't printed?
I seems that the charset defined in the FOP configuration file isn't included
as a resource in the AFP file. Do I need declare something else in the xsl in
order to include also the proper font?
Thanks and regards,
Alessandro
<?xml version="1.0"?>
<fop version="1.0">
<source-resolution>72</source-resolution>
<target-resolution>72</target-resolution>
<default-page-settings height="11in" width="8.26in"/>
<renderers>
<renderer mime="application/pdf">
<fonts>
<font kerning="yes" embed-url="Times_New_Roman.ttf">
<font-triplet name="Times New Roman" style="normal" weight="normal"/>
</font>
</fonts>
</renderer>
<renderer mime="application/postscript">
</renderer>
<renderer mime="application/vnd.hp-PCL">
</renderer>
<renderer mime="image/svg+xml">
<format type="paginated"/>
<link value="true"/>
<strokeText value="false"/>
</renderer>
<renderer mime="application/awt">
</renderer>
<renderer mime="image/png">
</renderer>
<renderer mime="image/tiff">
</renderer>
<renderer mime="text/xml">
</renderer>
<renderer mime="text/plain">
<pageSize columns="80"/>
</renderer>
<renderer mime="application/x-afp">
<fonts>
<font>
<afp-font type="outline" codepage="T1V10500" encoding="Cp500" characterset="CZH200 " base14-font="Helvetica"/>
<font-triplet name="sans-serif" style="normal" weight="normal"/>
<font-triplet name="Helvetica" style="normal" weight="normal"/>
<font-triplet name="any" style="normal" weight="normal"/>
</font>
<font>
<afp-font type="outline" codepage="T1V10500" encoding="Cp500" characterset="CZH300 " base14-font="HelveticaOblique"/>
<font-triplet name="sans-serif" style="italic" weight="normal"/>
<font-triplet name="Helvetica" style="italic" weight="normal"/>
<font-triplet name="any" style="italic" weight="normal"/>
</font>
<font>
<afp-font type="outline" codepage="T1V10500" encoding="Cp500" characterset="CZH400 " base14-font="HelveticaBold"/>
<font-triplet name="sans-serif" style="normal" weight="bold"/>
<font-triplet name="Helvetica" style="normal" weight="bold"/>
<font-triplet name="any" style="normal" weight="bold"/>
</font>
<font>
<afp-font type="outline" codepage="T1V10500" encoding="Cp500" characterset="CZH500 " base14-font="HelveticaBoldOblique"/>
<font-triplet name="sans-serif" style="italic" weight="bold"/>
<font-triplet name="Helvetica" style="italic" weight="bold"/>
<font-triplet name="any" style="italic" weight="bold"/>
</font>
<!-- serif fonts based on Times Roman -->
<font>
<afp-font type="outline" codepage="T1V10500" encoding="Cp500" characterset="CZN200 " base14-font="TimesRoman"/>
<font-triplet name="serif" style="normal" weight="normal"/>
<font-triplet name="Times" style="normal" weight="normal"/>
<font-triplet name="Times-Roman" style="normal" weight="normal"/>
</font>
<!-- The following are examples of defining raster fonts based on FOP built-in
font metrics for the Adobe Base14 fonts -->
<!-- monospaced fonts based on Courier -->
<font>
<afp-font type="raster" codepage="T1V10500" encoding="Cp500">
<afp-raster-font size="7" characterset="C0420070" base14-font="Courier"/>
<afp-raster-font size="8" characterset="C0420080" base14-font="Courier"/>
<afp-raster-font size="10" characterset="C0420000" base14-font="Courier"/>
<afp-raster-font size="12" characterset="C04200B0" base14-font="Courier"/>
<afp-raster-font size="14" characterset="C04200D0" base14-font="Courier"/>
<afp-raster-font size="20" characterset="C04200J0" base14-font="Courier"/>
</afp-font>
<font-triplet name="monospace" style="normal" weight="normal"/>
<font-triplet name="Courier" style="normal" weight="normal"/>
</font>
<font>
<afp-font type="raster" codepage="T1V10500" encoding="Cp500">
<afp-raster-font size="7" characterset="C0440070" base14-font="CourierBold"/>
<afp-raster-font size="8" characterset="C0440080" base14-font="CourierBold"/>
<afp-raster-font size="10" characterset="C0440000" base14-font="CourierBold"/>
<afp-raster-font size="12" characterset="C04400B0" base14-font="CourierBold"/>
<afp-raster-font size="14" characterset="C04400D0" base14-font="CourierBold"/>
<afp-raster-font size="20" characterset="C04400J0" base14-font="CourierBold"/>
</afp-font>
<font-triplet name="monospace" style="normal" weight="bold"/>
<font-triplet name="Courier" style="normal" weight="bold"/>
</font>
</fonts>
</renderer>
</renderers>
</fop>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]