docx
Preparing search index...
Packer
Class Packer
Index
Constructors
constructor
Methods
pack
to
Array
Buffer
to
Base64
String
to
Blob
to
Buffer
to
Stream
to
String
Constructors
constructor
new
Packer
()
:
Packer
Returns
Packer
Methods
Static
pack
pack
<
T
extends
keyof
OutputByType
>
(
file
:
File
,
type
:
T
,
prettify
?:
boolean
|
""
|
" "
|
" "
|
"\t"
,
overrides
?:
readonly
IXmlifyedFile
[]
,
)
:
Promise
<
OutputByType
[
T
]
>
Type Parameters
T
extends
keyof
OutputByType
Parameters
file
:
File
type
:
T
Optional
prettify
:
boolean
|
""
|
" "
|
" "
|
"\t"
overrides
:
readonly
IXmlifyedFile
[]
= []
Returns
Promise
<
OutputByType
[
T
]
>
Static
to
Array
Buffer
toArrayBuffer
(
file
:
File
,
prettify
?:
boolean
|
""
|
" "
|
" "
|
"\t"
,
overrides
?:
readonly
IXmlifyedFile
[]
,
)
:
Promise
<
ArrayBuffer
>
Parameters
file
:
File
Optional
prettify
:
boolean
|
""
|
" "
|
" "
|
"\t"
overrides
:
readonly
IXmlifyedFile
[]
= []
Returns
Promise
<
ArrayBuffer
>
Static
to
Base64
String
toBase64String
(
file
:
File
,
prettify
?:
boolean
|
""
|
" "
|
" "
|
"\t"
,
overrides
?:
readonly
IXmlifyedFile
[]
,
)
:
Promise
<
string
>
Parameters
file
:
File
Optional
prettify
:
boolean
|
""
|
" "
|
" "
|
"\t"
overrides
:
readonly
IXmlifyedFile
[]
= []
Returns
Promise
<
string
>
Static
to
Blob
toBlob
(
file
:
File
,
prettify
?:
boolean
|
""
|
" "
|
" "
|
"\t"
,
overrides
?:
readonly
IXmlifyedFile
[]
,
)
:
Promise
<
Blob
>
Parameters
file
:
File
Optional
prettify
:
boolean
|
""
|
" "
|
" "
|
"\t"
overrides
:
readonly
IXmlifyedFile
[]
= []
Returns
Promise
<
Blob
>
Static
to
Buffer
toBuffer
(
file
:
File
,
prettify
?:
boolean
|
""
|
" "
|
" "
|
"\t"
,
overrides
?:
readonly
IXmlifyedFile
[]
,
)
:
Promise
<
Buffer
>
Parameters
file
:
File
Optional
prettify
:
boolean
|
""
|
" "
|
" "
|
"\t"
overrides
:
readonly
IXmlifyedFile
[]
= []
Returns
Promise
<
Buffer
>
Static
to
Stream
toStream
(
file
:
File
,
prettify
?:
boolean
|
""
|
" "
|
" "
|
"\t"
,
overrides
?:
readonly
IXmlifyedFile
[]
,
)
:
Stream
Parameters
file
:
File
Optional
prettify
:
boolean
|
""
|
" "
|
" "
|
"\t"
overrides
:
readonly
IXmlifyedFile
[]
= []
Returns
Stream
Static
to
String
toString
(
file
:
File
,
prettify
?:
boolean
|
""
|
" "
|
" "
|
"\t"
,
overrides
?:
readonly
IXmlifyedFile
[]
,
)
:
Promise
<
string
>
Parameters
file
:
File
Optional
prettify
:
boolean
|
""
|
" "
|
" "
|
"\t"
overrides
:
readonly
IXmlifyedFile
[]
= []
Returns
Promise
<
string
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
pack
to
Array
Buffer
to
Base64
String
to
Blob
to
Buffer
to
Stream
to
String
docx
Loading...