The quality of the preview is dependant of a third-party library, pdftohtml, and it is important to upgrade your version to benefit from an optimal quality.
Most of Linux distributions uses version 0.36 of pdf2html (included in poppler-utils 0.12.4 for example) and you'll need to upgrade manually this library. Please follow the procedure below to achieve that:
- check initial version, here on a Debian
# pdftohtml -v pdftohtml version 0.12.4 Copyright 2005-2009 The Poppler Developers - http://poppler.freedesktop.org Copyright 1999-2003 Gueorgui Ovtcharov and Rainer Dorsch Copyright 1996-2004 Glyph & Cog, LLC
- Download pdftohtml sources version 0.39 from http://sourceforge.net/projects/pdftohtml/
- Uncompress pdftohtml-0.39.tar.gz
# tar zxf pdftohtml-0.39.tar.gz
- Go to pdftohtml folder
# cd pdftohtml-0.39/
- Apply the diff below to the file src/HtmlLinks.h according to a known bug http://sourceforge.net/tracker/?func=detail&aid=2008566&group_id=45839&atid=444240
# diff src/HtmlLinks.h src/HtmlLinks.h 22c22,23 < GBool HtmlLink::isEqualDest(const HtmlLink& x) const; --- > /* GBool HtmlLink::isEqualDest(const HtmlLink& x) const; */ > GBool isEqualDest(const HtmlLink& x) const;
- Run
make - DO NOT RUN
./Makefile - Copy
src/pdftohtmldans/usr/bin/to replace existing binaries - Check the final version
# pdftohtml -v pdftohtml version 0.39 http://pdftohtml.sourceforge.net/, based on Xpdf version 3.00 Copyright 1999-2003 Gueorgui Ovtcharov and Rainer Dorsch Copyright 1996-2004 Glyph & Cog, LLC
Now you can restart Nuxeo DM and try the preview on a document. The quality should be better, regardless of the document
Labels