Re: Offending font: /Helvetica with PDF/A and SVG image

2012-06-07 Thread Pascal Sancho

Hi,
If you explicitly substitute Helvetica with Arial in FOP config for PDF, 
you have to ensure that no references to Helvetica remains in final PDF.
IMHO, the best approach is to directly specify font-family with Arial 
in both XSL-FO and SVG, and set FOP font configuration in that approach.


Another option: You can check if remaining that font substitution will 
work if you change only your SVG to use explicitly Arial: I've not 
tested that.


Le 06/06/2012 18:02, Christian Pestel a écrit :

Hi Pascal,

In PDF mode, in a text in SVG image (SVG-text) use batik/AWT for rendering
and AWT use directly Windows fonts directory.
so, the fop.config seems ignored by batik.

Case 1 /
If in a SVG-text I use font-family Verdana or Georgia and that this
fonts exist in Windows fonts dir, pdf is well rendered with Verdana or
Geogia fonts embeded.

Case 2 /
If in a SVG-text I use font-family Tartanpion, and if this font don't
exist in Windows dir, batik substitute Tartanpion by Helvetica, pdf is
well rendered with Helvetica font.

Case 3 /
If in a SVG-text I use font-family Tartanpion, and if this font don't
exist in Windows dir, batik substitute Tartanpion by Helvetica, pdf is
not rendered because a Fop Error occurs :
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Helvetica
I have the font Helvetica in my fop.config but this seems ignored.
font metrics-url=file:C:/BdocSuiteV5/Fo2PdfService/fonts/ARIAL.xml
kerning=yes embed-url=C:/Windows/Fonts/Arial.ttf
 font-triplet name=Helvetica style=normal weight=normal/
/font

How Fop link with the substituted AWT font Helvetica ?

-Message d'origine-
From: Christian Pestel
Sent: Thursday, May 31, 2012 12:27 PM

Pascal,

Nevertheless, it's work in PDF/A mode !

With PDF/A renderer mode, and without any font in config.xml =  FOP fail
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Times-Roman

With PDF/A renderer mode, and with any font in config.xml =  FOP don't
fail

but this workarround don't seem to work with SVG font.

-Message d'origine-
From: Pascal Sancho
Sent: Thursday, May 31, 2012 12:03 PM

Christian,

