This commit is contained in:
parent
78b33639c5
commit
9e4132af0f
23
index.d.ts
vendored
23
index.d.ts
vendored
@ -481,22 +481,39 @@ interface PdfPackage {
|
||||
* process existing pdf data
|
||||
*
|
||||
* @param command pdfcpu command
|
||||
* @param pdfData []byte of pdf data
|
||||
* @param pdfData []byte of pdf data, multiple []byte as array of pdf's to merge or object with description to create
|
||||
* @param options options
|
||||
*
|
||||
* @returns []byte of new pdf data
|
||||
*/
|
||||
cpu(
|
||||
command: "watermark" | "stamp" | "merge",
|
||||
command: "watermark" | "stamp" | "merge" | "rotate" | "create",
|
||||
pdfData: any | any[],
|
||||
options?: {
|
||||
pages?: (string | number)[]
|
||||
description?: {
|
||||
[key: string]: number | string
|
||||
fontname?: string
|
||||
points?: number
|
||||
rtl?: boolean
|
||||
position?: "full" | "tl" | "tc" | "tr" | "l" | "c" | "r" | "bl" | "bc" | "br"
|
||||
offset?: string
|
||||
scalefactor?: number
|
||||
aligntext?: "left" | "center" | "right" | "justified"
|
||||
strokecolor?: string
|
||||
fillcolor?: string
|
||||
backgroundcolor?: string
|
||||
rotation?: number
|
||||
diagonal?: 1|2
|
||||
opacity?: number
|
||||
rendermode?: 0|1|2
|
||||
margins?: number | string
|
||||
border?: number | string
|
||||
url?: string
|
||||
}
|
||||
mode?: "text" | "image" | "pdf"
|
||||
bytes?: any // []byte of watermark image
|
||||
file?: string // file for pdf watermark
|
||||
rotation?: number
|
||||
}
|
||||
): any
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user