Its a pdf tool to help you add digital signature. And its version is 1.0.1 So you cant enter any variable, All the variables are hidden eg.
static ImageHight: number = 40;
static ImageWidth: number = 80;
static ImageOpacity: number = 0.55;
static originPDFRotateDegrees:number ;
static ImageRotateDegrees: Rotation;
static cycleInterval: number = 10;
static ImageMarginToBorder: number = 20;
but in future, i will rebuild it. split those const variables, and then, you can use your personal configuration. In a word, this a bad version, i will maintain this project continuously.
now, its version 1.0.2. so i add another tool function to open pdf directly without downloading. so quick :)
🔽
-
static getImageType( base64String:string ) : string{}
-
static bufToFile(buf, filename) {}
-
static getBase64FromFile(f: File, callback: (f: string) => void): void {})
-
static addDigitalSignature(pdfFile: File, imageStringArray: Array) {}
-
static getLocation(location: DigitalSignatureLocation, pdfFile: File) {}
-
static addSingleDigitalSignature( pdfFile: File, imageString: string, location: DigitalSignatureLocation ): Promise {}
-
static viewPDFWithoutDownl(fileContent: string,fileType: string) {}
10/8/2022 some new ideas! maybe i can privade two ways to import the nessary varables, it allows user load their own .ts file or just use common args.
30/11/2022 fuck. i am learning TypeScript. try to abstract the types. wait serval days!