HtmlStringToPDFStream Basic Use Example
Under the “WebPart Services” drag over the “GetHtmlString” service to the Process Canvas. This will create a “GetHtmlString” service on the Process Canvas. Connect it to the “Start” service, double click the “GetHtmlString” service and pass in a WebPartId to generate HTML String of that webpart. Now, drag “HtmlStringToPDFFile” under “PDF Services” to the Process Canvas and connect the newly created service to “GetHtmlString” and “Terminate” as shown in the picture below.
In this example we are going to use the service “GetHtmlString” under WebPartWorkshop” to generate HTMLString of a webpart which we’ll pass into “HtmlString” input for our “HtmlStringToPDFFile” service to generate PDF and save it to the default location for downloads.
Add File Name
File name is the name of the PDF file that we are going to generate and save. Notice that we should also include .pdf extension. The file will be saved to the default location for downloads as determined in the web browser settings.
In the HtmlStringToPDFFile service logs we can see the starttime, endtime, and duration of this service.