Skip to content

Angular Service for creating thumbnail images from PDF

Notifications You must be signed in to change notification settings

dohyeunglee/pdfjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PdfService

API

ConvertResult

type Progress = number;
type ImageURL = string;
type ConvertResult = [Progress, ImageURL]

CanvasToBlobOption

Check Canvas.toBlob()

type CanvasToBlobOption = {
  mimeType: string;
  qualityArgument: number;
}

convert

convert(
  url: string,
  scale: number, 
  page?: number[],
  option?: CanvasToBlobOption
): Observable<ConvertResult>
url

String from URL.createObjectURL(File)

scale

Scale of thumbnail

page

Specific page numbers to convert. If not given, all pages are converted

option

Option for quality of Canvas.toBlobˇ(). Default value is

{
  mimeType: 'image/png',
  qualityArgument: null
}

About

Angular Service for creating thumbnail images from PDF

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published