You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CCAP-629][CCAP-575] Support for converting documents and images to pdfs (#645)
* [CCAP-629] Support for converting images to pdfs
* [CCAP-629] Support for converting images to pdfs
* [CCAP-629] Support for converting images to pdfs
* [CCAP-629] Support for converting images to pdfs
* [CCAP-629] Support for converting images to pdfs
* [CCAP-629] Support for converting images to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* Bump version to 1.6.8-SNAPSHOT
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-575] Support for converting docs to pdfs
* [CCAP-629] Review cleanup
* [CCAP-629] Review cleanup
* [CCAP-629] Review cleanup
---------
Co-authored-by: CfA Platforms Robot <platforms-robot@codeforamerica.org>
Copy file name to clipboardExpand all lines: README.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1859,6 +1859,40 @@ bucket. This will automatically delete files in your bucket that are older than
1859
1859
permits.
1860
1860
[You can read more about configuring a retention policy in S3 here.](https://docs.aws.amazon.com/AmazonS3/latest/userguide/how-to-set-lifecycle-configuration-intro.html)
1861
1861
1862
+
### File Conversion
1863
+
1864
+
File uploads made through form flow can be converted to PDFs and uploaded in parallel to the original
1865
+
files. Images are converted using OpenPDF and no further dependencies are needed. Office documents are
1866
+
converted using <a href="https://www.libreoffice.org/" target="_blank">LibreOffice</a> and will require
1867
+
installation.
1868
+
1869
+
To enable PDF conversion, set the property to true:
1870
+
1871
+
```yaml
1872
+
form-flow:
1873
+
uploads:
1874
+
file-conversion:
1875
+
convert-to-pdf: true
1876
+
```
1877
+
1878
+
By default, the converted file will retain the original extension as part of the file name. For example,
1879
+
`sample file.doc`will be converted to a new file called `sample file-doc.pdf`
1880
+
1881
+
If you wish to set up a prefix and/or suffix for the converted file name, you can do so using the yaml:
1882
+
1883
+
```yaml
1884
+
form-flow:
1885
+
uploads:
1886
+
file-conversion:
1887
+
convert-to-pdf: true
1888
+
prefix: new-
1889
+
suffix: -converted
1890
+
```
1891
+
1892
+
With the above example, `sample file.doc` will be converted to `new-sample file-doc-converted.pdf`
1893
+
1894
+
Converted documents do not count against the total number of user uploaded files.
0 commit comments