Generowanie PDF z rozpoznawaniem tabel.Z WordTemplateService
Analogicznie można też użyć wordTemplateService.generateForActivity, aby generować z kontekstu zadania. Wygenerowany pdf można podłączyć do procesu i archiwum za pomocą 'WordTemplateUtil'.
Jeśli po wstawieniu dokumentu potrzebne jest ustawienie wartości indeksów lub ustawienie opisu dokumentu to wystarczy dla tego celu dla danej klasy dokumentów ustawić w archiwum odpowiednią akcję. W tym przypadku akcję ze źródłem akcji 'Dodanie nowego dokumentu z poziomu procesu' i typem akcji 'Przepisanie indeksów z procesu do dokumentów' lub 'Uruchomienie skryptu'. Więcej szczegółów można znaleźć tu. Bezpośrednio z PrepeareDoc
Przykład uruchomienia :
Można używać parametrów documentDescription, documentIndices i pageNumbers. Opis parametrów jest aktualny w dokumentacji. Generowanie PDF bez rozpoznawania tabel. Ten sposób wymaga jawnego podania informacji o użytych w szablonie tabelach, nie potrafi rozpoznać czy poszczególne tabele są statyczne czy dynamiczne.
Przykład uruchomienia :
W 'mOptionalParameters' wymagany jest parametr 'whichTables', pozostałe parametry są opcjonalne.
|
PDF generation with table recognition WordTemplateService
Similarly, you can also use wordTemplateService.generateForActivity to generate from a task context. There are also variants to both wordTemplateService.generateForProcess and wordTemplateService.generateForProcess, to which you can attach a map with additional data to be taken for generation outside the process/task context. The generated pdf can be connected to the process and archive using 'WordTemplateUtil'.
If, after inserting a document, it is necessary to set the index values or set the document description, then it is enough to set an appropriate action in the archive for this purpose for a given document class. In this case, an action with action source 'Add new document from process level' and action type 'Rewrite indexes from process to documents' or 'Run script'. More details can be found here. Directly from PrepeareDoc
Przykład uruchomienia :
You can use the parameters documentDescription, documentIndices and pageNumbers. The description of the parameters is up to date in the documentation. PDF generation without table recognition This way requires explicit information about the tables used in the template, it can not recognize whether the individual tables are static or dynamic. A dynamic table is one where the number of records is not known and can be different each time.
Example:
In 'mOptionalParameters' the parameter 'whichTables' is required, the other parameters are optional. The description of the parameters is current in the documentation.
|