To convert an HTML document to a PDF document, perform
the following tasks:
Include project files.
Create a Generate PDF client.
Retrieve the HTML content to convert to a PDF document.
Convert the HTML content to a PDF document.
Retrieve the results.
Include project files
Include necessary files into your development
project. If you are creating a client application using Java, include
the necessary JAR files. If you are using web services, ensure that
you include the proxy files.
Create a Generate PDF client
Before
you can programmatically perform a Generate PDF operation, you must
create a Generate PDF service client. If you are using the Java API,
create a GeneratePdfServiceClient object. If you
are using the web service API, create a GeneratePDFServiceService.
Retrieve the HTML content to convert to a PDF document
Reference
HTML content that you want to convert to a PDF document. You can
reference HTML content such as an HTML file or HTML content that
is accessible using a URL.
Convert the HTML content to a PDF document
After you create the
service client, you can invoke the appropriate PDF creation operation.
This operation needs information about the document to be converted,
including the path to the target document.
Retrieve the results
After the HTML content is converted to a PDF
document, you can retrieve the results and save the PDF document.