type Progress = number;
type ImageURL = string;
type ConvertResult = [Progress, ImageURL]
Check Canvas.toBlob()
type CanvasToBlobOption = {
mimeType: string;
qualityArgument: number;
}
convert(
url: string,
scale: number,
page?: number[],
option?: CanvasToBlobOption
): Observable<ConvertResult>
String from URL.createObjectURL(File)
Scale of thumbnail
Specific page numbers to convert. If not given, all pages are converted
Option for quality of Canvas.toBlobˇ()
. Default value is
{
mimeType: 'image/png',
qualityArgument: null
}