mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 08:46:26 +01:00
Describe your change here
This commit is contained in:
parent
269c330512
commit
a9849c86b0
1 changed files with 4 additions and 1 deletions
|
|
@ -51,7 +51,7 @@
|
|||
# Name : (width, height) in pixels
|
||||
'prs500':(584, 754),
|
||||
# The SONY's LRF renderer (on the PRS500) only uses the first 800x600 block of the image
|
||||
'prs500-landscape': (784, 1200-92)
|
||||
'prs500-landscape': (784, 1012)
|
||||
}
|
||||
|
||||
def extract_comic(path_to_comic_file):
|
||||
|
|
@ -401,6 +401,9 @@ def create_pdf(pages, profile, opts, thumbnail=None):
|
|||
raise RuntimeError('Failed to load reportlab')
|
||||
|
||||
pdf = canvas.Canvas(filename=opts.output, pagesize=(width,height+15))
|
||||
pdf.setAuthor(opts.author)
|
||||
pdf.setTitle(opts.title)
|
||||
|
||||
|
||||
for page in pages:
|
||||
pdf.drawImage(page, x=0,y=0,width=width, height=height)
|
||||
|
|
|
|||
Loading…
Reference in a new issue