OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] How do I embed fonts in a PDF?


Hi Sheldon,
You are confusing the XSL stylesheet parameters passed with --stringparam 
to the stylesheet with the FOP user configuration attributes. The 
"embed-url" is an attribute in the FOP userconfig.xml file.  You will need 
to read the documentation for the version of FOP you are using to see how 
userconfig.xml is modified.  There is no option in the stylesheet 
parameters that controls font embedding.

BTW, if you are using FOP 0.93 or higher, you should be setting 
fop1.extentions to 1 an fop.extensions to 0.  The fop.extensions was for 
FOP version 0.20.5 and is not compatible with FOP 0.93.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Sheldon Plankton" <sheldon.plankton@gmail.com>
To: "Bob Stayton" <bobs@sagehill.net>
Cc: <docbook-apps@lists.oasis-open.org>
Sent: Monday, September 17, 2007 9:03 PM
Subject: Re: [docbook-apps] How do I embed fonts in a PDF?


> Thanks Bob ...
>
> So on my command line I could do something like this ...
>
> $ xsltproc --output MY.fo \
>> --stringparam fop.extensions 1 \
>> --stringparam ulink.footnotes 1 \
>> --stringparam embed-url 1 \
>> --stringparam admon.graphics 1  ./style_pdf.xsl ideal_bartender_g.xml
>
> ... right?  Or do I need to set embed-url to some like
> file://somepath/that/Ihave/no/clue/somefontfile
>
> Thanks again.
>
> On 9/17/07, Bob Stayton <bobs@sagehill.net> wrote:
>> Embedding of fonts is something that the XSL-FO processor does, not the
>> stylesheet.   You will need to look at the documentation for the XSL-FO
>> processor.  If you are using FOP, you can start here:
>>
>> http://xmlgraphics.apache.org/fop/0.93/fonts.html#embedding
>>
>> Font embedding can be done as a post-processing step too.  If you have
>> Acrobat Standard, you can use Save As and select PostScript, then use
>> Acrobat Distiller to open the PostScript file and save it as PDF again,
>> this time specifying that all fonts should be embedded.  That isn't
>> something you want to do very often, though.
>>
>> Bob Stayton
>> Sagehill Enterprises
>> DocBook Consulting
>> bobs@sagehill.net
>>
>>
>> ----- Original Message -----
>> From: "Sheldon Plankton" <sheldon.plankton@gmail.com>
>> To: <docbook-apps@lists.oasis-open.org>
>> Sent: Saturday, September 15, 2007 2:12 PM
>> Subject: [docbook-apps] How do I embed fonts in a PDF?
>>
>>
>> > Hi,
>> >
>> > I generated my PDF book with docbook and tried to upload it to 
>> > lulu.com.
>> > Lulu.com reject my upload stating that ...
>> >
>> >
>> > Your document could not be created: This font is not embedded:
>> > Helvetica-Bold ( How do I embed fonts?) This font is not embedded:
>> > Helvetica ( How do I embed fonts?)
>> > This font is not embedded: Times-Roman ( How do I embed fonts?)
>> >
>> > ... what are they talking about and what can I do in my custom style
>> > sheet to fix it?
>> >
>> > Thank you.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>> > For additional commands, e-mail: 
>> > docbook-apps-help@lists.oasis-open.org
>> >
>> >
>> >
>>
>>
>>
>
> 




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]