How does the document/PDF rendering working. And how hard would it be to extract this…
- User
How does the document/PDF rendering working. And how hard would it be to extract this out as an API I could send my own data to. Assuming that data would be a JSON blob, some CSS, a template, and attachments/images?
Assistant
Based on the repository files provided, I can give a partial analysis of SysReptor's rendering system, though the core rendering implementation files aren't shown in the provided context.
From what I can see:
-
The rendering appears to be implemented as a separate package in
packages/rendering/ -
The system seems to use:
- Vue.js for template handling (evident from Vue imports in utils.ts)
- HTML/CSS for styling
- A template system that can accept JSON data (indicated by
REPORT_TEMPLATEin index.html)
-
- User
Can I use FastAPI instead if it's just a simple API?
Assistant
Yes, FastAPI would be an excellent choice for creating a rendering API service! It's particularly well-suited for this use case because:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.