[xep-support] Font extraction problem in Acrobat

Appleby, Paul paul.appleby at tso.co.uk
Wed Jul 26 02:51:55 PDT 2006


I'm succesfully creating a PDF using XEP Version 4.5 build 20060116 
	This opens fine in Acrobat 7 and Adobe Reader 7. However when I open it in Acrobat 5 or 6 I get the following error: 
	'Unable to extract the embedded font 'MTimesNewRoman-Bold. Some characters may not display or print correctly' 
	It also opens fine in Brava reader. We need it to open in versions earlier than 7 because these files will be publicly accessible so we have no control over the acrobat version being used.
	It is also happening for the italic face but oddly the roman face and bold italic face are fine! 
	I've got the fonts embedded and tried both subsetting and not subsetting with no difference. 
	I've output the file to PostScript from XEP and distilled it and it works fine. A colleague has suggested that XEP may not be embedding the font correctly but having dug around the web this seems a fairly common problem (with no obvious cause) so I'm not convinced.
	Below is a cut down version of the FO which still generates the error. I've left the PDF version at the default of 1.4
	<fo:root xmlns:fo="<http://www.w3.org/1999/XSL/Format>" xmlns:rx="<http://www.renderx.com/XSL/Extensions>"> 
	<fo:layout-master-set> 
	<fo:simple-page-master master-name="prelims-page" page-height="841.89pt" page-width="595.276pt"> 
	<fo:region-body margin-top="54pt" margin-bottom="62pt" margin-left="50.276pt" margin-right="53pt" column-count="2" column-gap="12pt"/>
	<fo:region-after extent="60pt" padding-left="50.276pt" padding-right="53pt" display-align="before" region-name="even-after"/>
	</fo:simple-page-master> 
	<fo:simple-page-master master-name="even-page" page-height="841.89pt" page-width="595.276pt"> 
	<fo:region-body margin-top="66pt" margin-bottom="62pt" margin-left="53pt" margin-right="50.276pt" column-count="2" column-gap="12pt"/>
	<fo:region-before extent="60pt" padding-left="53pt" padding-right="50.276pt" display-align="after" region-name="even-before"/>
	<fo:region-after extent="60pt" padding-left="53pt" padding-right="50.276pt" display-align="before" region-name="even-after"/>
	</fo:simple-page-master> 
	<fo:simple-page-master master-name="odd-page" page-height="841.89pt" page-width="595.276pt"> 
	<fo:region-body margin-top="66pt" margin-bottom="62pt" margin-left="50.276pt" margin-right="53pt" column-count="2" column-gap="12pt"/>
	<fo:region-before extent="60pt" padding-left="50.276pt" padding-right="53pt" display-align="after" region-name="odd-before"/>
	<fo:region-after extent="60pt" padding-left="50.276pt" padding-right="53pt" display-align="before" region-name="odd-after"/>
	</fo:simple-page-master> 
	<fo:page-sequence-master master-name="main-sequence"> 
	<fo:single-page-master-reference master-reference="prelims-page"/> 
	<fo:repeatable-page-master-alternatives> 
	<fo:conditional-page-master-reference master-reference="odd-page" odd-or-even="odd"/> 
	<fo:conditional-page-master-reference master-reference="even-page" odd-or-even="even"/> 
	</fo:repeatable-page-master-alternatives> 
	</fo:page-sequence-master> 
	</fo:layout-master-set> 
	<fo:page-sequence master-reference="main-sequence" initial-page-number="9837" letter-value="auto"> 
	<fo:flow flow-name="xsl-region-body" font-family="Times" line-height="8.5pt" white-space-collapse="false" line-height-shift-adjustment="disregard-shifts">
	<fo:block font-size="16pt" line-height="16pt" font-weight="bold" space-after="1pt" keep-with-next.within-column="always" id="NoticeType_1501">Road Traffic Acts<fo:wrapper id="TitleNoticeIDAAHLWB"/>
	</fo:block> 
	</fo:flow> 
	</fo:page-sequence> 
	</fo:root> 
	And this is the xep.xml file ...
