Top
Top
LibraryEASYProcess Reference ManualProcessesServicesPDFWorkshopHtmlStringToPDFStream

HtmlStringToPDFStream Overview

HtmlStringToPDFStream creates a PDF from the given HTML and then downloads it to the user’s local computer. The file will be saved to the default location for downloads as determined in the web browser settings.

This service should be used from a user initiated process since it is intended to download to the user’s computer. If only the generated PDF file is needed, HtmlStringToPDFFile service should be used instead.


HtmlStringToPDFStream Use Examples
Workshop:PDFWorkshop
Service:HtmlStringToPDFStream
Inputs
HtmlString

FileName

TopMargin

BottomMargin

LeftMargin

RightMargin

PageWidth

PageHeight

ShowHeader

HeaderHtmlString

HeaderText

HeaderHeight

DrawHeaderLine

ShowFooter

FooterHtmlString

FooterText

FooterHeight

DrawFooterLine

ShowPageNumber

CoverHtmlString

PageNumberText

PrependPDFFileArray

AppendPDFFileArray

EnableBookmark

BookmarkTags

BookmarkClassFilter

PageOrientation

SiteUrl

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.

Output

In the HtmlStringToPDFFile service logs we can see the starttime, endtime, and duration of this service.


Powered by EASYProcess (© 2019 K-Rise Systems, Inc).