Source
Syntax
interface Source {
fileData: Blob;
extraPageData?: ExtraPageData[];
pageWidth: number;
pageHeight: number;
}
Attributes
fileData
The blob of the file to be loaded.
extraPageData
The extra data to be set. Please refer to ExtraPageData
;
pageWidth
The page width of the displayed page. The unit is point.
pageHeight
The page height of the displayed page. The unit is point.
Common page sizes:
Page size | pageWidth (pt) | pageHeight (pt) |
---|---|---|
Letter | 612 | 792 |
Legal | 612 | 1008 |
A4 | 597.6 | 842.4 |
A3 | 842.4 | 1188 |
Remark
Source
can be extended asPdfSource
.