This repository was archived by the owner on Apr 14, 2024. It is now read-only.
File tree 3 files changed +16
-1
lines changed
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ services:
12
12
- ./:/usr/src/app:rw
13
13
14
14
gotenberg :
15
- image : thecodingmachine/gotenberg:6.0.0
15
+ image : thecodingmachine/gotenberg:6.0.1
16
16
container_name : gotenberg
17
17
restart : ' no'
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ abstract class ChromeRequest extends Request implements GotenbergRequestInterfac
16
16
private const MARGIN_LEFT = 'marginLeft ' ;
17
17
private const MARGIN_RIGHT = 'marginRight ' ;
18
18
private const LANDSCAPE = 'landscape ' ;
19
+ private const GOOGLE_CHROME_RPCC_BUFFER_SIZE = 'googleChromeRpccBufferSize ' ;
19
20
20
21
/** @var float|null */
21
22
private $ waitDelay ;
@@ -47,6 +48,9 @@ abstract class ChromeRequest extends Request implements GotenbergRequestInterfac
47
48
/** @var bool */
48
49
private $ landscape ;
49
50
51
+ /** @var int|null */
52
+ private $ googleChromeRpccBufferSize ;
53
+
50
54
/**
51
55
* @return array<string,mixed>
52
56
*/
@@ -74,6 +78,9 @@ public function getFormValues(): array
74
78
if ($ this ->marginRight !== null ) {
75
79
$ values [self ::MARGIN_RIGHT ] = $ this ->marginRight ;
76
80
}
81
+ if ($ this ->googleChromeRpccBufferSize !== null ) {
82
+ $ values [self ::GOOGLE_CHROME_RPCC_BUFFER_SIZE ] = $ this ->googleChromeRpccBufferSize ;
83
+ }
77
84
$ values [self ::LANDSCAPE ] = $ this ->landscape ;
78
85
79
86
return $ values ;
@@ -174,4 +181,9 @@ public function setLandscape(bool $landscape): void
174
181
{
175
182
$ this ->landscape = $ landscape ;
176
183
}
184
+
185
+ public function setGoogleChromeRpccBufferSize (?int $ googleChromeRpccBufferSize ): void
186
+ {
187
+ $ this ->googleChromeRpccBufferSize = $ googleChromeRpccBufferSize ;
188
+ }
177
189
}
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ private function createHTMLRequest(): HTMLRequest
61
61
$ request ->setAssets ($ assets );
62
62
$ request ->setPaperSize (Request::A4 );
63
63
$ request ->setMargins (Request::NO_MARGINS );
64
+ $ request ->setGoogleChromeRpccBufferSize (1048576 );
64
65
65
66
return $ request ;
66
67
}
@@ -80,6 +81,7 @@ private function createURLRequest(): URLRequest
80
81
$ request ->setFooter ($ footer );
81
82
$ request ->setPaperSize (Request::A4 );
82
83
$ request ->setMargins (Request::NO_MARGINS );
84
+ $ request ->setGoogleChromeRpccBufferSize (1048576 );
83
85
84
86
return $ request ;
85
87
}
@@ -111,6 +113,7 @@ public function createMarkdownRequest(): MarkdownRequest
111
113
$ request ->setAssets ($ assets );
112
114
$ request ->setPaperSize (Request::A4 );
113
115
$ request ->setMargins (Request::NO_MARGINS );
116
+ $ request ->setGoogleChromeRpccBufferSize (1048576 );
114
117
115
118
return $ request ;
116
119
}
You can’t perform that action at this time.
0 commit comments