From c39fb1eb14d21040b654dcc28d5690998223a0f4 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Tue, 13 Feb 2024 16:40:20 +0000 Subject: [PATCH] Changes for cpdflib --- cpdfmanual.pdf | Bin 411303 -> 411339 bytes cpdfmanual.tex | 2 +- cpdfmetadata.mli | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cpdfmanual.pdf b/cpdfmanual.pdf index 19b5d41636965c27e2698bdf2bed027c735213f4..192f1eac5fb28581c0cc2ae85b1b2526fda4a10f 100644 GIT binary patch delta 4572 zcmah|X*d*)*EKYwA?q+%#t+%IY$G%Fbx1_YIw27=%321Av5bUJ_TAW*$(Avcr9o23 zGAL^pEyxm)>|XzV@Bew;Z|{eDpYxo1?s@M0a4Hh{`x5yh$bgP~CWHzivojwchqp+b zlICpRw_B99O9U4(ri=`H8W6P!9gp|D$o`yQQvKH8Hhp8@Xbg3Q%F2LD1nFd=1fqr}WDAf#^+i_2pSP396Ec`vT3|e124$g>A6v4$q{{g?C>=VNMQe zeeN0G^lxIGM)Bc>1eetPBdUEHC zxjW0f4(h8O1ZiwF89x2m`sh_f`L#Uyx*I2}F>=bRAS+rq z0E}K?&wRS!dsV=!MXfKdm9ryrr0v6tO;Pi+f6igo4L@9TmNUhkV+D&undXacF=MQ$ z`RQRWwHZ5?huiP;`=g=*=pm97EbZ|R7KSu4G>leJZd1LC#mKxc12!<8H#0dRhZCgR zW%wt|YnN3+l;Gw5PIu(jc*uk_)l6-Je1+K8!qm1u%|?*Kuje z&-!$p9XS|aJXEo+glD>VDsf}Ty5W?+upkoFr}u&wSt%hsR%!0PSQhi9m{jzTVrO-q z9^hzd=0Cjs^#|RbAPML9G^pjrP+T8cIegG%*ml=Y=g4vj)vfkS`8hG`M0gOUK62`t z&a3jRablaO1;@7y))$>^DMn{k)PqCALb>!eTwb>Cqw$!7j#7}0NpL! z0G?QmBEU&8o)ptbooePN0>a`!$|@>K%7{#5Indev#m$%HK)q+K=&K@BRE$)O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Mlz`6KS_i7VTT6BP^n=d|8QG<-_4ADxPMTf!o*6uq1PkIenvtZd}fRo`?$pI5lE z5SaJe!YkGA@>o#P6a3&m)o17{TDJ*0V76ngg7uZ8rcF!5wI+mHi6cz0ehX)7M-wJ-6?MA; zFG_{iKfZ2s?E7HVCsI}`4rgj~qec*hOcri%&*?mqm~!t*#s8Y&*Sg|6XerjA8El#{53Yf4ygn;h{~{JCX6#5ISP>245$ z8vahbmb{k=D#)`1F;q?00MNHv7MJ$b7zJ9wQ$X&9FQi*S2AY{y7JilOv}!T(PUZ;K zRY2ANqI3Z@{K=DoC)L>Rwcl4`KN-gVH?7$fv}e?@mBVYf?1DQ|IWSkm^!4ux8E649+^{?ccW*sqVbtKoYwQLdrWRk(hnCb=395} z-7z5FE-I>)Se40Z$JN~ttjiIqixOO``M}{WulU&-r8nvbD-={qJDGFp|I#JBw2xJz z7iK~}9vI!(gM+wyu6u`thx&K~{;7gIaa>{H9--mUp+3G`a8+%%wg#81tm#EFuKxk5 CXMf57 diff --git a/cpdfmanual.tex b/cpdfmanual.tex index 8b6fc60..15e950f 100644 --- a/cpdfmanual.tex +++ b/cpdfmanual.tex @@ -2873,7 +2873,7 @@ The \texttt{-chop} operation cuts up a page into multiple pages, according to th \noindent Chop each page into six. \end{framed} -\noindent By default, the pieces are arranged in the output file row by row, and from left to right on each row. To alter this, add one or more of \texttt{-chop-columns}, \texttt{-chop-rtl} (right to left), and \texttt{-chop-btt} (bottom to top). +\noindent The crop box is used if present; if not, the media box. By default, the pieces are arranged in the output file row by row, and from left to right on each row. To alter this, add one or more of \texttt{-chop-columns}, \texttt{-chop-rtl} (right to left), and \texttt{-chop-btt} (bottom to top). As an alternative, pages can be chopped into two at a given position, horizontally with \texttt{-chop-h} or vertically with \texttt{-chop-v}: diff --git a/cpdfmetadata.mli b/cpdfmetadata.mli index 20713c6..5d4c6a1 100644 --- a/cpdfmetadata.mli +++ b/cpdfmetadata.mli @@ -84,3 +84,5 @@ val expand_date : string -> string val get_catalog_item : string -> Pdf.t -> string val get_viewer_pref_item : string -> Pdf.t -> string + +val determine_subformats : Pdf.t -> string list