Produce WORD and PDF files with great ease, examples provided on import
Project description
With Mariano Doc, its easy to insert lines of texts into a WORD or PDF file. Allows for different color font color and sizes. For Word files only there is options for Headings sizes and listing items with bullets.However as yet, there is no support for tablesExample code is :Import RainbowDoc as rddoc = rd.RainbowDocument()doc.insert_line("Sample BOLD text line 1", font_bold=True)doc.insert_line("sample text line ", color_category=2)doc.insert_line("sample text line ", color_category=3)doc.linebreak()doc.insert_line("sample large font", font_size=rd.FontSize.LARGE)doc.pagebreak()doc.insert_line("Make this line a heading in MS Word of size 2,", msword_heading=2)doc.insert_line("last line of sample text")..doc.createPDFFile(filename="some_file.pdf") doc.createWordFile(filename="some_file.docx") ..or to specify font colors for color categories (makes lines with color_category==2, blue, and lines with color_category == 3, green.Supports 7 color categories) :..doc.createPDFFile(filename ="some_file1.pdf", colorcat2=(0,0,250),colorcat3=(0,250,0) )doc.createWordFile(filename="some_file2.docx", colorcat2=(0,0,250),colorcat3=(0,250,0) )doc.createWordFile(filename="some_file3.docx", colorcat2=rd.FontColor.BLUE,colorcat3=rd.FontColor.GREEN )..For further examples:import marianodoc as mddoc=md.getDoc()doc.show_example1()doc.show_example2()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for marianodoc-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34bf32b50b7e9b2b8dbb57c3addb83d49ce4b0a8f7a4e21a8868fdf3ce0fe02c |
|
MD5 | a5030aa59c6f7c6c69eae7391e17bc63 |
|
BLAKE2b-256 | 1aa26088fb33c4cb43e508002545dddadd30bb5e1fd42a46f0efdf23954eeafb |