Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Paper 0.1

    Download button

    No screenshots available
    Downloads: 96  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Dougal Matthews | More programs
    MIT/X Consortium Lic... / FREE
    March 18th, 2012, 02:48 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Paper description

    Python PDF Generation for Humans

    Paper is a Python PDF writing package. A simpler, easier way to create PDF's. Still a work in progress.

    Example API Usage

    The following API was development following this principle. At the moment the following example doesn't fully work.

    ::

     from paper import Document, Image, styles

     paper = Document()

     pdf("Hello World", styles=[styles.H1, ])

     # Text by default is treated as paragraph text. pdf("Python PDF is an effort to make writing PDF's much cleaner, simpler and easier.")

     # Lists are by default show up as bullets, but we want a numbered list here. pdf(["Item 1", "Item 2", "Item 3"], styles=[styles.NUMBEREDLIST])

     # Add an image on the right and have text wrap around it. pdf(Image("/path/to/file"), styles=[styles.WRAP, styles.RIGHTALIGN])

     pdf("This text will wrap around the image.")

     paper.save('/output/path.paper')



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    PDF generator | Python library | Python | PDF | generator

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM