Merge 1d2ffb59b6332b494ab1dbabf8c0f2e3805e8e36 into 7cf9244af17e644bd15f69198b0acf07445d2cb4

This commit is contained in:
Tobias Falk 2025-01-30 14:01:51 +01:00 committed by GitHub
commit f5717c7709
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
27 changed files with 7 additions and 7 deletions

BIN
examples/demo01.pdf Normal file

Binary file not shown.

BIN
examples/demo02.pdf Normal file

Binary file not shown.

BIN
examples/ex01.pdf Normal file

Binary file not shown.

BIN
examples/ex02.pdf Normal file

Binary file not shown.

BIN
examples/ex03.pdf Normal file

Binary file not shown.

BIN
examples/ex04.pdf Normal file

Binary file not shown.

BIN
examples/ex05.pdf Normal file

Binary file not shown.

BIN
examples/ex06.pdf Normal file

Binary file not shown.

BIN
examples/ex07.pdf Normal file

Binary file not shown.

BIN
examples/ex08.pdf Normal file

Binary file not shown.

BIN
examples/ex09.pdf Normal file

Binary file not shown.

BIN
examples/ex10.pdf Normal file

Binary file not shown.

BIN
examples/ex11.pdf Normal file

Binary file not shown.

BIN
examples/ex12.pdf Normal file

Binary file not shown.

BIN
examples/ex13.pdf Normal file

Binary file not shown.

BIN
examples/ex14.pdf Normal file

Binary file not shown.

View File

@ -682,7 +682,7 @@ class Harness:
).exists() # if SVG already exists, do not delete later
# graphical output
for f in fmt:
if f in ("png", "svg", "html"):
if f in ("png", "svg", "html", "pdf"):
if f == "html": # if HTML format is specified,
f = "svg" # generate SVG for embedding into HTML
# SVG file will be renamed/deleted later
@ -707,9 +707,9 @@ class Harness:
if "html" in fmt:
generate_html_output(filename, bomlist, self.metadata, self.options)
# PDF output
if "pdf" in fmt:
# TODO: implement PDF output
print("PDF output is not yet supported")
#if "pdf" in fmt:
# # TODO: implement PDF output
# print("PDF output is not yet supported")
# delete SVG if not needed
if "html" in fmt and not "svg" in fmt:
# SVG file was just needed to generate HTML

View File

@ -36,7 +36,7 @@ groups = {
input_extensions = [".yml"]
extensions_not_containing_graphviz_output = [".gv", ".bom.tsv"]
extensions_containing_graphviz_output = [".png", ".svg", ".html"]
extensions_containing_graphviz_output = [".png", ".svg", ".html", ".pdf"]
generated_extensions = (
extensions_not_containing_graphviz_output + extensions_containing_graphviz_output
)
@ -64,7 +64,7 @@ def build_generated(groupkeys):
# collect and iterate input YAML files
for yaml_file in collect_filenames("Building", key, input_extensions):
print(f' "{yaml_file}"')
wireviz.parse(yaml_file, output_formats=("gv", "html", "png", "svg", "tsv"))
wireviz.parse(yaml_file, output_formats=("gv", "html", "png", "svg", "tsv", "pdf"))
if build_readme:
i = "".join(filter(str.isdigit, yaml_file.stem))

View File

@ -18,7 +18,7 @@ format_codes = {
"g": "gv",
"h": "html",
"p": "png",
# "P": "pdf",
"P": "pdf",
"s": "svg",
"t": "tsv",
}

BIN
tutorial/tutorial01.pdf Normal file

Binary file not shown.

BIN
tutorial/tutorial02.pdf Normal file

Binary file not shown.

BIN
tutorial/tutorial03.pdf Normal file

Binary file not shown.

BIN
tutorial/tutorial04.pdf Normal file

Binary file not shown.

BIN
tutorial/tutorial05.pdf Normal file

Binary file not shown.

BIN
tutorial/tutorial06.pdf Normal file

Binary file not shown.

BIN
tutorial/tutorial07.pdf Normal file

Binary file not shown.

BIN
tutorial/tutorial08.pdf Normal file

Binary file not shown.