@component-hook/pdf-canvas 1.0.5-alpha.4 → 1.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,6 +90,14 @@ export declare interface FabricHookParams {
90
90
 
91
91
  export declare type FabricPointerEvent = TPointerEventInfo<TPointerEvent>;
92
92
 
93
+ export declare function loadFile(file: File, password?: string, id?: string): Promise<{
94
+ pages: number;
95
+ PDFId: string;
96
+ name: string;
97
+ updateDate: number;
98
+ PDFBase64: string;
99
+ } | undefined>;
100
+
93
101
  export declare interface PDF {
94
102
  PDFId: string;
95
103
  name: string;
@@ -135,7 +143,7 @@ export declare function useFabric(params?: FabricHookParams): {
135
143
  updateDate: number;
136
144
  PDFBase64: string;
137
145
  } | undefined>;
138
- specifyPage: ({ page, PDFBase64, scale, password }: SpecifyPageArgs) => Promise<void>;
146
+ specifyPage: (params: SpecifyPageArgs) => Promise<number>;
139
147
  renderImage: ({ url, scale }: RenderImageArgs) => Promise<void>;
140
148
  addFabric: (src: string, options?: TOptions<ImageProps>, offset?: DropOffset) => Promise<void>;
141
149
  addTextFabric: (text: string, options?: TOptions<TextProps>, offset?: DropOffset) => void;