Skip to content

Commit 20fef86

Browse files
committed
Bumped v0.16.2
Signed-off-by: Vishal Rana <[email protected]>
1 parent 298b946 commit 20fef86

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pdf.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ type (
2222
}
2323

2424
PDFCompressRequest struct {
25-
File string
26-
Quality int
27-
DPI int
25+
File string
2826
}
2927

3028
PDFCompressResponse struct {
@@ -37,10 +35,6 @@ func (c *Client) PDFCompress(req *PDFCompressRequest) (res *PDFCompressResponse,
3735
res = new(PDFCompressResponse)
3836
_, e := c.resty.R().
3937
SetFile("file", req.File).
40-
SetFormData(map[string]string{
41-
"quality": strconv.Itoa(req.Quality),
42-
"dpi": strconv.Itoa(req.DPI),
43-
}).
4438
SetResult(res).
4539
SetError(err).
4640
Post("/pdf/compress")

0 commit comments

Comments
 (0)