[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 email@example.com ----- Original Message ----- From: "Sheldon Plankton" <firstname.lastname@example.org> To: "Bob Stayton" <email@example.com> Cc: <firstname.lastname@example.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 <email@example.com> 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 >> firstname.lastname@example.org >> >> >> ----- Original Message ----- >> From: "Sheldon Plankton" <email@example.com> >> To: <firstname.lastname@example.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: email@example.com >> > For additional commands, e-mail: >> > firstname.lastname@example.org >> > >> > >> > >> >> >> > >