![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Is "pdfmanipulate crop" broken?
I'm trying to use the pdfmanipulate crop command line program that comes with calibre to crop some PDFs. I've done this regularly in the past with older versions of calibre, but since updating... (I'm on v0.7.24 now, on Arch Linux x86_64), well, I always get an error.
It spits out the following: Code:
$ pdfmanipulate crop sample.pdf Traceback (most recent call last): File "/usr/bin/pdfmanipulate", line 19, in <module> sys.exit(main()) File "/usr/lib/calibre/calibre/ebooks/pdf/manipulate/cli.py", line 61, in main return COMMANDS[command].main(args, command) File "/usr/lib/calibre/calibre/ebooks/pdf/manipulate/crop.py", line 145, in main crop_pdf(args[0], opts, mi) File "/usr/lib/calibre/calibre/ebooks/pdf/manipulate/crop.py", line 105, in crop_pdf output_pdf = PdfFileWriter(title=title,author=author) TypeError: __init__() got an unexpected keyword argument 'title' I can start a ticket about it of course, but wanted to see if I was the only one having the problem before whining to the devs about it. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,128
Karma: 27110892
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
you're using a distro provided version of pypdf instead of the calibre bundled version. the bundled version has patches needed for pdfmanipulate
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Thanks a lot Kovid. I installed using the python command listed for unsupported distros on your website, and it works now. It's disappointing to have to bypass my package manager, but I guess that's something I'll have to bring up with the package maintainer.
Thanks again! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Yep. It's official. Sony Reader has "ruined" books for me. A final "review." | WilliamG | Sony Reader | 48 | 01-14-2011 03:49 AM |
"The Half Broken Crown" on Kindle - A Fantasy Novel | ray-reid | Self-Promotions by Authors and Publishers | 6 | 04-30-2010 07:11 AM |
"Zeit-Odyssee"-Trilogie droht das "dunkle Turm"-Schicksal | ThR | E-Books | 4 | 02-10-2010 05:18 AM |
Download from Amazon to PC "broken"?... | hamah | Amazon Kindle | 0 | 12-20-2009 01:47 AM |