any is not a font per se, it just indicates that default font is used
(FOP uses Helvetica, and PDF viewer replace it with Arial on Win system,
I don't know about Batik default font).

PDF/A-1b requires to embed *all* used fonts, so you must specify all of
them in FOP config file.
You can give whatever font name you want, but you have to ensure that it
is the same in both system fonts (since used by batik) and in config file.

Le 31/05/2012 11:29, Christian Pestel a écrit :

Hi Pascal,

Effectively, I forgot to change Verdana-Bold to Verdana in
Image1_Verdana.SVG.
Now it's work.
Thank you for your help.

However, my question is how to configure Fop PDF/A config.xml for SVG
image
whose svg font is not present in Fop config.xml (?

1/ Simple fo without SVG image

For simple fo:inline which use for example font-family=BlueHighway and
no
font BlueHighway in config.xml,

With PDF renderer mode, FOP warn only but not fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with
any,normal,400.

With PDF/A renderer mode, FOP fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with
any,normal,400.
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Times-Roman

A workarround of PDF/A fail consist to add the font any in config.xml

!-- any font --
  font metrics-url=file:D:/Fonts_110/PDF/TIMES.xml kerning=no
embed-url=C:/Windows/Fonts/TIMES.ttf
  font-triplet name=any style=normal weight=normal/
  /font
  font metrics-url=file:D:/Fonts_110/PDF/TIMESBD.xml
kerning=no
embed-url=C:/Windows/Fonts/TIMESBD.ttf
  font-triplet name=any style=normal weight=bold/
  /font
  font metrics-url=file:D:/Fonts_110/PDF/TIMESI.xml kerning=no
embed-url=C:/Windows/Fonts/TIMESI.ttf
  font-triplet name=any style=italic weight=normal/
  /font
  font metrics-url=file:D:/Fonts_110/PDF/TIMESBI.xml
kerning=no
embed-url=C:/Windows/Fonts/TIMESBI.ttf
  font-triplet name=any style=italic weight=bold/
  /font

2/ fo with SVG image
With PDF/A renderer mode, FOP fail, when the svg font is not present in
config.xml ( BlueHighway for example )
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Helvetica

and the any font seems not to be used in this context.

Is there a solution ?
Thank.

-Message d'origine-
From: Pascal Sancho
Sent: Thursday, May 31, 2012 9:39 AM

Hi Christian,

in your svg [Image1_Verdana.SVG], I read:
font-family='Verdana-Bold'
witch is not a regular font-name.

You should use the 

Re: Offending font: /Helvetica with PDF/A and SVG image

2012-06-07 Thread Christian Pestel

Hi Pascal,

You say the best approach is to directly specify font-family with Arial
in both XSL-FO and SVG, and set FOP font configuration in that approach

My purpose is : I would like to not have fop error in PDF-A if I use a 
font-family (like font Tartanpion) in SVG-text that don't exist in Windows 
fonts.

I have forgotten to say that in the case 3, I use PDF-A renderer; I'm sorry.
Case 2 and case 3 have same fo file and same fop.config.
Case 2 use PDF renderer with sucess result
Case 3 use PDF-A renderer with failed result
My opinion is that there is no link between batik substitution and fop 
substitution.

Could you please try my sample in PDF-A ?

Christian Pestel

christian.pes...@orange.fr


-Message d'origine- 
From: Pascal Sancho

Sent: Thursday, June 07, 2012 9:28 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image

Hi,
If you explicitly substitute Helvetica with Arial in FOP config for PDF,
you have to ensure that no references to Helvetica remains in final PDF.
IMHO, the best approach is to directly specify font-family with Arial
in both XSL-FO and SVG, and set FOP font configuration in that approach.

Another option: You can check if remaining that font substitution will
work if you change only your SVG to use explicitly Arial: I've not
tested that.

Le 06/06/2012 18:02, Christian Pestel a écrit :

Hi Pascal,

In PDF mode, in a text in SVG image (SVG-text) use batik/AWT for rendering
and AWT use directly Windows fonts directory.
so, the fop.config seems ignored by batik.

Case 1 /
If in a SVG-text I use font-family Verdana or Georgia and that this
fonts exist in Windows fonts dir, pdf is well rendered with Verdana or
Geogia fonts embeded.

Case 2 /
If in a SVG-text I use font-family Tartanpion, and if this font don't
exist in Windows dir, batik substitute Tartanpion by Helvetica, pdf is
well rendered with Helvetica font.

Case 3 /
If in a SVG-text I use font-family Tartanpion, and if this font don't
exist in Windows dir, batik substitute Tartanpion by Helvetica, pdf is
not rendered because a Fop Error occurs :
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Helvetica
I have the font Helvetica in my fop.config but this seems ignored.
font metrics-url=file:C:/BdocSuiteV5/Fo2PdfService/fonts/ARIAL.xml
kerning=yes embed-url=C:/Windows/Fonts/Arial.ttf
 font-triplet name=Helvetica style=normal weight=normal/
/font

How Fop link with the substituted AWT font Helvetica ?

-Message d'origine-
From: Christian Pestel
Sent: Thursday, May 31, 2012 12:27 PM

Pascal,

Nevertheless, it's work in PDF/A mode !

With PDF/A renderer mode, and without any font in config.xml =  FOP 
fail

org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Times-Roman

With PDF/A renderer mode, and with any font in config.xml =  FOP don't
fail

but this workarround don't seem to work with SVG font.

-Message d'origine-
From: Pascal Sancho
Sent: Thursday, May 31, 2012 12:03 PM

Christian,

any is not a font per se, it just indicates that default font is used
(FOP uses Helvetica, and PDF viewer replace it with Arial on Win system,
I don't know about Batik default font).

PDF/A-1b requires to embed *all* used fonts, so you must specify all of
them in FOP config file.
You can give whatever font name you want, but you have to ensure that it
is the same in both system fonts (since used by batik) and in config file.

Le 31/05/2012 11:29, Christian Pestel a écrit :

Hi Pascal,

Effectively, I forgot to change Verdana-Bold to Verdana in
Image1_Verdana.SVG.
Now it's work.
Thank you for your help.

However, my question is how to configure Fop PDF/A config.xml for SVG
image
whose svg font is not present in Fop config.xml (?

1/ Simple fo without SVG image

For simple fo:inline which use for example font-family=BlueHighway and
no
font BlueHighway in config.xml,

With PDF renderer mode, FOP warn only but not fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with
any,normal,400.

With PDF/A renderer mode, FOP fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with
any,normal,400.
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Times-Roman

A workarround of PDF/A fail consist to add the font any in config.xml

!-- any font --
  font metrics-url=file:D:/Fonts_110/PDF/TIMES.xml 
kerning=no

embed-url=C:/Windows/Fonts/TIMES.ttf
  font-triplet name=any style=normal 
weight=normal/

  /font
  font metrics-url=file:D:/Fonts_110/PDF/TIMESBD.xml
kerning=no
embed-url=C:/Windows/Fonts/TIMESBD.ttf
  font-triplet name=any style=normal weight=bold/
  /font
  font metrics-url=file:D:/Fonts_110/PDF/TIMESI.xml 
kerning=no

embed

Re: Offending font: /Helvetica with PDF/A and SVG image

2012-06-07 Thread Pascal Sancho

Christian,

Le 07/06/2012 15:16, Christian Pestel a écrit :

Hi Pascal,

You say the best approach is to directly specify font-family with Arial
in both XSL-FO and SVG, and set FOP font configuration in that approach

My purpose is : I would like to not have fop error in PDF-A if I use a
font-family (like font Tartanpion) in SVG-text that don't exist in Windows
fonts.

This is not possible:
 - PDF/A require to embed used fonts;
 - Batik uses system fonts to render text in SVG.

So, when you want to generate a PDF/A from data containing text in SVG, 
the only solution you have is to ensure that used fonts are available in 
both FOP config and host system fonts.


I see 2 alternatives if you don't want to install any font on your system:
 - vectorize text in SVG (some tools like AI have this feature);
 - remove all text from SVG and put it directly in a fo:block that 
comes over your SVG.



I have forgotten to say that in the case 3, I use PDF-A renderer; I'm sorry.
Case 2 and case 3 have same fo file and same fop.config.
Case 2 use PDF renderer with sucess result
Case 3 use PDF-A renderer with failed result
My opinion is that there is no link between batik substitution and fop
substitution.
Could you please try my sample in PDF-A ?

-Message d'origine-
From: Pascal Sancho
Sent: Thursday, June 07, 2012 9:28 AM

Hi,
If you explicitly substitute Helvetica with Arial in FOP config for PDF,
you have to ensure that no references to Helvetica remains in final PDF.
IMHO, the best approach is to directly specify font-family with Arial
in both XSL-FO and SVG, and set FOP font configuration in that approach.

Another option: You can check if remaining that font substitution will
work if you change only your SVG to use explicitly Arial: I've not
tested that.

Le 06/06/2012 18:02, Christian Pestel a écrit :

Hi Pascal,

In PDF mode, in a text in SVG image (SVG-text) use batik/AWT for rendering
and AWT use directly Windows fonts directory.
so, the fop.config seems ignored by batik.

Case 1 /
If in a SVG-text I use font-family Verdana or Georgia and that this
fonts exist in Windows fonts dir, pdf is well rendered with Verdana or
Geogia fonts embeded.

Case 2 /
If in a SVG-text I use font-family Tartanpion, and if this font don't
exist in Windows dir, batik substitute Tartanpion by Helvetica, pdf is
well rendered with Helvetica font.

Case 3 /
If in a SVG-text I use font-family Tartanpion, and if this font don't
exist in Windows dir, batik substitute Tartanpion by Helvetica, pdf is
not rendered because a Fop Error occurs :
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Helvetica
I have the font Helvetica in my fop.config but this seems ignored.
font metrics-url=file:C:/BdocSuiteV5/Fo2PdfService/fonts/ARIAL.xml
kerning=yes embed-url=C:/Windows/Fonts/Arial.ttf
  font-triplet name=Helvetica style=normal weight=normal/
/font

How Fop link with the substituted AWT font Helvetica ?

-Message d'origine-
From: Christian Pestel
Sent: Thursday, May 31, 2012 12:27 PM

Pascal,

Nevertheless, it's work in PDF/A mode !

With PDF/A renderer mode, and without any font in config.xml =   FOP
fail
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Times-Roman

With PDF/A renderer mode, and with any font in config.xml =   FOP don't
fail

but this workarround don't seem to work with SVG font.

-Message d'origine-
From: Pascal Sancho
Sent: Thursday, May 31, 2012 12:03 PM

Christian,

any is not a font per se, it just indicates that default font is used
(FOP uses Helvetica, and PDF viewer replace it with Arial on Win system,
I don't know about Batik default font).

PDF/A-1b requires to embed *all* used fonts, so you must specify all of
them in FOP config file.
You can give whatever font name you want, but you have to ensure that it
is the same in both system fonts (since used by batik) and in config file.

Le 31/05/2012 11:29, Christian Pestel a écrit :

Hi Pascal,

Effectively, I forgot to change Verdana-Bold to Verdana in
Image1_Verdana.SVG.
Now it's work.
Thank you for your help.

However, my question is how to configure Fop PDF/A config.xml for SVG
image
whose svg font is not present in Fop config.xml (?

1/ Simple fo without SVG image

For simple fo:inline which use for example font-family=BlueHighway and
no
font BlueHighway in config.xml,

With PDF renderer mode, FOP warn only but not fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with
any,normal,400.

With PDF/A renderer mode, FOP fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with
any,normal,400.
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Times-Roman

A workarround of PDF/A fail consist to add the font any in config.xml

!-- any font --
   font 

Re: Offending font: /Helvetica with PDF/A and SVG image

2012-06-06 Thread Christian Pestel

Hi Pascal,

In PDF mode, in a text in SVG image (SVG-text) use batik/AWT for rendering 
and AWT use directly Windows fonts directory.

so, the fop.config seems ignored by batik.

Case 1 /
If in a SVG-text I use font-family Verdana or Georgia and that this 
fonts exist in Windows fonts dir, pdf is well rendered with Verdana or 
Geogia fonts embeded.


Case 2 /
If in a SVG-text I use font-family Tartanpion, and if this font don't 
exist in Windows dir, batik substitute Tartanpion by Helvetica, pdf is 
well rendered with Helvetica font.


Case 3 /
If in a SVG-text I use font-family Tartanpion, and if this font don't 
exist in Windows dir, batik substitute Tartanpion by Helvetica, pdf is 
not rendered because a Fop Error occurs :

org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Helvetica
I have the font Helvetica in my fop.config but this seems ignored.
font metrics-url=file:C:/BdocSuiteV5/Fo2PdfService/fonts/ARIAL.xml 
kerning=yes embed-url=C:/Windows/Fonts/Arial.ttf

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

How Fop link with the substituted AWT font Helvetica ?


Christian Pestel

christian.pes...@orange.fr


-Message d'origine- 
From: Christian Pestel

Sent: Thursday, May 31, 2012 12:27 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image

Pascal,

Nevertheless, it's work in PDF/A mode !

With PDF/A renderer mode, and without any font in config.xml = FOP fail
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Times-Roman

With PDF/A renderer mode, and with any font in config.xml = FOP don't
fail

but this workarround don't seem to work with SVG font.

Christian Pestel

christian.pes...@orange.fr


-Message d'origine- 
From: Pascal Sancho

Sent: Thursday, May 31, 2012 12:03 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image

Christian,

any is not a font per se, it just indicates that default font is used
(FOP uses Helvetica, and PDF viewer replace it with Arial on Win system,
I don't know about Batik default font).

PDF/A-1b requires to embed *all* used fonts, so you must specify all of
them in FOP config file.
You can give whatever font name you want, but you have to ensure that it
is the same in both system fonts (since used by batik) and in config file.

Le 31/05/2012 11:29, Christian Pestel a écrit :

Hi Pascal,

Effectively, I forgot to change Verdana-Bold to Verdana in
Image1_Verdana.SVG.
Now it's work.
Thank you for your help.

However, my question is how to configure Fop PDF/A config.xml for SVG 
image

whose svg font is not present in Fop config.xml (?

1/ Simple fo without SVG image

For simple fo:inline which use for example font-family=BlueHighway and 
no

font BlueHighway in config.xml,

With PDF renderer mode, FOP warn only but not fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with
any,normal,400.

With PDF/A renderer mode, FOP fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with
any,normal,400.
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Times-Roman

A workarround of PDF/A fail consist to add the font any in config.xml

!-- any font --
 font metrics-url=file:D:/Fonts_110/PDF/TIMES.xml kerning=no
embed-url=C:/Windows/Fonts/TIMES.ttf
 font-triplet name=any style=normal weight=normal/
 /font
 font metrics-url=file:D:/Fonts_110/PDF/TIMESBD.xml 
kerning=no

embed-url=C:/Windows/Fonts/TIMESBD.ttf
 font-triplet name=any style=normal weight=bold/
 /font
 font metrics-url=file:D:/Fonts_110/PDF/TIMESI.xml kerning=no
embed-url=C:/Windows/Fonts/TIMESI.ttf
 font-triplet name=any style=italic weight=normal/
 /font
 font metrics-url=file:D:/Fonts_110/PDF/TIMESBI.xml 
kerning=no

embed-url=C:/Windows/Fonts/TIMESBI.ttf
 font-triplet name=any style=italic weight=bold/
 /font

2/ fo with SVG image
With PDF/A renderer mode, FOP fail, when the svg font is not present in
config.xml ( BlueHighway for example )
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Helvetica

and the any font seems not to be used in this context.

Is there a solution ?
Thank.


Christian Pestel

christian.pes...@orange.fr


-Message d'origine-
From: Pascal Sancho
Sent: Thursday, May 31, 2012 9:39 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image

Hi Christian,

in your svg [Image1_Verdana.SVG], I read:
   font-family='Verdana-Bold'
witch is not a regular font-name.

You should use the font-weight property:
   font-family='Verdana

Re: Offending font: /Helvetica with PDF/A and SVG image

2012-05-31 Thread Pascal Sancho

Hi Christian,

in your svg [Image1_Verdana.SVG], I read:
 font-family='Verdana-Bold'
witch is not a regular font-name.

You should use the font-weight property:
 font-family='Verdana' font-weight=bold

that gives for me expected result.

Note that since Verdena-bold is not found, FOP uses the default font (ie 
Helvetica), that explains why you get a PDF with Helvetica (not embedded).


Le 31/05/2012 00:42, Christian Pestel a écrit :

Hi Pascal,

Thank for your explanation, but I don't understand.
For explain my problem, I send you some couple of fo/pdfA examples with pdf
content not zipped.
I use Fop trunk May 07 2012

1/ The following example work fine :
MODELE_TEXTE_Verdana.fo110a.xml
 fo:flow flow-name=xsl-region-body
   fo:block line-height=1.2
 fo:inline font-family=Verdana
font-size=12ptHELLO/fo:inline/fo:block
 /fo:flow

Pdf is ok : the font Verdana is  embeded in pdf/A

2/ The following example work also fine :
MODELE_IMAGES_SVG_Times.fo110a.xml
fo:flow flow-name=xsl-region-body
   fo:block line-height=1.2
 fo:inline
   fo:external-graphic
src=file:///C:/ExternalImagesV5/Image1_Times.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

Pdf is ok : the font TimesNewRoman is referenced in pdf/A

Here partial extract content of Image1_Times.SVG
text transform=matrix(1 0 0 1 31.8848 18.5073) fill=#FF
font-family='Times' font-size=14VOTRE BILAN ASSURANCES/text

3/ The following example don't work  :
MODELE_IMAGES_SVG_Verdana.fo110a.xml
fo:flow flow-name=xsl-region-body
   fo:block line-height=1.2
 fo:inline
   fo:external-graphic
src=file:///C:/ExternalImagesV5/Image1_Verdana.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

Here partial extract content of Image1_Verdana.SVG
text transform=matrix(1 0 0 1 31.8848 18.5073) fill=#FF
font-family='Verdana' font-size=14VOTRE BILAN ASSURANCES/text

Pdf is ko : the font Helvetiva is referenced in pdf/A instead of Verdana.
Why ?
May be some pb with  Batik ?


Christian Pestel

christian.pes...@orange.fr


-Message d'origine-
From: Pascal Sancho
Sent: Wednesday, May 30, 2012 5:13 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image

Hi,

2 other topics rise here:

1/ Only metrics for base 14 fonts are provided by FOP.
fonts files are not embedded.
used font files depends on what is installed on the system of PDF reader:
When Helvetica is set, usually, Arial is used on Win systems, Helvetica
on Mac.
For those both fonts, metrics are equivalent, not glyphes shapes.
This explains why you don't need to embed font files for regular PDF
when you use base 14 fonts.

2/ For SVG, fonts must be available for both FOP (via config file), and
Batik (witch picks system font data via the java AWT package.

Le 30/05/2012 15:12, Christian Pestel a écrit :

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

Re: Offending font: /Helvetica with PDF/A and SVG image

2012-05-31 Thread Christian Pestel

Hi Pascal,

Effectively, I forgot to change Verdana-Bold to Verdana in 
Image1_Verdana.SVG.

Now it's work.
Thank you for your help.

However, my question is how to configure Fop PDF/A config.xml for SVG image 
whose svg font is not present in Fop config.xml (?


1/ Simple fo without SVG image

For simple fo:inline which use for example font-family=BlueHighway and no 
font BlueHighway in config.xml,


With PDF renderer mode, FOP warn only but not fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with 
any,normal,400.


With PDF/A renderer mode, FOP fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with 
any,normal,400.
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even 
the base 14 fonts, have to be embedded! Offending font: /Times-Roman


A workarround of PDF/A fail consist to add the font any in config.xml

!-- any font --
   font metrics-url=file:D:/Fonts_110/PDF/TIMES.xml kerning=no 
embed-url=C:/Windows/Fonts/TIMES.ttf

   font-triplet name=any style=normal weight=normal/
   /font
   font metrics-url=file:D:/Fonts_110/PDF/TIMESBD.xml kerning=no 
embed-url=C:/Windows/Fonts/TIMESBD.ttf

   font-triplet name=any style=normal weight=bold/
   /font
   font metrics-url=file:D:/Fonts_110/PDF/TIMESI.xml kerning=no 
embed-url=C:/Windows/Fonts/TIMESI.ttf

   font-triplet name=any style=italic weight=normal/
   /font
   font metrics-url=file:D:/Fonts_110/PDF/TIMESBI.xml kerning=no 
embed-url=C:/Windows/Fonts/TIMESBI.ttf

   font-triplet name=any style=italic weight=bold/
   /font

2/ fo with SVG image
With PDF/A renderer mode, FOP fail, when the svg font is not present in 
config.xml ( BlueHighway for example )
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even 
the base 14 fonts, have to be embedded! Offending font: /Helvetica


and the any font seems not to be used in this context.

Is there a solution ?
Thank.


Christian Pestel

christian.pes...@orange.fr


-Message d'origine- 
From: Pascal Sancho

Sent: Thursday, May 31, 2012 9:39 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image

Hi Christian,

in your svg [Image1_Verdana.SVG], I read:
 font-family='Verdana-Bold'
witch is not a regular font-name.

You should use the font-weight property:
 font-family='Verdana' font-weight=bold

that gives for me expected result.

Note that since Verdena-bold is not found, FOP uses the default font (ie
Helvetica), that explains why you get a PDF with Helvetica (not embedded).

Le 31/05/2012 00:42, Christian Pestel a écrit :

Hi Pascal,

Thank for your explanation, but I don't understand.
For explain my problem, I send you some couple of fo/pdfA examples with 
pdf

content not zipped.
I use Fop trunk May 07 2012

1/ The following example work fine :
MODELE_TEXTE_Verdana.fo110a.xml
 fo:flow flow-name=xsl-region-body
   fo:block line-height=1.2
 fo:inline font-family=Verdana
font-size=12ptHELLO/fo:inline/fo:block
 /fo:flow

Pdf is ok : the font Verdana is  embeded in pdf/A

2/ The following example work also fine :
MODELE_IMAGES_SVG_Times.fo110a.xml
fo:flow flow-name=xsl-region-body
   fo:block line-height=1.2
 fo:inline
   fo:external-graphic
src=file:///C:/ExternalImagesV5/Image1_Times.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

Pdf is ok : the font TimesNewRoman is referenced in pdf/A

Here partial extract content of Image1_Times.SVG
text transform=matrix(1 0 0 1 31.8848 18.5073) fill=#FF
font-family='Times' font-size=14VOTRE BILAN ASSURANCES/text

3/ The following example don't work  :
MODELE_IMAGES_SVG_Verdana.fo110a.xml
fo:flow flow-name=xsl-region-body
   fo:block line-height=1.2
 fo:inline
   fo:external-graphic
src=file:///C:/ExternalImagesV5/Image1_Verdana.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

Here partial extract content of Image1_Verdana.SVG
text transform=matrix(1 0 0 1 31.8848 18.5073) fill=#FF
font-family='Verdana' font-size=14VOTRE BILAN ASSURANCES/text

Pdf is ko : the font Helvetiva is referenced in pdf/A instead of Verdana.
Why ?
May be some pb with  Batik ?


Christian Pestel

christian.pes...@orange.fr


-Message d'origine-
From: Pascal Sancho
Sent: Wednesday, May 30, 2012 5:13 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image

Hi,

2 other topics rise here:

1/ Only metrics for base 14 fonts are provided by FOP.
fonts files are not embedded.
used font files depends on what is installed on the system of PDF reader:
When Helvetica is set, usually, Arial is used on Win systems, Helvetica
on Mac.
For those both fonts, metrics

Re: Offending font: /Helvetica with PDF/A and SVG image

2012-05-31 Thread Pascal Sancho

Christian,

any is not a font per se, it just indicates that default font is used 
(FOP uses Helvetica, and PDF viewer replace it with Arial on Win system, 
I don't know about Batik default font).


PDF/A-1b requires to embed *all* used fonts, so you must specify all of 
them in FOP config file.
You can give whatever font name you want, but you have to ensure that it 
is the same in both system fonts (since used by batik) and in config file.


Le 31/05/2012 11:29, Christian Pestel a écrit :

Hi Pascal,

Effectively, I forgot to change Verdana-Bold to Verdana in
Image1_Verdana.SVG.
Now it's work.
Thank you for your help.

However, my question is how to configure Fop PDF/A config.xml for SVG image
whose svg font is not present in Fop config.xml (?

1/ Simple fo without SVG image

For simple fo:inline which use for example font-family=BlueHighway and no
font BlueHighway in config.xml,

With PDF renderer mode, FOP warn only but not fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with
any,normal,400.

With PDF/A renderer mode, FOP fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with
any,normal,400.
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Times-Roman

A workarround of PDF/A fail consist to add the font any in config.xml

!-- any font --
 font metrics-url=file:D:/Fonts_110/PDF/TIMES.xml kerning=no
embed-url=C:/Windows/Fonts/TIMES.ttf
 font-triplet name=any style=normal weight=normal/
 /font
 font metrics-url=file:D:/Fonts_110/PDF/TIMESBD.xml kerning=no
embed-url=C:/Windows/Fonts/TIMESBD.ttf
 font-triplet name=any style=normal weight=bold/
 /font
 font metrics-url=file:D:/Fonts_110/PDF/TIMESI.xml kerning=no
embed-url=C:/Windows/Fonts/TIMESI.ttf
 font-triplet name=any style=italic weight=normal/
 /font
 font metrics-url=file:D:/Fonts_110/PDF/TIMESBI.xml kerning=no
embed-url=C:/Windows/Fonts/TIMESBI.ttf
 font-triplet name=any style=italic weight=bold/
 /font

2/ fo with SVG image
With PDF/A renderer mode, FOP fail, when the svg font is not present in
config.xml ( BlueHighway for example )
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Helvetica

and the any font seems not to be used in this context.

Is there a solution ?
Thank.


Christian Pestel

christian.pes...@orange.fr


-Message d'origine-
From: Pascal Sancho
Sent: Thursday, May 31, 2012 9:39 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image

Hi Christian,

in your svg [Image1_Verdana.SVG], I read:
   font-family='Verdana-Bold'
witch is not a regular font-name.

You should use the font-weight property:
   font-family='Verdana' font-weight=bold

that gives for me expected result.

Note that since Verdena-bold is not found, FOP uses the default font (ie
Helvetica), that explains why you get a PDF with Helvetica (not embedded).

Le 31/05/2012 00:42, Christian Pestel a écrit :

Hi Pascal,

Thank for your explanation, but I don't understand.
For explain my problem, I send you some couple of fo/pdfA examples with
pdf
content not zipped.
I use Fop trunk May 07 2012

1/ The following example work fine :
MODELE_TEXTE_Verdana.fo110a.xml
  fo:flow flow-name=xsl-region-body
fo:block line-height=1.2
  fo:inline font-family=Verdana
font-size=12ptHELLO/fo:inline/fo:block
  /fo:flow

Pdf is ok : the font Verdana is  embeded in pdf/A

2/ The following example work also fine :
MODELE_IMAGES_SVG_Times.fo110a.xml
fo:flow flow-name=xsl-region-body
fo:block line-height=1.2
  fo:inline
fo:external-graphic
src=file:///C:/ExternalImagesV5/Image1_Times.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

Pdf is ok : the font TimesNewRoman is referenced in pdf/A

Here partial extract content of Image1_Times.SVG
text transform=matrix(1 0 0 1 31.8848 18.5073) fill=#FF
font-family='Times' font-size=14VOTRE BILAN ASSURANCES/text

3/ The following example don't work  :
MODELE_IMAGES_SVG_Verdana.fo110a.xml
fo:flow flow-name=xsl-region-body
fo:block line-height=1.2
  fo:inline
fo:external-graphic
src=file:///C:/ExternalImagesV5/Image1_Verdana.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

Here partial extract content of Image1_Verdana.SVG
text transform=matrix(1 0 0 1 31.8848 18.5073) fill=#FF
font-family='Verdana' font-size=14VOTRE BILAN ASSURANCES/text

Pdf is ko : the font Helvetiva is referenced in pdf/A instead of Verdana.
Why ?
May be some pb with  Batik ?


Christian Pestel

christian.pes

Re: Offending font: /Helvetica with PDF/A and SVG image

2012-05-31 Thread Christian Pestel

Pascal,

Nevertheless, it's work in PDF/A mode !

With PDF/A renderer mode, and without any font in config.xml = FOP fail
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even 
the base 14 fonts, have to be embedded! Offending font: /Times-Roman


With PDF/A renderer mode, and with any font in config.xml = FOP don't 
fail


but this workarround don't seem to work with SVG font.

Christian Pestel

christian.pes...@orange.fr


-Message d'origine- 
From: Pascal Sancho

Sent: Thursday, May 31, 2012 12:03 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image

Christian,

any is not a font per se, it just indicates that default font is used
(FOP uses Helvetica, and PDF viewer replace it with Arial on Win system,
I don't know about Batik default font).

PDF/A-1b requires to embed *all* used fonts, so you must specify all of
them in FOP config file.
You can give whatever font name you want, but you have to ensure that it
is the same in both system fonts (since used by batik) and in config file.

Le 31/05/2012 11:29, Christian Pestel a écrit :

Hi Pascal,

Effectively, I forgot to change Verdana-Bold to Verdana in
Image1_Verdana.SVG.
Now it's work.
Thank you for your help.

However, my question is how to configure Fop PDF/A config.xml for SVG 
image

whose svg font is not present in Fop config.xml (?

1/ Simple fo without SVG image

For simple fo:inline which use for example font-family=BlueHighway and 
no

font BlueHighway in config.xml,

With PDF renderer mode, FOP warn only but not fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with
any,normal,400.

With PDF/A renderer mode, FOP fail
ATTENTION: Font BlueHighway,normal,400 not found. Substituting with
any,normal,400.
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Times-Roman

A workarround of PDF/A fail consist to add the font any in config.xml

!-- any font --
 font metrics-url=file:D:/Fonts_110/PDF/TIMES.xml kerning=no
embed-url=C:/Windows/Fonts/TIMES.ttf
 font-triplet name=any style=normal weight=normal/
 /font
 font metrics-url=file:D:/Fonts_110/PDF/TIMESBD.xml 
kerning=no

embed-url=C:/Windows/Fonts/TIMESBD.ttf
 font-triplet name=any style=normal weight=bold/
 /font
 font metrics-url=file:D:/Fonts_110/PDF/TIMESI.xml kerning=no
embed-url=C:/Windows/Fonts/TIMESI.ttf
 font-triplet name=any style=italic weight=normal/
 /font
 font metrics-url=file:D:/Fonts_110/PDF/TIMESBI.xml 
kerning=no

embed-url=C:/Windows/Fonts/TIMESBI.ttf
 font-triplet name=any style=italic weight=bold/
 /font

2/ fo with SVG image
With PDF/A renderer mode, FOP fail, when the svg font is not present in
config.xml ( BlueHighway for example )
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
the base 14 fonts, have to be embedded! Offending font: /Helvetica

and the any font seems not to be used in this context.

Is there a solution ?
Thank.


Christian Pestel

christian.pes...@orange.fr


-Message d'origine-
From: Pascal Sancho
Sent: Thursday, May 31, 2012 9:39 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image

Hi Christian,

in your svg [Image1_Verdana.SVG], I read:
   font-family='Verdana-Bold'
witch is not a regular font-name.

You should use the font-weight property:
   font-family='Verdana' font-weight=bold

that gives for me expected result.

Note that since Verdena-bold is not found, FOP uses the default font (ie
Helvetica), that explains why you get a PDF with Helvetica (not embedded).

Le 31/05/2012 00:42, Christian Pestel a écrit :

Hi Pascal,

Thank for your explanation, but I don't understand.
For explain my problem, I send you some couple of fo/pdfA examples with
pdf
content not zipped.
I use Fop trunk May 07 2012

1/ The following example work fine :
MODELE_TEXTE_Verdana.fo110a.xml
  fo:flow flow-name=xsl-region-body
fo:block line-height=1.2
  fo:inline font-family=Verdana
font-size=12ptHELLO/fo:inline/fo:block
  /fo:flow

Pdf is ok : the font Verdana is  embeded in pdf/A

2/ The following example work also fine :
MODELE_IMAGES_SVG_Times.fo110a.xml
fo:flow flow-name=xsl-region-body
fo:block line-height=1.2
  fo:inline
fo:external-graphic
src=file:///C:/ExternalImagesV5/Image1_Times.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

Pdf is ok : the font TimesNewRoman is referenced in pdf/A

Here partial extract content of Image1_Times.SVG
text transform=matrix(1 0 0 1 31.8848 18.5073) fill=#FF
font-family='Times' font-size=14VOTRE BILAN ASSURANCES/text

3/ The following example don't work

Re: Offending font: /Helvetica with PDF/A and SVG image

2012-05-30 Thread Pascal Sancho

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



Re: Offending font: /Helvetica with PDF/A and SVG image

2012-05-30 Thread Christian Pestel

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



Re: Offending font: /Helvetica with PDF/A and SVG image

2012-05-30 Thread Pascal Sancho

Hi,

2 other topics rise here:

1/ Only metrics for base 14 fonts are provided by FOP.
fonts files are not embedded.
used font files depends on what is installed on the system of PDF reader:
When Helvetica is set, usually, Arial is used on Win systems, Helvetica 
on Mac.

For those both fonts, metrics are equivalent, not glyphes shapes.
This explains why you don't need to embed font files for regular PDF 
when you use base 14 fonts.


2/ For SVG, fonts must be available for both FOP (via config file), and 
Batik (witch picks system font data via the java AWT package.


Le 30/05/2012 15:12, Christian Pestel a écrit :

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


--
Pascal

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