RE: [aXSL-user] No more Encoding.getPDFName method
An API for XSL-FO.
Status: Alpha
Brought to you by:
victormote
|
From: Victor M. <vi...@ou...> - 2005-09-22 21:42:21
|
Vincent Hennebert wrote: > The method getPDFName() of the org.axsl.ps.Encoding class has > disappeared in the latest CVS version. > May it be safely replaced by getName() or has this latter > method a different purpose? They are equivalent. This is part of my effort to make some of this stuff less PDF-specific. I may have forgotten to post a message about it. > The asPostScript() method seems to return the entire > encoding, so it is quite unrelated with the old getPDFName() > method. BTW, can I use it also for PDF output? I guess this > is the same format? The name will be the same regardless of whether used in PostScript or PDF. The thing you will want to watch out for is that the standard encodings are different between PostScript and PDF. The isPredefinedPDF() and is PredefinedPS methods tell you which is which. You do not, for example, need to write the WinAnsiEncoding into a PDF document, nor a StandardEncoding into a PostScript document, because the interpreters already have them natively. However, you will need to write the *name* of the encoding where you want it used. Victor Mote |