-
Notifications
You must be signed in to change notification settings - Fork 219
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
[Feature Request] Adding PDF as output #354
Comments
This has been in development for some time. Check #32 and the associated feature branch. I noticed your repo https://github.com/tobiasfalk/KiCAD-FreeCAD-TechDraw-Template-Generator. |
@martinrieder When it comes to coding I would polity decline, since I not only do not really have too much experience with Python and especially not with graphvis (even when the issues I opened in the last view day would sugset otherwise I never used graphviz before that). |
Take a look at demo02 |
@kvid I was thinking of something like #227. The table that is contained in the HTML output of Demo02 could well be implemented in a GV node. @tobiasfalk there are many ways that the frame and title blocks could be drawn. What do you suggest? Only add it for "printable" formats like PDF? I do not consider HTML to be truly printable, though it should be possible to convert it into PDF. |
I would add it to all Formats, since the user may want to use it in Programs like word where imprting a PDF as a page is not possible(theoretically yes but I have tried for weeks and was not able to do it). I do not have the ability to do something for a while(not at home), but could one of you try to import one SVG from the FreeCAD templates as image in the background? |
If I see this correctly, you are drawing this frame amd titleblock internally, wich is cald by the template tag. I would recommend a external template file formate, like svg and maybe even freecad svgs since there a lot of work is already done and for users that use both it reduces work |
@tobiasfalk wrote:
No, the HTML template might also be located at the same folder as any YAML source. In addition, the template might be specified with a relative or absolute path.
I agree, there are different existing template solutions available (including other HTML based templates), but currently, an internal HTML template format is implemented. Other suggestions are welcome, and I encourage you to describe some criteria we should aim for to enable comparing different alternatives. |
Merging two SVG files seems like a simple task. Converting this into PDF can be solved with other tools. I would reverse the process and feed HTML into Graphviz. If you put this into a graph that only contains a single node, you can use it as a tool for SVG conversion. By putting the BOM table into a dedicated node on the WireViz output, it could also assure that this does not overlap with the graph. Positioning and scaling might be an issue though. Do you know if it is possible to predefine a container or an anchor in some SVG template files that could be used for merging? |
We may already have SVG as a vector graphics output, but it still would be nice if PDF would also be available.
The text was updated successfully, but these errors were encountered: