26 Commits

Author SHA1 Message Date
tiagosalvado10
b9bcc3c9d2
[MNT-23960] Added new options (pdfFont, pdfFontSize) to textToPdf transformer (#885)
* [MNT-23960] Added options (pdfFont, pdfFontSize) and NotoSans fonts to textToPdf transformer

* [MNT-23960] Added 'MISC_PDFBOX_DEFAULT_FONT' and 'transform.core.misc.pdfbox.defaultFont' configuration to core-aio and misc T-Engines

* [MNT-23960] Added NotoSans fonts to core-aio and misc T-Engine images

* [MNT-23960] Improved logging: added messages, using placeholders

* [MNT-23960] Added DEFAULT_FONT constant (NotoSans-Regular)

* [MNT-23960] Splitted getFont(PDDocument, String) code into 3 methods. Added Javadoc.

* [MNT-23960] Return TransformCheckResult on transformTextAndCheck methods. Added assertion to testUTF8WithBOM test.
2024-02-06 16:26:25 +00:00
mikolajbrzezinski
7c088dc90a
[release] 3.0.1-A1 (#732)
[release] 3.0.1-A1
2023-02-09 16:57:07 +01:00
mikolajbrzezinski
284901159d
ACS-4454 Migrating to GH Actions (#727) 2023-02-09 12:04:27 +01:00
Alan Davis
babe26b0ba
HXENG-64 refactor ATS (#657)
Refactor to clean up packages in the t-model and to introduce a simpler to implement t-engine base.

The new t-engines (tika, imagemagick, libreoffice, pdfrenderer, misc, aio, aspose) and t-router may be used in combination with older components as the API between the content Repo and between components has not changed. As far as possible the same artifacts are created (the -boot projects no longer exist). They may be used with older ACS repo versions.

The main changes to look for are:
* The introduction of TransformEngine and CustomTransformer interfaces to be implemented.
* The removal in t-engines and t-router of the Controller, Application, test template page, Controller tests and application config, as this is all now done by the t-engine base package.
* The t-router now extends the t-engine base, which also reduced the amount of duplicate code.
* The t-engine base provides the test page, which includes drop downs of known transform options. The t-router is able to use pipeline and failover transformers. This was not possible to do previously as the router had no test UI.
* Resources including licenses are automatically included in the all-in-one t-engine, from the individual t-engines. They just need to be added as dependencies in the pom. 
* The ugly code in the all-in-one t-engine and misc t-engine to pick transformers has gone, as they are now just selected by the transformRegistry.
* The way t-engines respond to http or message queue transform requests has been combined (eliminates the similar but different code that existed before).
* The t-engine base now uses InputStream and OutputStream rather than Files by default. As a result it will be simpler to avoid writing content to a temporary location.
* A number of the Tika and Misc CustomTransforms no longer use Files.
* The original t-engine base still exists so customers can continue to create custom t-engines the way they have done previously. the project has just been moved into a folder called deprecated.
* The folder structure has changed. The long "alfresco-transform-..." names have given way to shorter easier to read and type names.
* The t-engine project structure now has a single project rather than two. 
* The previous config values still exist, but there are now a new set for config values for in files with names that don't misleadingly imply they only contain pipeline of routing information. 
* The concept of 'routing' has much less emphasis in class names as the code just uses the transformRegistry. 
* TransformerConfig may now be read as json or yaml. The restrictions about what could be specified in yaml has gone.
* T-engines and t-router may use transform config from files. Previously it was just the t-router.
* The POC code to do with graphs of possible routes has been removed.
* All master branch changes have been merged in.
* The concept of a single transform request which results in multiple responses (e.g. images from a video) has been added to the core processing of requests in the t-engine base.
* Many SonarCloud linter fixes.
2022-09-14 13:40:19 +01:00
alandavis
fb2248c409 ACS-2767 Switch to using [release} rather than [trigger release]
Switch has been made in t-service (ATS) and AIS projects

[skip ci]
2022-04-13 14:29:05 +01:00
Alan Davis
64742a619e
ACS-2718 Streamline ATS t-model/t-core (#586)
* Merge alfresco-transform-model project into alfresco-transform-core - WITHOUT the git history
* Simplify Maven dependencies and build project
* Unify release process of combined t-model and t-core
2022-04-05 17:36:43 +01:00
evasques
f2c10d3fda
ATS-985 - Upgrade LibreOffice to 7.2.5 (#568)
* Upgrade LO to 7.2.5

* Update dockerfiles to use version 7.2.5 of Libreoffice uplodaded to nexus

* Correct formatting of Dockerfiles
2022-03-16 12:46:01 +00:00
Tom Page
c28b65fba5
ACS-2499 Delete company release build stage. (#524)
* ACS-2499 Delete company release build stage.

This never uploaded any software, and so was not particularly useful. The software and license report should be
uploaded to S3 as part of the transform-service build.

Also skip uploading anything to staging bucket.
2022-02-02 11:13:14 +00:00
Tom Page
adcca8ceb6
ACS-2382 Remove outdated references to Whitesource. 2022-01-06 10:54:38 +00:00
Alexandru-Eusebiu Epure
0aa6253150
ATS-935: Upgrade LibreOffice to 7.0.6 (from 6.3.5) (#418)
* MNT-22433 : LO never returns to AIO for one file
   upgrade LibreOffice to 7.0.6 (from 6.3.5)
   Remove test and test resource for .msg type
2021-06-11 11:23:10 +03:00
David Edwards
03d08d0c9e
MNT-22082 transformation of pdf to text hang (#367)
A new constructor has been added to the TikaController to provide
the new spring config.
The creation of the TikaExecutor has been moved to "singleton pattern" as
the injection of the @Value happens after the instantiation of the
TikaJavaExecutor and does not pass the value correctly. The
instantiation is now done once, on the first transform request.
Param has been added to the AIO beans.
2021-04-13 09:59:42 +01:00
Epure Alexandru-Eusebiu
81b2b8a231 MNT-21869: libreoffice timeout set too high [trigger release]
Change SERVER.PORT to SERVER_PORT for consistency
2020-09-25 11:23:20 +03:00
Alexandru-Eusebiu Epure
32e48b413b
MNT-21869 libreoffice timeout set too high (#295)
* MNT-21869 libreoffice timeout set too high
   Reduce default value of timeout for libreoffice from 2000min to 20min
   Add option to configure libreoffice timeout externally.
   Enable to configure externally the port on which the app starts.
  Add external-engine-configuration.md
2020-09-25 10:54:06 +03:00
montgolfiere
12a6b35dcd
Minor updates to README.md 2020-04-20 21:20:24 +01:00
Cezar.Leahu
d863b63e4e ATS-628: Update release process 2019-12-05 17:44:16 +02:00
Cezar.Leahu
235fa32558 REPO-4639 : Minor changes in engine_config.md 2019-09-16 13:08:47 +03:00
Epure Alexandru-Eusebiu
1e85acd246 REPO-4639 : Create engine_config.md 2019-09-16 13:08:47 +03:00
DenisGabriela
a9218b16d3
ATS-421 : Create Travis build for "alfresco-transform-core" (#21)
* ATS-421 : ATS-400: Create Travis build for "alfresco-transform-core"
   - rename mvn profile from 'enterpriseDocker' to 'local'
   - add config to publish docker image on both Quay and Docker
   - remove unused 'master' profile - similar to ATS, publish images only from master branch and on Release
   - update <distributionManagement> to publish artefacts to Nexus public (rather than Enterprise Releases)
   - add travis build configs
   - include SP branches to travis build
  - add documentation on build&release process
2019-05-15 13:30:23 +03:00
DenisGabriela
bef28f3ca5 ATS-28 : Design: Initial Draft API contract to get / list registered transforms
- removed transformer parameter and 404 response
2018-12-21 11:31:38 +02:00
DenisGabriela
db91ef32c4 ATS-28 : Design: Initial Draft API contract to get / list registered transforms 2018-12-19 10:20:31 +02:00
DenisGabriela
55a1b7d2f9 ATS-28 : Design: Initial Draft API contract to get / list registered transforms 2018-12-18 17:35:33 +02:00
DenisGabriela
56e8860477 ATS-28 : Design: Initial Draft API contract to get / list registered transforms
- added api spec to list transform options for a transformer
2018-12-18 16:51:34 +02:00
Cezar Leahu
34bfc8b60f ATS-116 : Disable k8s Liveness probes with Transformations 2018-09-25 14:45:24 +01:00
janv
a93989e045 ATS-17: Add private OpenAPI spec for Alfresco Transform Engines API
- updates based on initial review comments, including
-- fix typo (s/successful/failed)
-- add example error status code
-- add link to Alfresco SFS API spec
- also slight re-wording of /transform description
2018-09-11 11:31:46 +01:00
janv
dc12a2743a ATS-17: Add private OpenAPI spec for Alfresco Transform Engines API
- first draft for /transform REST API (including basic T-Request / T-Reply model definitions)
2018-09-03 15:39:11 +01:00
Alan Davis
7de82a3541 Feature/repo 3505 probes 2018-05-23 15:36:56 +01:00