Skip to content

Create-PDF engine: render from a structured document#7018

Merged
EthanHealy01 merged 10 commits into
mainfrom
create-engine-fixes
Jul 14, 2026
Merged

Create-PDF engine: render from a structured document#7018
EthanHealy01 merged 10 commits into
mainfrom
create-engine-fixes

Conversation

@EthanHealy01

Copy link
Copy Markdown
Contributor

No description provided.

The create-pdf tool now receives the assembled document as structured fields and builds the HTML from a fixed server-side template, instead of the engine sending pre-rendered HTML. The dispatch endpoint is also gated on the aiEngine flag.
@dosubot dosubot Bot added size:XL This PR changes 500-999 lines ignoring generated files. enhancement New feature or request labels Jul 13, 2026
@stirlingbot stirlingbot Bot added Java Pull requests that update Java code Test Testing-related issues or pull requests engine Issues or pull requests related to the engine and removed enhancement New feature or request labels Jul 13, 2026
@EthanHealy01
EthanHealy01 enabled auto-merge July 13, 2026 13:19
@dosubot dosubot Bot added size:L This PR changes 100-499 lines ignoring generated files. and removed size:XL This PR changes 500-999 lines ignoring generated files. labels Jul 13, 2026
@stirlingbot stirlingbot Bot added the Gradle Pull requests that update Gradle code label Jul 13, 2026
@Ludy87

Ludy87 commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

FYI:
HubSpot/hubspot-immutables#85
HubSpot/algebra#68

:)

@EthanHealy01

Copy link
Copy Markdown
Contributor Author

FYI: HubSpot/hubspot-immutables#85 HubSpot/algebra#68

:)

Wow. Thank you 🙏

@Ludy87

Ludy87 commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

FYI: HubSpot/hubspot-immutables#85 HubSpot/algebra#68
:)

Wow. Thank you 🙏

I will build a module for us so that we are independent of such errors.

@stirlingbot

stirlingbot Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

✅ Backend License Check Passed

All backend dependencies have valid and allowed licenses.

The backend license report has been updated successfully.

@ConnorYoh ConnorYoh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR makes a decision on how we define documents for creation using the AiDocument.java model. This gives us security by design which is great but will make managing images and more complex inline styling harder.

Future followup is to pass document in as the aiDocument and let spring parse is rather than as a string and manually parse it. I think it will require a bit of fettling but will be good in the long run.

@EthanHealy01
EthanHealy01 added this pull request to the merge queue Jul 14, 2026
Merged via the queue into main with commit 0570c4c Jul 14, 2026
48 checks passed
@EthanHealy01
EthanHealy01 deleted the create-engine-fixes branch July 14, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine Issues or pull requests related to the engine Gradle Pull requests that update Gradle code Java Pull requests that update Java code size:L This PR changes 100-499 lines ignoring generated files. Test Testing-related issues or pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants