Справочник Пользователя для Adobe acrobat 7.0.5 sdk
41
Creating PDF Documents
Creating PDF Documents from an Authoring Application
4
Automated, Silent Creation of PDF Documents from Windows
In the Acrobat 7.0.5 SDK, there is a new set of APIs that allow you to automate the silent
creation of PDF files from an external Windows application.
creation of PDF files from an external Windows application.
When you use the OLE Automation described above, the Distiller splashscreen and status
are displayed even when the process is automated. With this API, there is no interaction
with the user and no display on the screen; the printing is done “silently.”
are displayed even when the process is automated. With this API, there is no interaction
with the user and no display on the screen; the printing is done “silently.”
This API allows you to specify the name and location of the output PDF. To do so, you must
make modifications to the Windows registry. See the Distiller API Reference for more
information on what registry modifications are required.
make modifications to the Windows registry. See the Distiller API Reference for more
information on what registry modifications are required.
N
O T E
:
This procedure involves editing the registry. Adobe Systems Incorporated does not
provide support for editing the registry, which contains critical system and
application information. It is recommended that you back up the registry before
modifying it.
provide support for editing the registry, which contains critical system and
application information. It is recommended that you back up the registry before
modifying it.
To check status and errors, use the Distiller API. For more information, see the Acrobat
Distiller API Reference and the Acrobat SDK Samples Guide.
Distiller API Reference and the Acrobat SDK Samples Guide.
Choosing an Adobe PDF Settings File
You can control the Adobe PDF settings file through the Distiller user interface, or you can
control Distiller programmatically through the various Distiller automation methods. For
details on automation methods, see
control Distiller programmatically through the various Distiller automation methods. For
details on automation methods, see
and the Acrobat Distiller API Reference.
At the user interface level, you can set Distiller parameters by selecting a file of predefined
Adobe PDF settings, or by creating your own set of Adobe PDF settings. Each Distiller
settings file defines compression, font embedding, color management, PDF/X-compliance,
and many other properties for all PDF files that Distiller creates.
Adobe PDF settings, or by creating your own set of Adobe PDF settings. Each Distiller
settings file defines compression, font embedding, color management, PDF/X-compliance,
and many other properties for all PDF files that Distiller creates.
Distiller comes with several predefined Adobe PDF settings files, with settings defined for
common scenarios. You choose which settings file to use as a parameter to the Distiller
Automation API. For a complete list of settings, see the Acrobat Distiller API Reference.
common scenarios. You choose which settings file to use as a parameter to the Distiller
Automation API. For a complete list of settings, see the Acrobat Distiller API Reference.
Automatically Generating Advanced Acrobat Features
The most convenient place to generate advanced Acrobat features is in the authoring
application itself, since this application knows the most about the structure of the
document. Advanced PDF features are generated using the
application itself, since this application knows the most about the structure of the
document. Advanced PDF features are generated using the
pdfmark
PostScript operator.
The authoring application must generate a PostScript language file that contains the
appropriate pdfmark operators for the document structure desired. The resulting
PostScript language file is converted into a PDF file via Distiller. In addition, Acrobat allows
logical structure information to be added to a document. For instance, paragraphs in a
page’s contents can be associated with a structural element representing a paragraph.
appropriate pdfmark operators for the document structure desired. The resulting
PostScript language file is converted into a PDF file via Distiller. In addition, Acrobat allows
logical structure information to be added to a document. For instance, paragraphs in a
page’s contents can be associated with a structural element representing a paragraph.
For more information, see
and the pdfmark
Reference Manual.