Skip to content

Migrate Survey export to use HexaPDF#13617

Merged
andreslucena merged 13 commits intodevelopfrom
feature/survey-answers-hexa
Nov 15, 2024
Merged

Migrate Survey export to use HexaPDF#13617
andreslucena merged 13 commits intodevelopfrom
feature/survey-answers-hexa

Conversation

@alecslupu
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu commented Nov 7, 2024

🎩 What? Why?

This PR aims to change the syntax of the survey PDF export to use the hexaPDF library, so that we can deprecate and remove wicked_pdf.

📌 Related Issues

Link your PR to an issue

Testing

  1. Create a survey component
  2. Add some answers using multiple users
  3. You should receive a copy of your answers as PDF
  4. Visit the survey admin panel, and choose export as PDF
  5. Visit the survey answers page, and choose individual export of answers
  6. Compare the results with what exists in the nightly ( or what is attached to this PR )

wkhtmltopdf-survey.pdf
hexapdf-survey.pdf

📷 Screenshots

Please add screenshots of the changes you are proposing
Description

♥️ Thank you!

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request does not contain a valid label. Please add one of the following labels: ['type: feature', 'type: change', 'type: fix', 'type: removal', 'target: developer-experience', 'type: internal']

@alecslupu alecslupu force-pushed the feature/survey-answers-hexa branch from eeeb5fe to 34efd20 Compare November 7, 2024 05:25
@alecslupu alecslupu added the type: change PRs that implement a change for an existing feature label Nov 7, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 7, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 8, 2024
@alecslupu alecslupu marked this pull request as ready for review November 8, 2024 14:31
@alecslupu alecslupu marked this pull request as draft November 8, 2024 14:31
github-actions[bot]
github-actions bot previously approved these changes Nov 8, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 8, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 8, 2024
@alecslupu alecslupu changed the title Create HexaPDF survey file Migrate Survey export to use HexaPDF Nov 12, 2024
@alecslupu alecslupu marked this pull request as ready for review November 12, 2024 07:45
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

I tried it out and it worked as expected, congratulations!

For documentation purposes, this is what it looks like before and with this PR:

hexa-survey_user_answers-2024-11-14-60548.pdf
wkhtmltopdf-survey_user_answers-2024-11-14-57717.pdf

Apart from the things that I'm mentioning, can you merge with latest develop? There's a bug with the "Download your data" page that we need to fix too (missing i18n key).

@andreslucena
Copy link
Copy Markdown
Member

hexa-survey_user_answers-2024-11-14-60548.pdf

image

There are two details that we need to fix IMO:

  • The HTML tags in clear (<p>)
  • The font style thing (that I already mentioned, we should use Sans)

github-actions[bot]
github-actions bot previously approved these changes Nov 14, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 14, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 15, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 15, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 15, 2024
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

🎆 🎆

@andreslucena andreslucena merged commit 9df1e80 into develop Nov 15, 2024
@andreslucena andreslucena deleted the feature/survey-answers-hexa branch November 15, 2024 12:39
@aramollis
Copy link
Copy Markdown

Will be backported to 0.28 version this fix? @andreslucena @alecslupu Tx!

@andreslucena
Copy link
Copy Markdown
Member

@aramollis no, this is a type: change so it is not backported. The related fix that was backported was #13616 (using wkhtmltopdf from system packages instead of wkhtmltopdf-binary)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: forms type: change PRs that implement a change for an existing feature

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants