Adobe acrobat 7.0.5 sdk User Manual

Page of 122
57
Working with PDF Documents
Working with Embedded Fonts
5
To set more specific parameters for printing without a user interface, you must use the 
AVDocPrintPagesWithParams
 method. Among the parameters that you can set with 
this method are:
The printer to be used
Output file name (path and filename)
Whether to embed the output in a bounding rectangle on the screen
Whether to print the document as an image
Whether to tile the output
Output transparency level
Printing from an External Application
Using the IAC APIs, you can print a PDF file from an external application. On Windows, the 
IAC API’s 
AVDoc
 object has several methods for printing.
In AppleScript, the document object’s print pages method prints a specified range of 
pages without displaying a print dialog box.
For more information, see the Acrobat Interapplication Communication Overview.
Working with Embedded Fonts
This section discusses embedded font-related operations using the Acrobat SDK. Acrobat 
Distiller and the PDF Library add font embedding information to fonts that are embedded 
in PDF files. With the inclusion of this information, your code can determine how an 
embedded font can be used. The operations discussed in this section also largely apply to 
code used with the PDF Library SDK.
Acrobat plug-in developers can remove and embed fonts within an existing PDF 
document. They can also use fonts that are already embedded in a PDF document for 
preview and printing, as well as editing. However, allowing editing using embedded fonts is 
not recommended, and in some cases it is impractical. For example, CJK fonts potentially 
include thousands of glyphs, so applications must subset these fonts when embedding 
them in a PDF file. This precludes embedded CJK fonts from being used for editing by a 
plug-in.
PDF Library users can perform all of the above operations using an existing PDF document, 
or create a PDF document from scratch that includes embedded fonts. Creating a 
document from scratch cannot be performed by a plug-in, but it can be done by using PDF 
library calls from within a compiled application that includes the PDF Library.