Hi Pascal,
I don't understand why a simple fo file with texte fo:block
font-family="Helvetica" work fine in PDF-A (no license problem)
and an fo file with SVG image don't work.
Christian Pestel
christian.pes...@orange.fr
-----Message d'origine-----
From: Pascal Sancho
Sent: Wednesday, May 30, 2012 9:12 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image
Hi,
embedding fonts is required by the PDF/A-1b spec, even when you use some
of base 14 fonts.
Since there is license restriction with Helvetica (and other base 14)
font, it is not embedded by default. You have to get it by yourself (you
can purchase it on vendor's web site).
Or you can use another font that is free of charge, like dejaVu (see [1]).
[1] http://dejavu-fonts.org/wiki/Main_Page
Le 29/05/2012 18:48, Christian Pestel a écrit :
Hi Developpers,
I have this fop error with PDF/A and SVG image :
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts,
even the base 14 fonts, have to be embedded! Offending font: /Helvetica
no problem with an .JPG image
Here is my fo file :
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" >
<fo:layout-master-set>
<fo:simple-page-master master-name="Section_1-Iteration_1"
page-width="21cm" page-height="29.7cm" margin-top="0.5cm"
margin-bottom="1cm" margin-right="2.5cm" margin-left="2.5cm">
<fo:region-body margin-top="2cm" margin-bottom="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence initial-page-number="1"
master-reference="Section_1-Iteration_1">
<fo:flow flow-name="xsl-region-body">
<fo:block line-height="1.2">
<fo:inline font-family="Times" font-size="12pt">
<fo:external-graphic src="file:///C:Temp/Image1.SVG" height="0.52cm"
width="10.78cm" content-height="scale-to-fit"
content-width="scale-to-fit" scaling="non-uniform"></fo:external-graphic>
</fo:inline>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
I send you my files : .fo, userconfig.xml, image1.svg
Note that I add the font “any” in my userconfig.xml for a PDF/A
workarround for fonts used in the fo but that are not present in the
UserConfig
Christian Pestel
christian.pes...@orange.fr <mailto:cpes...@bdoc.com>
--
Pascal
---------------------------------------------------------------------
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