fixing typo

This commit is contained in:
Julien Neuhart
2019-12-10 15:25:56 +01:00
parent 5b8121516f
commit 099079b962
3 changed files with 8 additions and 8 deletions

View File

@@ -343,8 +343,8 @@ use TheCodingMachine\Gotenberg\Request;
$client = new Client('http://localhost:3000', new \Http\Adapter\Guzzle6\Client()); $client = new Client('http://localhost:3000', new \Http\Adapter\Guzzle6\Client());
$index = DocumentFactory::makeFromPath('index.html', '/path/to/file'); $index = DocumentFactory::makeFromPath('index.html', '/path/to/file');
$request = new HTMLRequest($index); $request = new HTMLRequest($index);
$request->setPageRanges("1-3,5"); $request->setPageRanges('1-3,5');
$dest = "result.pdf"; $dest = 'result.pdf';
$client->store($request, $dest); $client->store($request, $dest);
``` ```

View File

@@ -161,7 +161,7 @@ $files = [
DocumentFactory::makeFromPath('document.docx', '/path/to/file'), DocumentFactory::makeFromPath('document.docx', '/path/to/file'),
]; ];
$request = new OfficeRequest($files); $request = new OfficeRequest($files);
$request->setPageRanges("1-3"); $request->setPageRanges('1-3');
$dest = "result.pdf"; $dest = 'result.pdf';
$client->store($request, $dest); $client->store($request, $dest);
``` ```

View File

@@ -787,8 +787,8 @@ use TheCodingMachine\Gotenberg\Request;
$client = new Client('http://localhost:3000', new \Http\Adapter\Guzzle6\Client()); $client = new Client('http://localhost:3000', new \Http\Adapter\Guzzle6\Client());
$index = DocumentFactory::makeFromPath('index.html', '/path/to/file'); $index = DocumentFactory::makeFromPath('index.html', '/path/to/file');
$request = new HTMLRequest($index); $request = new HTMLRequest($index);
$request->setPageRanges("1-3,5"); $request->setPageRanges('1-3,5');
$dest = "result.pdf"; $dest = 'result.pdf';
$client->store($request, $dest); $client->store($request, $dest);
</pre> </pre>
@@ -1288,8 +1288,8 @@ $files = [
DocumentFactory::makeFromPath(&#39;document.docx&#39;, &#39;/path/to/file&#39;), DocumentFactory::makeFromPath(&#39;document.docx&#39;, &#39;/path/to/file&#39;),
]; ];
$request = new OfficeRequest($files); $request = new OfficeRequest($files);
$request-&gt;setPageRanges(&#34;1-3&#34;); $request-&gt;setPageRanges(&#39;1-3&#39;);
$dest = &#34;result.pdf&#34;; $dest = &#39;result.pdf&#39;;
$client-&gt;store($request, $dest); $client-&gt;store($request, $dest);
</pre> </pre>