Skip to content

Commit

Permalink
fix: some metadata examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gulien committed Mar 23, 2024
1 parent 66afd63 commit b7edaa0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ You may set the metadata to write with:

```php
use Gotenberg\Gotenberg;
use Gotenberg\Stream;

$request = Gotenberg::libreOffice($apiUrl)
->metadata(['Producer' => 'Gotenberg'])
Expand Down Expand Up @@ -849,6 +850,21 @@ $request = Gotenberg::pdfEngines($apiUrl)
);
```

You may also set the metadata to write with:

```php
use Gotenberg\Gotenberg;
use Gotenberg\Stream;

$request = Gotenberg::pdfEngines($apiUrl)
->metadata(['Producer' => 'Gotenberg'])
->merge(
Stream::path('/path/to/my.pdf'),
Stream::path('/path/to/my2.pdf'),
Stream::path('/path/to/my3.pdf')
);
```

#### Convert to a specific PDF format

See https://gotenberg.dev/docs/routes#convert-into-pdfa-route.
Expand Down

0 comments on commit b7edaa0

Please sign in to comment.