View Single Post
Old 12-15-2006, 07:55 PM   #28
alex_d
Addict
alex_d doesn't litteralex_d doesn't litter
 
Posts: 303
Karma: 187
Join Date: Dec 2006
Device: Sony Reader
cbookrun, I'm glad you've found this useful!

Ok, ToC is up. Turned out pretty easy with the help of pdftk and the PDF Hacks book. (there's some concern about pdftk hanging... let me know if that happens)

Also, I found out what image filter i'm looking for. It's called dilate, and it's used precisely for this sort of thing. I haven't yet figured out how to do a proper implementation of it, though, but shouldn't be too hard.

Autocropping, however, is turning out a bit frustrating. I used perl2exe to convert pdfcrop.pl, and then xpdf's pdfinfo to read pagesize and adjust the dpi automatically. That's fine, but I can't for the love of god configure miktex's paths so that it doesn't have to be installed. It's required by pdfcrop.pl and I haven't found anything besides pdfcrop other than the ImageXpress c++ library.

Incidentally, ImageXpress is designed specifically for grayscale text and can do dilate. So maybe it's just easier to make an executable out of that. Any takers?
Attached Files
File Type: rar PDFrasterFarian 0.9.7.part1.rar (4.98 MB, 305 views)
File Type: rar PDFrasterFarian 0.9.7.part2.rar (4.98 MB, 275 views)
File Type: rar PDFrasterFarian 0.9.7.part3.rar (1.12 MB, 285 views)
alex_d is offline   Reply With Quote