Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java API  RSS feed

 
Michael Scott
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java API for a product called Antenna House includes a class called XfoObj which includes the following three methods. (Antenna House is a product that provides the capability of embedding fonts in PDF files.)

(1) public int EMBALLFONT_PART

(2) public void setPdfEmbedAllFontsEx(int newVal)

Parameters:
newVal - the value of whether to embed fonts
EMBALLFONT_PART : Specified fonts
EMBALLFONT_ALL : Embed All fonts except Base14 fonts
EMBALLFONT_BASE14 : All fonts
If the value is EMBALLFONT_PART, only fonts specified in setPdfEmbedFonts
are embedded.

(3) public void setPdfEmbedFonts(java.lang.String newVal)


In my code, an XfoObj object is instantiated as follows:

axfo = new XfoObj();

I'd then like to specify that a specific font ("MS Mincho") be embedded.
Accordingly, I'd expect that the parameter EMBALLFONT_PART should be referenced in the method setPdfEmbedAllFontsEx and "MS Mincho" should be referenced in the method setPdfEmbedFonts. What's not apparent to me however, is that the parameter for setPdfEmbedAllFontsEx is an integer. I'm speculating that what's required is something such as the following:

int EMBALLFONT_PART = 1;
axfo.setPdfEmbedAllFontsEx(EMBALLFONT_PART);
axfo.setPdfEmbedFonts("MS Mincho");

I'd appreciate any ideas on whether this is a correct way to interpret this API. Thanks.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe it's best to ask a question like this, about a specific API of a specific commercial (?) product, to the manufacturer of the product.

Does the manufacturer of Antenna House have a website where you can ask questions, or some kind of support? (If you paid for the product, you'd expect to get support on it).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!