Skip to main content

Produce WORD and PDF files with great ease

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_examples()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

marianodoc-1.0.5-py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page