Skip to content

Commit

Permalink
feat(route): add warning about writing metadata & PDF/A compliance, a…
Browse files Browse the repository at this point in the history
…nd emphasize the compresse feature of the LibreOffice route
  • Loading branch information
gulien committed Sep 13, 2024
1 parent 90552cf commit e55b1c4
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions docs/routes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,12 @@ list of available metadata.

:::

:::caution

Writing metadata may compromise PDF/A compliance.

:::

<Tabs
defaultValue="curl"
values={[
Expand Down Expand Up @@ -977,6 +983,13 @@ The next route leverage the capabilities of LibreOffice to effectively transform

Checkout the [LibreOffice module configuration](configuration#libreoffice) to tailor the LibreOffice behavior to your needs.

:::tip

This route mainly targets Office documents, but you can also use it to manipulate PDFs, for instance by compressing
images.

:::

### Office documents into PDFs <span class="badge badge--secondary">route</span>

This *multipart/form-data* route convert one or more Office documents into PDF.
Expand Down Expand Up @@ -1274,7 +1287,7 @@ curl \
</Tabs>


### Images {#images-libreoffice}
### Compress {#compress-libreoffice}

The route accepts the following form fields:

Expand All @@ -1300,7 +1313,7 @@ curl \
--form losslessImageCompression=false \
--form quality=50 \
--form reduceImageResolution=true \
--form maxImageResolution=150 \
--form maxImageResolution=75 \
-o my.pdf
```

Expand Down Expand Up @@ -1391,6 +1404,12 @@ list of available metadata.

:::

:::caution

Writing metadata may compromise PDF/A compliance.

:::

<Tabs
defaultValue="curl"
values={[
Expand Down Expand Up @@ -1643,6 +1662,12 @@ list of available metadata.

:::

:::caution

Writing metadata may compromise PDF/A compliance.

:::

<Tabs
defaultValue="curl"
values={[
Expand Down

0 comments on commit e55b1c4

Please sign in to comment.