diff --git a/cpdfimage.ml b/cpdfimage.ml index cdecab4..b7ca2a0 100644 --- a/cpdfimage.ml +++ b/cpdfimage.ml @@ -235,8 +235,8 @@ let rec image_resolution_page pdf page pagenum dpi images = let newpdf = Pdfpage.change_pages false pdf [page] in image_resolution newpdf [pagenum] dpi | (pagenum, name, Image (w, h), objnum) -> - let lx = Pdfunits.points (distance_between o x) Pdfunits.Inch in - let ly = Pdfunits.points (distance_between o y) Pdfunits.Inch in + let lx = Pdfunits.inches (distance_between o x) Pdfunits.PdfPoint in + let ly = Pdfunits.inches (distance_between o y) Pdfunits.PdfPoint in let wdpi = float w /. lx and hdpi = float h /. ly in image_results := (pagenum, xobject, w, h, wdpi, hdpi, objnum)::!image_results diff --git a/cpdfmanual.pdf b/cpdfmanual.pdf index 8919b4a..ff26d4c 100644 Binary files a/cpdfmanual.pdf and b/cpdfmanual.pdf differ diff --git a/cpdfmanual.tex b/cpdfmanual.tex index 3037407..3a5962e 100644 --- a/cpdfmanual.tex +++ b/cpdfmanual.tex @@ -279,7 +279,7 @@ These examples demonstrate just a few of the facilities provided by the Coherent \noindent Dump attachments to file, given the directory to put them in. -\section*{\hyperref[chap:13]{Chapter 13: Working with Images}} +\section*{\hyperref[chap:13]{Chapter 13: Images}} \begin{framed}\noindent\texttt{cpdf -image-resolution 600 in.pdf}\end{framed}