WebToPDFConvertParams Class Documentation
class WebToPDFConvertParams : SystemIDisposableNamespace:Datalogics::PDFL
- Inherits from:
SystemIDisposable
Detailed Description
Parameters that control web/HTML-to-PDF conversion. Configure the target page geometry, viewport, image handling, and behavior on this object, then pass it to a web-to-PDF conversion call. The enum-valued settings (viewport preset, page size, page orientation, image compression, and downsampling resolution) take named values rather than raw integers. Safe to construct and configure on any platform; conversion itself runs only where the WebToPDF plugin is supported.
Referenced by
Constructor & Destructor Documentation
WebToPDFConvertParams
WebToPDFConvertParams()WebToPDFConvertParams
WebToPDFConvertParams(WebToPDFConvertParams other)Parameters
other: WebToPDFConvertParams
Property Documentation
CustomPageHeight
double CustomPageHeight[get]CustomPageWidth
double CustomPageWidth[get]CustomViewportHeight
int CustomViewportHeight[get]CustomViewportWidth
int CustomViewportWidth[get]DisplayHeaderFooter
bool DisplayHeaderFooter[get, set]DownsamplingDPI
WebDownsamplingDPI DownsamplingDPI[get, set]EnableVerboseLogging
bool EnableVerboseLogging[get, set]GenerateTaggedPDF
bool GenerateTaggedPDF[get, set]ImageCompression
WebImageCompression ImageCompression[get, set]MarginBottom
double MarginBottom[get]MarginLeft
double MarginLeft[get]MarginRight
double MarginRight[get]MarginTop
double MarginTop[get]PageOrientation
WebPageOrientation PageOrientation[get, set]PageSize
WebPageSize PageSize[get, set]PreferCSSPageSize
bool PreferCSSPageSize[get, set]PrintBackground
bool PrintBackground[get, set]Scale
double Scale[get, set]TimeoutSeconds
int TimeoutSeconds[get, set]ViewportSize
WebViewportPreset ViewportSize[get, set]Member Function Documentation
Dispose
void Dispose()Returns:
voidSetCustomPageSize
void SetCustomPageSize(double width_pts, double height_pts)Parameters
width_pts: doubleheight_pts: double
Returns:
voidExplicit page size in points (1 pt = 1/72 in). Used only when the page size is Custom.
SetCustomViewport
void SetCustomViewport(int width, int height)Parameters
width: intheight: int
Returns:
voidExplicit viewport size in pixels. Used only when the viewport preset is Custom.
SetMargins
void SetMargins(double top, double right, double bottom, double left)Parameters
top: doubleright: doublebottom: doubleleft: double
Returns:
voidPage margins in inches, given as top, right, bottom, left.