PDFA - Problem with embedding of fonts when fo document contains more than 1 page

View: New views
4 Messages — Rating Filter:   Alert me  

PDFA - Problem with embedding of fonts when fo document contains more than 1 page

by sivag_123 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I am trying to generate PDFA-1b document with FOP by feeding an xml and xsl file as input. When i run,  the document gets generated successfully in PDFA mode. But when the content of the xsl file exceeds one page(more than one apge sequence), the processor throws PDFConformanceException saying "For PDF/A-1b, all fonts, even the base 14 fonts, have to be embedded! Offending font: Times-Roman". I am also giving the console output below.


Oct 21, 2009 12:02:18 PM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-height set to: 29.7cm
Oct 21, 2009 12:02:18 PM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-width set to: 21cm
Oct 21, 2009 12:02:18 PM org.apache.fop.fonts.truetype.TTFFile determineAscDesc
WARNING: Ascender and descender together are larger than the em box. This could lead to a wrong baseline placement in Apache FOP.
Oct 21, 2009 12:02:18 PM org.apache.fop.layoutmgr.table.TableLayoutManager getNextKnuthElements
INFO: table-layout="fixed" and width="auto", but auto-layout not supported => assuming width="100%"
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even the base 14 fonts, have to be embedded! Offending font: Times-Roman


The strange thing is that this problem does not occur if my xsl page content is only in one page. If you guys have any ideas to share, it would be great.

Thanks and regards,
Sivashankar

Re: PDFA - Problem with embedding of fonts when fo document contains more than 1 page

by Jeremias Maerki-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Usually, this is caused by some whitespace somewhere in the document
that may not even produce any visible output. My recommendation is to
put a font-family property on fo:root to avoid any fallbacks to default
fonts which are not embedded but only referenced.

If this doesn't help, I'll need to see the FO file so I can try to
reproduce.

On 21.10.2009 09:41:26 sivag_123 wrote:

>
> Hi All,
>
> I am trying to generate PDFA-1b document with FOP by feeding an xml and xsl
> file as input. When i run,  the document gets generated successfully in PDFA
> mode. But when the content of the xsl file exceeds one page(more than one
> apge sequence), the processor throws PDFConformanceException saying "For
> PDF/A-1b, all fonts, even the base 14 fonts, have to be embedded! Offending
> font: Times-Roman". I am also giving the console output below.
>
>
> Oct 21, 2009 12:02:18 PM org.apache.fop.apps.FopFactoryConfigurator
> configure
> INFO: Default page-height set to: 29.7cm
> Oct 21, 2009 12:02:18 PM org.apache.fop.apps.FopFactoryConfigurator
> configure
> INFO: Default page-width set to: 21cm
> Oct 21, 2009 12:02:18 PM org.apache.fop.fonts.truetype.TTFFile
> determineAscDesc
> WARNING: Ascender and descender together are larger than the em box. This
> could lead to a wrong baseline placement in Apache FOP.
> Oct 21, 2009 12:02:18 PM org.apache.fop.layoutmgr.table.TableLayoutManager
> getNextKnuthElements
> INFO: table-layout="fixed" and width="auto", but auto-layout not supported
> => assuming width="100%"
> org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
> the base 14 fonts, have to be embedded! Offending font: Times-Roman
>
>
> The strange thing is that this problem does not occur if my xsl page content
> is only in one page. If you guys have any ideas to share, it would be great.
>
> Thanks and regards,
> Sivashankar
> --
> View this message in context: http://www.nabble.com/PDFA---Problem-with-embedding-of-fonts-when-fo-document-contains-more-than-1-page-tp25987879p25987879.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@...
For additional commands, e-mail: fop-users-help@...


Re: PDFA - Problem with embedding of fonts when fo document contains more than 1 page

by sivag_123 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jeremias,

I had already specified the font-family property in fo:root. But still the problem persists. I have attached the FO file herewith. Thanks for ur reply.

Thanks and regards,
Sivashankar



Jeremias Maerki-2 wrote:
Usually, this is caused by some whitespace somewhere in the document
that may not even produce any visible output. My recommendation is to
put a font-family property on fo:root to avoid any fallbacks to default
fonts which are not embedded but only referenced.

If this doesn't help, I'll need to see the FO file so I can try to
reproduce.

