new vcs.vcm.widgets.PDFCreator(options)
| Name | Type | Description |
|---|---|---|
options |
vcs.vcm.widgets.PDFCreator.Options |
Extends
Members
-
vcs.vcm.widgets.PDFCreator.OrientationMode{string}
-
Properties:
Name Type Description LANDSCAPEstring PORTRAITstring BOTHstring -
active{boolean}
-
-
className{string}
-
class Name of the Object
-
defaultOrientation{string}
-
-
formatList{Array.<string>}
-
available format list default A2 - A5;
-
initialized{boolean}
-
-
name{string}
-
unique Name
-
orientationMode{string}
-
-
showComment{boolean}
-
if true a comment input field will be shown, and can be referenced in the subText with ${comment}
-
showScreenshotDownload{boolean}
-
if true a create screenshot button will be shown
-
showTitleInput{boolean}
-
if true a title input field will be shown, the title will be used and can be referenced in the subText with ${title}
Methods
-
vcs.vcm.widgets.PDFCreator.viewpointToFixed(viewpoint, precision){vcs.vcm.widgets.PDFCreator.Viewpoint}
-
Creates a viewpoint with fixed numeric values
Name Type Default Description viewpointvcs.vcm.util.ViewPoint precisionnumber 2 -
cancelRunning()
-
If a job is running, it is cancelled, otherwise this has no effect
-
createImage(format, orientation, dpi){Promise}
-
creates an image
Name Type Description formatstring orientationstring one of: landscape, portrait
dpinumber -
createPDF(format, orientation, dpi, informationObject){Promise}
-
creates a new PDF with the given format, orientation and dpi values
Name Type Description formatstring orientationstring one of: landscape, portrait
dpinumber informationObjectvcs.vcm.widgets.PDFCreator.Information -
getClassName(){string} inherited
-
returns the class name of this object.
- Deprecated
- Yes
Returns:
className
-
getConfigObject(){Object} inherited
-
-
getId(){string} inherited
-
returns the id of this object
- Deprecated
- Yes
-
getName(){string} inherited
-
returns the name of the Object, the name is either given by the config Object or a uuid is generated
- Deprecated
- Yes
-
getPixelCount(format, orientation, dpi){number}
-
returns the pixelCount for a format, orientation and DPI
Name Type Description formatstring orientationstring dpinumber -
getSupportedMaps(){Array.<string>} inherited
-
Returns the widgets supported maps
-
isActive(){boolean} inherited
-
returns the active state of the widget
- Deprecated
- v3.6 use the property active directly
Returns:
state of the widget
-
isInitialized(){boolean} inherited
-
checks if the Widget is already initialized
- Deprecated
- Yes
Returns:
true if all requirements are there
-
isSupported(map){boolean} inherited
-
returns true if this widget supports the given map. Should be overriden by the widget
Name Type Description mapstring | vcs.vcm.maps.Map the map or className to check for support
Type Definitions
-
vcs.vcm.widgets.PDFCreator.Information{Object}
-
Properties:
Name Type Description commentstring | undefined titlestring | undefined datestring | undefined obliqueImagevcs.oblique.Image | undefined viewpointvcs.vcm.widgets.PDFCreator.Viewpoint | undefined transformedViewpointvcs.vcm.widgets.PDFCreator.Viewpoint | undefined the viewpoint with coordinates in the widgets projection
projectionvcs.vcm.util.Projection | undefined the projection info of the transformedViewpoint
copyrightstring | undefined -
vcs.vcm.widgets.PDFCreator.Options
-
Properties:
Name Type Argument Default Description formatListArray.<string> orientationModeOrientationMode defaultOrientationOrientationMode loadedTimeoutnumber | undefined <optional>
30000 the number of milliseconds to wait for tiles to load
titlestring | undefined titleImagestring | undefined titleImage as data:uri png/jpeg
copyrightTextstring | undefined pageMarginsnumber | Array.<number> <optional>
[40, 40, 40, 40] showTitleboolean <optional>
true showTitleImageboolean <optional>
true showCopyrightboolean <optional>
true showBalloonsboolean <optional>
true showNorthPointboolean <optional>
true showCommentboolean false} showTitleInputboolean false} showHeaderLineboolean <optional>
true showScreenshotDownloadboolean <optional>
false imageMimetypestring <optional>
image/png infoObject | null can be used to provide Document META Data @see https://pdfmake.github.io/docs/document-definition-object/document-medatadata/
headerTextObject | string | Array.<*> | null subTextObject | string | Array.<*> | null footerObject | string | Array.<*> | null can be used to add a footer to each pdf page @see https://pdfmake.github.io/docs/document-definition-object/headers-footers/
headerObject | string | Array.<*> | null can be used to add a hader to each pdf page @see https://pdfmake.github.io/docs/document-definition-object/headers-footers/
stylesObject | undefined can be used to override default PDF Styles, use with care. @see https://pdfmake.github.io/docs/ for more information,
header,subheader,copyright,tableHeader,subheaderTextare predefined stylesetsaspectRatioLandscapenumber <optional>
2.22222 can be used to override default Landscape aspectRatio, use with care.
aspectRatioPortraitnumber <optional>
2.22222 can be used to override default Portrait aspectRatio, use with care.
renderingWidthLandscapenumber <optional>
1920 Rendering width for Rendering the PDF in Landscape, use with care.
renderingWidthPortraitnumber <optional>
1920 Rendering width for Rendering the PDF in Portrait, use with care.
titleImageRationumber <optional>
0.125 can be used to override default titleImageRatio, use with care.
headerLineColorstring | undefined line color in hex. if not specified, the header lines color in the map is used
northPointImagestring | undefined warningPixelCountnumber | undefined the number of pixels at which to show a warning, defaults to A4@300DPI
floatPrecisionnumber <optional>
2 projectionvcs.vcm.util.Projection.Options | undefined the projection to transform the transformed coordinates to, defaults to framework projection
-
vcs.vcm.widgets.PDFCreator.OrientationValues{Object}
-
Properties:
Name Type Description landscapenumber portraitnumber -
vcs.vcm.widgets.PDFCreator.Values{Object}
-
Properties:
Name Type Description runningboolean can be cancelled
cancelledboolean set to true to cancel current run
-
vcs.vcm.widgets.PDFCreator.Viewpoint{Object}
-
Properties:
Name Type Description namestring | undefined viewpoint name
cameraPositionArray.<string> | undefined ol3 coordinate array with xyz coordinates (z value is mandatory)
groundPositionArray.<string> | undefined ol3 coordinate array with xyz coordinates (z value is optional)
distancestring | undefined distance between the camera position and the target
headingstring angle between 0 and 360 degree
pitchstring angle between 0 and 360 degree
rollstring angle between 0 and 360 degree
virtualcityMAP 3.6