File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
55
6- import type { PdfDocument , PdfEditorObject , PdfEditorSigner } from './types'
6+ import type { PDFElementObject } from '@libresign/pdf-elements'
7+
8+ import type { Coordinates , VisibleElement } from '../../services/visibleElementsService'
9+ import type { IdentifyMethodRecord } from '../../types/index'
10+
11+ export type PdfEditorSignerPlacement = {
12+ elementId ?: VisibleElement [ 'elementId' ]
13+ type ?: VisibleElement [ 'type' ]
14+ signRequestId ?: VisibleElement [ 'signRequestId' ]
15+ documentIndex ?: number
16+ coordinates ?: Coordinates
17+ }
18+
19+ export type PdfEditorSigner = {
20+ signRequestId ?: number | string
21+ displayName ?: string
22+ email ?: string
23+ identifyMethods ?: IdentifyMethodRecord [ ]
24+ readOnly ?: boolean
25+ element ?: PdfEditorSignerPlacement
26+ }
27+
28+ export type PdfEditorObject = PDFElementObject & {
29+ id : string
30+ signer ?: PdfEditorSigner | null
31+ }
32+
33+ export type PdfPage = {
34+ getViewport : ( options : { scale : number } ) => {
35+ width : number
36+ height : number
37+ }
38+ }
39+
40+ export type PdfDocument = {
41+ numPages ?: number
42+ pages ?: Array < Promise < PdfPage > >
43+ allObjects ?: PdfEditorObject [ ] [ ]
44+ }
745
846export type PdfObjectLocation = {
947 docIndex : number
You can’t perform that action at this time.
0 commit comments