View Single Post
Old 09-07-2012, 05:07 AM   #145
RefUser
himself
RefUser , Klaatu Barada Niktu!RefUser , Klaatu Barada Niktu!RefUser , Klaatu Barada Niktu!RefUser , Klaatu Barada Niktu!RefUser , Klaatu Barada Niktu!RefUser , Klaatu Barada Niktu!RefUser , Klaatu Barada Niktu!RefUser , Klaatu Barada Niktu!RefUser , Klaatu Barada Niktu!RefUser , Klaatu Barada Niktu!RefUser , Klaatu Barada Niktu!
 
Posts: 15
Karma: 5308
Join Date: Jul 2012
Device: PRS-T1,Nokia N900
Quote:
Originally Posted by willus View Post
I think I get what you want and it depends on whether I can figure out how to have MuPDF render only text primitives from the PDF file. I will add it to my k2pdfopt wish list. Thanks for the idea.
I'm not sure if MuPDF allows rendering of page regions only, but it provides bounding rectangles for text regions (see http://www.mupdf.com/doc/source/fitz.h#1583). So even if you have to render the entire page, you know where the text is. I use this in my pdf viewer to dectect (or better guess atm) columns and crop and zoom accordingly (https://gitorious.org/flatboat/flatb...ge.cpp#line116).
RefUser is offline   Reply With Quote