On 21.10.2009 09:41:26 sivag_123 wrote:
>
> Hi All,
>
> I am trying to generate PDFA-1b document with FOP by feeding an xml and xsl
> file as input. When i run,  the document gets generated successfully in PDFA
> mode. But when the content of the xsl file exceeds one page(more than one
> apge sequence), the processor throws PDFConformanceException saying "For
> PDF/A-1b, all fonts, even the base 14 fonts, have to be embedded! Offending
> font: Times-Roman". I am also giving the console output below.
>
>
> Oct 21, 2009 12:02:18 PM org.apache.fop.apps.FopFactoryConfigurator
> configure
> INFO: Default page-height set to: 29.7cm
> Oct 21, 2009 12:02:18 PM org.apache.fop.apps.FopFactoryConfigurator
> configure
> INFO: Default page-width set to: 21cm
> Oct 21, 2009 12:02:18 PM org.apache.fop.fonts.truetype.TTFFile
> determineAscDesc
> WARNING: Ascender and descender together are larger than the em box. This
> could lead to a wrong baseline placement in Apache FOP.
> Oct 21, 2009 12:02:18 PM org.apache.fop.layoutmgr.table.TableLayoutManager
> getNextKnuthElements
> INFO: table-layout="fixed" and width="auto", but auto-layout not supported
> => assuming width="100%"
> org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
> the base 14 fonts, have to be embedded! Offending font: Times-Roman
>
>
> The strange thing is that this problem does not occur if my xsl page content
> is only in one page. If you guys have any ideas to share, it would be great.
>
> Thanks and regards,
> Sivashankar
> --
> View this message in context: http://www.nabble.com/PDFA---Problem-with-embedding-of-fonts-when-fo-document-contains-more-than-1-page-tp25987879p25987879.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Sample.fo

Re: PDFA - Problem with embedding of fonts when fo document contains more than 1 page

by Jeremias Maerki-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Sivashankar,

thanks for the FO file. That helps. Two things:
1. There's a font-family="" in the file. That will cause problems.
2. Check the log output from FOP. If there is only one warning about a
font not being found (like: Font "Arial,normal,400" not found. Substituting with "any,normal,400".),
FOP will fall back to the "any" font which usually maps to one of the
built-in fonts which are not embedded and therefore cause the exception.
You can also add font triplets in the user configuration that maps "any"
to one of the embedded fonts.

At any rate, when I use only font families that are configured for
embedding I don't get an exception with your document (after removing
the font-family="").

HTH

On 22.10.2009 11:39:49 sivag_123 wrote:

>
> Hi Jeremias,
>
> I had already specified the font-family property in fo:root. But still the
> problem persists. I have attached the FO file herewith. Thanks for ur reply.
>
> Thanks and regards,
> Sivashankar
>
>
>
>
> Jeremias Maerki-2 wrote:
> >
> > Usually, this is caused by some whitespace somewhere in the document
> > that may not even produce any visible output. My recommendation is to
> > put a font-family property on fo:root to avoid any fallbacks to default
> > fonts which are not embedded but only referenced.
> >
> > If this doesn't help, I'll need to see the FO file so I can try to
> > reproduce.
> >
> > On 21.10.2009 09:41:26 sivag_123 wrote:
> >>
> >> Hi All,
> >>
> >> I am trying to generate PDFA-1b document with FOP by feeding an xml and
> >> xsl
> >> file as input. When i run,  the document gets generated successfully in
> >> PDFA
> >> mode. But when the content of the xsl file exceeds one page(more than one
> >> apge sequence), the processor throws PDFConformanceException saying "For
> >> PDF/A-1b, all fonts, even the base 14 fonts, have to be embedded!
> >> Offending
> >> font: Times-Roman". I am also giving the console output below.
> >>
> >>
> >> Oct 21, 2009 12:02:18 PM org.apache.fop.apps.FopFactoryConfigurator
> >> configure
> >> INFO: Default page-height set to: 29.7cm
> >> Oct 21, 2009 12:02:18 PM org.apache.fop.apps.FopFactoryConfigurator
> >> configure
> >> INFO: Default page-width set to: 21cm
> >> Oct 21, 2009 12:02:18 PM org.apache.fop.fonts.truetype.TTFFile
> >> determineAscDesc
> >> WARNING: Ascender and descender together are larger than the em box. This
> >> could lead to a wrong baseline placement in Apache FOP.
> >> Oct 21, 2009 12:02:18 PM
> >> org.apache.fop.layoutmgr.table.TableLayoutManager
> >> getNextKnuthElements
> >> INFO: table-layout="fixed" and width="auto", but auto-layout not
> >> supported
> >> => assuming width="100%"
> >> org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even
> >> the base 14 fonts, have to be embedded! Offending font: Times-Roman
> >>
> >>
> >> The strange thing is that this problem does not occur if my xsl page
> >> content
> >> is only in one page. If you guys have any ideas to share, it would be
> >> great.
> >>
> >> Thanks and regards,
> >> Sivashankar
> >> --
> >> View this message in context:
> >> http://www.nabble.com/PDFA---Problem-with-embedding-of-fonts-when-fo-document-contains-more-than-1-page-tp25987879p25987879.html
> >> Sent from the FOP - Users mailing list archive at Nabble.com.
> >>
> >
> >
> >
> > Jeremias Maerki
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@...
> > For additional commands, e-mail: fop-users-help@...
> >
> >
> >
> http://www.nabble.com/file/p26007096/Sample.fo Sample.fo
> --
> View this message in context: http://www.nabble.com/PDFA---Problem-with-embedding-of-fonts-when-fo-document-contains-more-than-1-page-tp25987879p26007096.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@...
For additional commands, e-mail: fop-users-help@...