View Single Post
Old 01-02-2011, 10:28 AM   #5
kleinfelter
Junior Member
kleinfelter began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2011
Device: Kindle
Work-around

Since I'm using Windows, I had to read up on how to use CALIBRE_DEVELOP_FROM before I could work around it. For other Calibre newbies (and those who just want to *use* Calibre), here's how to work-around this issue:
  1. Download calibre source from http://sourceforge.net/projects/cali...ar.gz/download
  2. Unpack the file (using a tool such as 7-zip).
  3. Move the "src" folder from where you unpacked the source into "C:\Program Files\Calibre" (assuming that you installed Calibre into "C:\Program Files\Calibre").
  4. Set the CALIBRE_DEVELOP_FROM environment variable to "C:\Program Files\Calibre\src"
  5. Edit C:\Program Files\Calibre\src\calibre\ebooks\pdf\writer.py
  6. Change the line which says "printer = self.get_printer()" to say "printer = get_pdf_printer(self.opts)"
  7. Run calibre
kleinfelter is offline   Reply With Quote