Page 1 of 1
PDF photo directory scripts
Posted: Sat Feb 05, 2011 8:20 am
by csmayfield
Here's a Python/LaTeX solution that generates a PDF version of the online photo directory, suitable for double-sided booklet printing (e.g., with Adobe Reader).
http://www.cs.purdue.edu/homes/cmayfiel/photodir.zip
Related topics:
"Provide a way to print a photo directory with selected information"
https://tech.lds.org/wiki/MLS:_Feedback_and_Suggestions
"Add capability to create ward photo directory pre-formatted for booklet printing."
https://tech.lds.org/wiki/LUWS:_Feedbac ... uggestions
thanks for the python script...
Posted: Mon Feb 07, 2011 6:41 am
by atom88
thanks for the python script...I'll have to check it out. My experience is more in java but I've dabbled in python so I'll have to try it out.
I hope the church fixes this bug and allows for printing soon though.
-- Adam
Help!
Posted: Sat Feb 12, 2011 8:03 pm
by coolhandace
Nothing seems to happen during "Step 2" When I run each command a black box pops up for a split second and is gone. I see a directory called "photos_files" has been created but I don't know what to do with it? Thank you for the help.
Re: Help!
Posted: Sun Feb 13, 2011 7:42 am
by csmayfield
Having command prompts popping up is the correct behavior. My best guess is you saved the web page as photos.htm, but the program is looking for photos.html (I'll add a fix for that later).
Here is a manual way to run the scripts in case there were other errors:
1. Right click copypics.py, select "Edit with IDLE"
2. From the "Run" menu, select "Run Module" -- copypics.py should create a new directory named "pics" and copy/rename all the jpeg files from photos_files.
3. Right click options.py, select "Edit with IDLE"
4. Read through this file carefully and make any changes applicable to your ward. At a minimum, you should update the CITIES list and replace (or remove) the example names I made up in the tweak_* functions.
5. Right click photodir.py, select "Edit with IDLE"
6. From the "Run" menu, select "Run Module" -- this should create the final photodir.pdf file, along with several other intermediate files.
Good luck,
--Chris
Posted: Sun Nov 20, 2011 11:07 am
by daveisfera
The link appears to be broken now. Is there a copy of this available anywhere else?
Thanks,
Dave
Posted: Mon Nov 21, 2011 7:56 am
by csmayfield
Here's the latest version.