From ae140a0b61f764f4c3a25aec7a9546288dbc3330 Mon Sep 17 00:00:00 2001 From: Steve Springett Date: Wed, 18 Oct 2023 22:59:25 -0500 Subject: [PATCH] Migrating from eps to emf for embedded vectors as Word has removed support for eps. --- generate-document.sh | 4 ++-- templates/pandoc-svg.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generate-document.sh b/generate-document.sh index eddcba0..223179d 100755 --- a/generate-document.sh +++ b/generate-document.sh @@ -38,8 +38,8 @@ generate_docx() { --toc-depth=2 \ -t docx \ -o "../OWASP_CycloneDX-$BOMTYPE-Guide-SNAPSHOT-$LANG.docx" *.md - echo -n "\nRemoving temporary eps files...\n" - find ../.. -type f -name '*.eps' -print -delete + echo -n "\nRemoving temporary emf files...\n" + find ../.. -type f -name '*.emf' -print -delete } generate_pdf() { diff --git a/templates/pandoc-svg.py b/templates/pandoc-svg.py index e9cf44d..1980ba1 100644 --- a/templates/pandoc-svg.py +++ b/templates/pandoc-svg.py @@ -15,7 +15,7 @@ fmt_to_option = { #use PNG because EMF and WMF break transparency #"docx": ("--export-type=png", "png"), - "docx": ("--export-type=eps", "eps") + "docx": ("--export-type=emf", "emf") }