Last updated

API / geotoolkit / report / Document / Document

Namespace: Document

report.Document.Document

Table of contents

Type Aliases

Contents

Type Aliases

DefaultPrintSettings

Ƭ DefaultPrintSettings: Object

default print settings

Type declaration

NameTypeDescription
bottom?numbermargin bottom
continuous?booleancontinuous flag
keepaspectratio?booleankeepAspectRatio flag
left?numbermargin left
orientation?PaperOrientation | stringpaper orientation
paperformat?AbstractPaperFormatpaper format
right?numbermargin right
scaling?ScalingOptions | stringscaling type
top?numbermargin top
units?stringmargin units

ExportToPdfOptions

Ƭ ExportToPdfOptions: Object

export options

Type declaration

NameTypeDescription
date?Datedocument title
documentfooter?FooterComponentan optional document PDF footer
documentheader?HeaderComponentan optional document PDF header
embeddedfonts?EmbeddedFont[]array of embedded fonts
embededfonts?EmbededFont[]array of embedded fonts Deprecated since 5.0 use ['embeddedfonts'] instead
footer?PageElementan optional PDF page footer
header?PageElementan optional PDF page header
imagecompression?{ mode?: ImageCompression ; quality?: number ; speed?: SpeedCompression }options to specify the image compression
imagecompression.mode?ImageCompressionimage compression method used to exporting pdf.
imagecompression.quality?numberquality range from 0 to 1 that will express the jpeg image compression quality, available for jpeg mode only.
imagecompression.speed?SpeedCompressionspeed referring to the png compression speed, available for png mode only.
imagescalefactor?numberoptions to specify the image scale factor, right now 8 is maximum, Math.floor(600 / 72)
options?{ exportscale: number ; imagescalefactor: number ; orientation: Orientation }Pdf options
options.exportscalenumber-
options.imagescalefactornumber-
options.orientationOrientation-
output?stringdefine optional output filename
pdfstream?IWritableoptional user-customized Stream object
printsettings?{ bottom?: number ; continuous?: boolean ; keepaspectratio?: boolean ; left?: number ; orientation?: PaperOrientation | string ; paperformat?: AbstractPaperFormat ; right?: number ; scaling?: ScalingOptions | string ; top?: number }define optional paper and export parameters
printsettings.bottom?numberdefine optional bottom margin
printsettings.continuous?booleancontinuous printing
printsettings.keepaspectratio?booleankeep aspect ratio
printsettings.left?numberdefine optional left margin
printsettings.orientation?PaperOrientation | stringdefine optional paper orientation
printsettings.paperformat?AbstractPaperFormatdefine optional paper paper format
printsettings.right?numberdefine optional top margin
printsettings.scaling?ScalingOptions | stringdefine optional scaling mode. Specify to fit all tracks in your page width.
printsettings.top?numberdefine optional top margin
progress?(currentPage: number, totalPages: number) => voidCallback to show export progress
save?booleanflag to save the pdf directly to file or open dialog
skipoutput?booleanflag to skip using output and return stream in promise
streamcompression?booleanenable or disable pdf output compression
title?stringdocument title
truescale?booleanenable or disable true scale rendering