-
Notifications
You must be signed in to change notification settings - Fork 8
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
Export vector image to pdf and/or svg in a format that can be read by Adobe Illustrator #59
Comments
We don't need html export until we actual have features that need html display. Not an easy way to screenshot just the graph to jpg. CAN use a print function to print just the graph (whatever is in the bounding box) or print to paper. Going to create a new issue for printing to enable the last option. #111 |
As per the reviewer comment on #271 we will
|
Reviewer 1 comment (#278): "As it does not accept a standard input file type, the output of any other network analysis package requires conversion in to the matrix format required here. Similarly, the tool provides no export function (the option in the File menu remained stubbornly greyed out) and so I can’t take a network from GRNsight and utilise it elsewhere. I also can’t use GRNsight to convert the GRNmap format to something I might like to use elsewhere. The authors refer to future features coming in version 2 (lines 323-329). I encourage them to consider implementing at least one standard filetype for displaying graph data within their tool. Be it sif, graphml or even gml, it would significantly increase the utility of the tool as it currently exists." We need to look into import/export of adjacency matrix in sif, graphml, or gml format. |
#791 should address this, at least for saving the graph in the PNG format |
PDF is squeezed. SVG is still missing edges and labels are shifted to left. |
Quick beta notes:
|
Re: SVG manipulation (to eliminate extraneous elements not needed in the export)
|
I have set inline styles, and the file is exporting with some of the styles. However, a couple of problems are happening:
|
Quick notes on these bullets:
|
I have figured out the marker problem, and am doing a deep copy. However, regarding the invisible stroke of the paths in Illustrator, even changing the |
There may be lingering issues with Illustrator SVG support, as indicated here: Another alternative is PDF but this also does not seem to be supported. Third alternative is to export directly as "native" .ai format. |
^^^^ Addendum: PDF export to be made vector-based rather than image-based. |
after, further work and research, it doesn't seem to be possible to create a layered PDF. However, I am working to add the SVG directly to the PDF, but the jsPDF library keeps throwing errors. I believe that it is an error with them, but I will keep trying. |
May be necessary now to look at other libraries. Quick Google search reveals pdfkit,, svg-to-pdfkit, and svgexport, to name the top hits. It might be useful to look for specific mentions of Adobe Illustrator since that is our driving use case. |
This came up again in the question/answer period after my talk at BOSC 2020. |
#59 Improve current export images (png and pdf)
PR #1141 is merged, requesting for review |
This main issue can likely be closed, but there is one persistent issue remaining that maybe can get its own issue number. png and PDF export look fine (I'm not sure what the original problem was, actually). When svg export is opened in a browser (Firefox), it looks fine. However, when opening the svg export in Adobe Illustrator, it is messed up. One of the motivations for having svg export would be to open it in Illustrator as a vector graphic that can be further manipulated. The PDF export does not achieve this because the graphic is just rendered as a bitmapped image. |
Changed the name of the issue to better reflect the remaining open items. Either we need to export a PDF that has a vector graphic or an svg that can be opened by Adobe Illustrator. |
We want the ability to export the graph image to a file in three formats: jpg, pdf, html. For the html version, it would be something similar to the way GenMAPP does it.
The text was updated successfully, but these errors were encountered: