File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 11import numpy as np
22import pandas as pd
3+ import aspose .words as aw
34
45
56path = "filedownloads?parentAlias=ntnu"
2122
2223print ("generated html line: " , ret )
2324
24- with open ("test.md" , "w" ) as f :
25- f .write (ret )
25+ # with open("test.html", "w") as f:
26+ # f.write(ret)
27+
28+ # create blank document
29+ doc = aw .Document ()
30+
31+ # Use a document builder to add content to the document
32+ builder = aw .DocumentBuilder (doc )
33+
34+ # Write a new paragraph in the document with the text generated above into the file
35+ builder .writeln (ret )
36+
37+ # Save the document in DOCX format. Save format is automatically determined from the file extension.
38+ doc .save ("test.svg" )
Original file line number Diff line number Diff line change 1+ < a href ="https://doi.org/10.18710/TLA01U "> < img src ="https://img.shields.io/badge/DataverseNO%20downloads-289-orange "> </ a >
You can’t perform that action at this time.
0 commit comments