<?xml version="1.0" encoding="utf-8"?>
<!-- ======================================================= -->
<!-- RenderX XEP Configuration                               -->
<!-- ======================================================= -->
<config xmlns="http://www.renderx.com/XEP/config">
	<!-- ======================================================= -->
	<!-- Formatter options                                       -->
	<!-- ======================================================= -->
	<options>
		<option name="LICENSE" value="license.xml"/>
		<option name="TMPDIR" value="none"/>
		<option name="BROKENIMAGE" value="images/404.gif"/>
		<!-- Backend options -->
		<generator-options format="PDF">
			<!-- <option name="COMPRESS" value="false"/> -->
			<!-- <option name="PDF_VERSION" value="1.3"/> -->
		</generator-options>
		<generator-options format="PostScript">
			<!-- <option name="LANGUAGE_LEVEL" value="2"/> -->
			<!-- <option name="CLONE_EPS" value="true"/> -->
		</generator-options>
	</options>
	<!-- ======================================================= -->
	<!-- Fonts                                                   -->
	<!-- ======================================================= -->
	<fonts xmlns="http://www.renderx.com/XEP/config" xml:base="fonts/" default-family="Courier">
		<!-- Base Adobe fonts. -->
		<font-group label="Base 14" embed="false">
			<font-family name="Courier">
				<font>
					<font-data afm="Courier.afm"/>
				</font>
				<font style="oblique">
					<font-data afm="Courier-Oblique.afm"/>
				</font>
				<font weight="bold">
					<font-data afm="Courier-Bold.afm"/>
				</font>
				<font weight="bold" style="oblique">
					<font-data afm="Courier-BoldOblique.afm"/>
				</font>
			</font-family>
			<font-family name="Helvetica">
				<font>
					<font-data afm="Helvetica.afm"/>
				</font>
				<font style="oblique">
					<font-data afm="Helvetica-Oblique.afm"/>
				</font>
				<font weight="bold">
					<font-data afm="Helvetica-Bold.afm"/>
				</font>
				<font weight="bold" style="oblique">
					<font-data afm="Helvetica-BoldOblique.afm"/>
				</font>
			</font-family>
			<font-family name="Symbol">
				<font>
					<font-data afm="Symbol.afm"/>
				</font>
			</font-family>
			<font-family name="ZapfDingbats">
				<font>
					<font-data afm="ZapfDingbats.afm"/>
				</font>
			</font-family>
		</font-group>
		<font-group label="LondonGazette" embed="true" subset="false">
			<font-family name="AdobeGaramond">
				<font>
					<font-data afm="gdrg.afm" pfb="gdrg____.pfb"/>
				</font>
				<font style="oblique">
					<font-data afm="gdi.afm" pfb="gdi_____.pfb"/>
				</font>
				<font weight="bold">
					<font-data afm="gdb.afm" pfb="gdb_____.pfb"/>
				</font>
				<font weight="bold" style="oblique">
					<font-data afm="gdbi.afm" pfb="gdbi____.pfb"/>
				</font>
			</font-family>
			<font-family name="Times">
				<font>
					<font-data afm="tim.afm" pfb="TIM.pfb"/>
				</font>
				<font style="italic">
					<font-data afm="timi.afm" pfb="TIMI.pfb"/>
				</font>
				<font weight="bold">
					<font-data afm="timb.afm" pfb="TIMB.pfb"/>
				</font>
				<font weight="bold" style="italic">
					<font-data afm="timbi.afm" pfb="TIMBI.pfb"/>
				</font>
			</font-family>
			<font-family name="Frutiger">
				<font>
					<font-data afm="ftr.afm" pfb="ftr_____.pfb"/>
				</font>
				<font style="oblique">
					<font-data afm="fti.afm" pfb="fti_____.pfb"/>
				</font>
				<font weight="bold">
					<font-data afm="ftb.afm" pfb="ftb_____.pfb"/>
				</font>
				<font weight="bold" style="oblique">
					<font-data afm="ftbi.afm" pfb="ftbi___.pfb"/>
				</font>
			</font-family>
			<font-family name="OCRB">
				<font>
					<font-data afm="ob.afm" pfb="ob______.pfb"/>
				</font>
			</font-family>
			<font-alias name="Garamond" value="AdobeGaramond"/>
		</font-group>
		<!-- Other Type1 fonts -->
		<font-group label="Assorted Type 1" embed="true">
			<font-family name="OmegaSerifIPA">
				<font>
					<font-data afm="IPA.afm" pfa="IPA.pfa" glyph-list="IPA.glyphs"/>
				</font>
			</font-family>
			<font-alias name="OmegaIPA" value="OmegaSerifIPA"/>
			<font-alias name="Phonetic" value="OmegaSerifIPA"/>
		</font-group>
		<!-- Required aliases -->
		<font-alias name="monospace" value="Courier"/>
		<font-alias name="sans-serif" value="Helvetica"/>
		<font-alias name="serif" value="Times"/>
		<font-alias name="cursive" value="Times"/>
		<font-alias name="fantasy" value="Times"/>
	</fonts>
	<!-- ======================================================= -->
	<!-- Language-specific data: hyphenation, line breaking, etc -->
	<!-- ======================================================= -->
	<languages default-language="en-US" xml:base="hyphen/">
		<language name="English (US)" codes="none en-US eng-US">
			<hyphenation pattern="hyphen.tex"/>
		</language>
		<language name="English (UK)" codes="en-GB eng-GB en eng">
			<hyphenation pattern="ukhyphen.tex"/>
		</language>
		<language name="Russian" codes="ru rus">
			<hyphenation pattern="ruhyphal.tex" encoding="koi8-r"/>
		</language>
		<language name="French" codes="fr fra fre">
			<hyphenation pattern="frhyph_rx.tex"/>
		</language>
		<language name="German" codes="de deu ger">
			<hyphenation pattern="dehyph_rx.tex"/>
		</language>
		<language name="Spanish" codes="es esl spa">
			<hyphenation pattern="eshyph_rx.tex"/>
		</language>
		<language name="Polish" codes="pl pol">
			<hyphenation pattern="plhyph_rx.tex"/>
		</language>
	</languages>
</config>
	Any help would be very much appreciated. 



Paul Appleby
Technical Data Consultant
The Stationery Office
Tel: +44 (0)1603 695898
Mobile: +44 (0)7730 074821
Email: paul.appleby at tso.co.uk 
Web: www.tso.co.uk <http://www.tso.co.uk>
TSO Providing Document and Publishing Services


***********************************************************************************************
This message is sent in strict confidence for the addressee only.  It may contain legally privileged information.  The contents are not to be disclosed to anyone other than the addressee.  Unauthorised recipients are requested to preserve this confidentiality and to advise the sender immediately of any error in transmission.

This footnote also confirms that this email message has been swept for the presence of computer viruses, however we cannot guarantee that this message is free from such problems.
***********************************************************************************************

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list