diff --git a/examples/demo01.pdf b/examples/demo01.pdf new file mode 100644 index 00000000..b8978ae6 Binary files /dev/null and b/examples/demo01.pdf differ diff --git a/examples/demo02.pdf b/examples/demo02.pdf new file mode 100644 index 00000000..cbd90db4 Binary files /dev/null and b/examples/demo02.pdf differ diff --git a/examples/ex01.pdf b/examples/ex01.pdf new file mode 100644 index 00000000..ec8670de Binary files /dev/null and b/examples/ex01.pdf differ diff --git a/examples/ex02.pdf b/examples/ex02.pdf new file mode 100644 index 00000000..c99cf5d0 Binary files /dev/null and b/examples/ex02.pdf differ diff --git a/examples/ex03.pdf b/examples/ex03.pdf new file mode 100644 index 00000000..2f9195b2 Binary files /dev/null and b/examples/ex03.pdf differ diff --git a/examples/ex04.pdf b/examples/ex04.pdf new file mode 100644 index 00000000..dd4d5fd7 Binary files /dev/null and b/examples/ex04.pdf differ diff --git a/examples/ex05.pdf b/examples/ex05.pdf new file mode 100644 index 00000000..8749d624 Binary files /dev/null and b/examples/ex05.pdf differ diff --git a/examples/ex06.pdf b/examples/ex06.pdf new file mode 100644 index 00000000..8a4feefc Binary files /dev/null and b/examples/ex06.pdf differ diff --git a/examples/ex07.pdf b/examples/ex07.pdf new file mode 100644 index 00000000..bd98b15b Binary files /dev/null and b/examples/ex07.pdf differ diff --git a/examples/ex08.pdf b/examples/ex08.pdf new file mode 100644 index 00000000..09057916 Binary files /dev/null and b/examples/ex08.pdf differ diff --git a/examples/ex09.pdf b/examples/ex09.pdf new file mode 100644 index 00000000..eaa1efdd Binary files /dev/null and b/examples/ex09.pdf differ diff --git a/examples/ex10.pdf b/examples/ex10.pdf new file mode 100644 index 00000000..a19d0436 Binary files /dev/null and b/examples/ex10.pdf differ diff --git a/examples/ex11.pdf b/examples/ex11.pdf new file mode 100644 index 00000000..48f87f5b Binary files /dev/null and b/examples/ex11.pdf differ diff --git a/examples/ex12.pdf b/examples/ex12.pdf new file mode 100644 index 00000000..f9cecf65 Binary files /dev/null and b/examples/ex12.pdf differ diff --git a/examples/ex13.pdf b/examples/ex13.pdf new file mode 100644 index 00000000..5974fe07 Binary files /dev/null and b/examples/ex13.pdf differ diff --git a/examples/ex14.pdf b/examples/ex14.pdf new file mode 100644 index 00000000..a9f47769 Binary files /dev/null and b/examples/ex14.pdf differ diff --git a/src/wireviz/Harness.py b/src/wireviz/Harness.py index 30468a6a..66fb590b 100644 --- a/src/wireviz/Harness.py +++ b/src/wireviz/Harness.py @@ -682,7 +682,7 @@ def output( ).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 @@ def output( 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 diff --git a/src/wireviz/build_examples.py b/src/wireviz/build_examples.py index e54d0f5c..f7a99e9d 100755 --- a/src/wireviz/build_examples.py +++ b/src/wireviz/build_examples.py @@ -36,7 +36,7 @@ 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)) diff --git a/src/wireviz/wv_cli.py b/src/wireviz/wv_cli.py index afb02494..ca061625 100644 --- a/src/wireviz/wv_cli.py +++ b/src/wireviz/wv_cli.py @@ -18,7 +18,7 @@ "g": "gv", "h": "html", "p": "png", - # "P": "pdf", + "P": "pdf", "s": "svg", "t": "tsv", } diff --git a/tutorial/tutorial01.pdf b/tutorial/tutorial01.pdf new file mode 100644 index 00000000..bf4366b9 Binary files /dev/null and b/tutorial/tutorial01.pdf differ diff --git a/tutorial/tutorial02.pdf b/tutorial/tutorial02.pdf new file mode 100644 index 00000000..fdb3a8d4 Binary files /dev/null and b/tutorial/tutorial02.pdf differ diff --git a/tutorial/tutorial03.pdf b/tutorial/tutorial03.pdf new file mode 100644 index 00000000..4ff51c7e Binary files /dev/null and b/tutorial/tutorial03.pdf differ diff --git a/tutorial/tutorial04.pdf b/tutorial/tutorial04.pdf new file mode 100644 index 00000000..6d4dbfd7 Binary files /dev/null and b/tutorial/tutorial04.pdf differ diff --git a/tutorial/tutorial05.pdf b/tutorial/tutorial05.pdf new file mode 100644 index 00000000..ec23375d Binary files /dev/null and b/tutorial/tutorial05.pdf differ diff --git a/tutorial/tutorial06.pdf b/tutorial/tutorial06.pdf new file mode 100644 index 00000000..9eae9130 Binary files /dev/null and b/tutorial/tutorial06.pdf differ diff --git a/tutorial/tutorial07.pdf b/tutorial/tutorial07.pdf new file mode 100644 index 00000000..a492f67a Binary files /dev/null and b/tutorial/tutorial07.pdf differ diff --git a/tutorial/tutorial08.pdf b/tutorial/tutorial08.pdf new file mode 100644 index 00000000..ec6a10af Binary files /dev/null and b/tutorial/tutorial08.pdf differ