Methods
createFromPath
- createFromPath(filePath: string): Promise<Handle>
createFromResource
- createFromResource(resourceId: string): Promise<Handle>
getPdfInfoFromPath
- getPdfInfoFromPath(path: string): Promise<PdfInfo>
getPdfInfoFromResource
- getPdfInfoFromResource(resourceId: string): Promise<PdfInfo>
getSize
- getSize(handle: Handle): Promise<any>
toJpgFile
- toJpgFile(handle: Handle, filePath: string, quality?: number): Promise<void>
-
Parameters
-
-
filePath: string
-
Default value quality: number = 80
toJpgResource
- toJpgResource(handle: Handle, resourceProps: any, quality?: number): Promise<ResourceEntity>
-
Parameters
-
-
resourceProps: any
-
Default value quality: number = 80
toPngFile
- toPngFile(handle: Handle, filePath: string): Promise<void>
toPngResource
- toPngResource(handle: Handle, resourceProps: any): Promise<ResourceEntity>
Provides imaging functions to resize or process images. You create an image using one of the
createFrom
functions, then use the other functions to process the image.Images are associated with a handle which is what will be available to the plugin. Once you are done with an image, free it using the
free()
function.View the example
desktop