The Adobe PDF Library is a useful tool for creating PostScript and PDF output. The PDF documents can be created at the time of composition or by transforming legacy print streams. Therefore, customers have the option of creating PostScript or PDF from applications, or taking previously created output (except PostScript) and converting it to PDF.
NOTE: The conversion of PostScript to PDF is not supported, since Adobe Distiller and Adobe PDF Converter SDK are available for this purpose. Further information on Adobe PDF Converter SDK is available from the Datalogics website.
After you build a PDF file, you can work with it in Adobe Acrobat.
Additional customer applications may be required to transform legacy print streams.
To create a simple PDF document using the Adobe PDF Library, follow these basic composition steps:
- Allocate memory for and specify the location of the application-specific font resource
- Initialize the Library
- Create a document
- Create the content object for a page
- Create text
- Add text to the page
- Release the text
- Include another PDF document as a graphic on the page (optional)
- Include an image in the page (optional)
- Add the page to the document
- Release the content object for the page
- Repeat as needed
- Output the document
- Release the document
- Terminate the Library
- Release any allocated memory
PDF files can be created at the complete output stream level, user-defined document level, or any combination. For example, in a statement application, one PDF file could be created for the whole run, or one PDF file could be created for each statement. Using the concept of PDF threads, it is also possible for users to create multiple output sorts from the same application execution, and to apply different file definitions to each output. This could be used, for instance, to create one PDF file sorted for printed output and mail delivery and another sorted by sales territory and destined for online access.