-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template-based PDF generation via API #3711
Comments
Would be good to evaluate together with Collabora if this could just be done by extending the convert to endpoint they have, as this would also allow doing conversions to various file types right away https://www.collaboraoffice.com/document-conversion/ |
Has there been some discussions on how templates are defined? I assume they'd just be another Nextcloud file so a file ID is probably best for this one? |
Could also be the same backend mechanism as for https://github.com/nextcloud-gmbh/office-team/issues/51 |
Not specified more closely, my assumption was to use the existing mechanism. If that works with file id, file id it is. |
Basic implementation idea:
The service can then be reused for https://github.com/nextcloud-gmbh/office-team/issues/51 |
For reference the early draft from Collabora: If you want to experiment early, we expect the API would look like this: 1) Extraction
Note that all of id/tag/alias is optional to allow working with existing 2) Filling a template
This always allows referring to content controls by index; if you have a |
Is your feature request related to a problem? Please describe.
Through an API endpoint, it shall be possible to create a PDF document based on a template with placeholders.
Describe the solution you'd like
An OCS endpoint accepts
The app will on-the-fly create a new document, do the replacements, and store it as a PDF document.
Additional context
This is required for the upcoming workflow engine efforts.
The text was updated successfully, but these errors were encountered: