Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-18-2010, 06:43 PM   #1
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
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 get this on any PDF I attempt, whether or not I set the -x -y -v -w options, or use -b with a bbox output from ghostscript, or what-have-you. The error seems to have something to do with metadata, but I wasn't attempting to do anything with metadata.

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.
frabjous is offline   Reply With Quote
Old 10-18-2010, 06:51 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,771
Karma: 22666666
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
kovidgoyal is offline   Reply With Quote
Advert
Old 10-19-2010, 04:00 PM   #3
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
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!
frabjous is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:41 AM.


MobileRead.com is a privately owned, operated and funded community.