Skip to content

ramchale/pdf-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Maker Build Status

A python library for creating PDFs

Goals are to keep it simple to use and make it possible to create PDF/A compliant PDFs

Note: This is a very early development version missing some core functionality

Contributions welcome

Basic Example

from pdf_maker.pdf import Document, Page
 
document = Document()
 
page = Page(document)
page.add_text('This is some text')
 
with open('Test.pdf', 'wb') as f:
    f.write(bytes(document))

Longer Example

from pdf_maker.pdf import Document, Page, PageSize
document = Document()
document.resolution = 72
document.page_size = PageSize.A3.value
 
page = Page(document)
page.add_text('This is some text')
page.add_text('As is this', font_name='Vivian', font_size=30, position=(100, 100))
 
with open('Test.pdf', 'wb') as f:
    f.write(bytes(document))

Releases

No releases published

Packages

No packages published

Languages