Skip to content
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

Charts #483

Open
lukewegryn opened this issue Jul 12, 2023 · 1 comment
Open

Charts #483

lukewegryn opened this issue Jul 12, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@lukewegryn
Copy link

Is your feature request related to a problem? Please describe.
It would be very convenient to be able to generate charts in the Word document from PwnDoc using normal PwnDoc templating. I've attempted this by inserting the placeholders into the attached Excel sheet when I edit the PwnDoc .docx template, but the values are not inserted when the report is generated (see screenshot).

It looks like this was requested a while ago in #14, but that issue was closed. Was a solution ever discovered?

Describe the solution you'd like
Generate charts directly from PwnDoc into the Word template.

Describe alternatives you've considered
Two alternatives I've considered are to:

  1. Create the chart in a temporary Word Docx (or another tool), then save it as an image, then insert it directly into PwnDoc before generating the report.
  2. Create the template with a placeholder chart in it, and then manually edit the data after PwnDoc generates the report in Word.

However, both of these options are more complicated/redundant than being able to insert the data from PwnDoc directly into a chart in Word.

Additional context
I've attached some images showing my attempts to use templating within the linked Excel file and the result of the chart being empty when generated.

Screenshot 2023-07-12 at 8 05 21 AM

Screenshot 2023-07-12 at 8 05 32 AM

@lukewegryn lukewegryn added the enhancement New feature or request label Jul 12, 2023
@yeln4ts
Copy link
Contributor

yeln4ts commented Jul 24, 2023

No solution was found at this moment.
The 2 directions that could be worked on would be:

  • a chart implementation in PwnDoc interface and conversion to an image to insert in the docx
  • or a full docxtemplater chart module that would be usable directly in the docx template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants